Assuming no-gi and they're starting with right knee down and left knee up.
Plant your left foot on his right hip, it makes it pretty hard for him to get rid of it or pass, and since your foot is on his hip it gives you something to push off of to swivel and get an angle. Your right leg should also be somewhere on his torso, but since it's going to move the specific location doesn't matter quite as much.
Grab his left ankle with your right hand, and pull. If he's smart he'll bring his knee down to prevent the sweep. This might not work if your partner knows sweeps aren't an option for you, but going against someone who knows your weaknesses is always a bigger challenge.
As he brings his knee down, get your right leg past his hip, so you've got one part of the closed guard in place. Get your back at least 45 degrees off the ground, but 90 degrees is better. Get your right arm either with an underhook controlling his back or an overhook controlling his arm (depending on what he's looking for).
Your left arm should be ready to deal with his right hand, in particularly in defending the cross face to flatten you out, but if he doesn't go for that you have some control options.
If he's not too experienced, his right knee will still be down, and you can easily complete the closed guard from here, particularly if you had to settle for the overhook instead of the underhook.
If you got the underhook though, instead of going for closed guard, try to climb up onto his back. More often than not this won't work, but when it does it's pretty awesome. When it doesn't work, he'll be actively going into your closed guard. Since that's your initial goal, that's fine anyway.
If he's a bit more experienced, when he brought his left leg down he lifted his right knee up, but you've still got your left foot firmly on his hip. Your course of action will again depend on whether you got the underhook or the overhook. If it's the underhook, again, try to climb onto his back.
If you got the overhook instead, swing your left leg around to go for a triangle. If you're good at the triangle you might just attempt to finish here, if you're not so good, you're just threatening it and expecting him to defend it. Since you've got the overhook, a smash pass isn't a good option for him, he'll likely just go for the solid sit up and both arms in defense. As he gets his right arm in, grab his elbow with your left hand and pull towards you. If you're good at armbars, here's a good opportunity to go for one. If not, you're preventing him from planting his forearm in your thigh.
If you've got difficulty with the swivel, put your right foot on his left hip to push around and square up while you put your left leg past to get closed guard.
If you're wearing gi, I'd assume he's got a solid grip inside both pant legs. In that case his icebreaker shin isn't as much of a problem as his grip is, and breaking that grip would be your priority. He's also quite likely going to be passing, so focusing on sweeping him as he passes, or shoving him through to go to your knees and take his back is more important than trying to reguard.
If he's grabbing your waistband, belt or lapels (I'm not sure why, it doesn't work very well) then the no-gi strategy I described above actually still works.