Prick the eggplants a few times with a fork. Char them directly over a gas flame or under a hot broiler for 15 to 20 minutes, turning every few minutes, until the skins are black and the flesh collapses.
Let the eggplants cool in a bowl for 5 minutes, then peel off the skins and chop the flesh finely. Drain off any bitter juices.
Heat the olive oil in a large skillet over medium heat. Add the garlic and cook for 1 to 2 minutes until pale golden, then stir in the turmeric.
Add the tomatoes and tomato paste and cook for 5 minutes, stirring, until the tomatoes break down.
Add the eggplant, salt and pepper. Cook for 10 minutes, mashing with the back of a spoon, until thick and the oil starts to separate at the edges.
Make a well in the center and pour in the eggs. Let them set for 1 minute, then gently stir them through the eggplant in large soft curds, about 2 minutes more.
Taste for salt and serve warm.