Dice the onion, garlic and eggplant and sauté in hot olive oil. Pour in the vegetable stock. Add capers, raisins, vinegar, sugar, salt, pepper and bay leaf.
Let simmer for about 15 minutes. Add the lentils and bring to the boil. Remove the bay leaf. Briefly toast the pine nuts in a pan without fat and add to the aubergines.