In the same pan, brown the onion in 30 ml (2 tablespoons) of oil. Season with salt and pepper. Add the tomatoes and bring to a boil. Cover and simmer for about 15 minutes. Add the fried eggplant, pasta, and basil. Heat through, stirring to coat the pasta. Add cooking water, if needed. Adjust the seasoning.