
salt the aubergine cubes and leave to drain in a colander for an hour. rinse and pat dry.
drain the chickpeas. put them in a pan of fresh cold water, bring to the boil and simmer for about 1 hour or until tender. drain.
heat the oil in a large casserole and cook the onions and garlic gently until softened. stir in the spices and cook, stirring, for a couple of seconds.
add the aubergines and stir well. cook for 5 minutes. add the tomatoes and chickpeas. season with salt and pepper to taste. you might want to add a teaspoon of sugar if it is too sour.
cook, covered, for about 20 minutes.
serve with rice.