While the water is coming to a boil, splash the olive oil into a wide pan on medium-high heat. Let it get hot. Add the eggplant cubes and sprinkle them with salt, then cook for about 5 minutes. If the eggplant starts to look too dry, add a bit of water. Once the cubes are a little brown on all sides, add the garlic and chile flakes and stir. Add the tomatoes and cook for about 15 minutes, stirring occasionally. Again, if it looks too dry, add a bit of water. Everything will shrink up and become a sort of loose, thick sauce. Add half the cheese and half the basil, if you have it.