Prepare the eggplants by cutting them into 1 cm cubes and sprinkle with salt. Allow them to sit for about 10 minutes to draw out excess moisture. Rinse and pat dry with a paper towel.
In a large pot, bring salted water to a boil for the pasta. Cook the pasta according to package instructions until al dente. Reserve about 1 cup of pasta water, then drain the rest in a colander.
Heat olive oil in a skillet over medium heat. Add the cubed eggplant and sauté until golden and tender, about 5-7 minutes. Remove the eggplant from the skillet and set aside.
In the same skillet, add the minced garlic and sauté for about 30 seconds until fragrant.
Add the crushed tomatoes, oregano, salt, and pepper to the skillet. Bring to a simmer and cook for about 10 minutes, allowing the sauce to thicken.
Return the sautéed eggplant to the skillet and mix well with the sauce. If the sauce is too thick, add a bit of the reserved pasta water until desired consistency is reached.
Add the cooked pasta to the skillet and toss well to combine everything. Cook for an additional 2-3 minutes over low heat to blend the flavors.
Serve the pasta hot, garnished with grated ricotta salata cheese and fresh basil leaves.