Introduction: Africa faces immense food and health insecurity challenges, a problem partly attributed to food loss and waste during postharvest handling and distribution. In the context of research to meet the sustainable development goals, this project specifically addressed the postharvest loss of the ripe indigenous eggplant (Solanum anguivi lam) fruit called “Igba Yinrin” by Yoruba in South-West Nigeria, which is usually discarded in farms. The study was carried out on ripe and unripe fruits to better understand their value by comparing their effects in diabetes treatment. Methods: The study sought to assess the effects of a diet including ripe or unripe mature eggplant fruits in the sucrose-induced diabetic-like fruit fly. Bioactive compounds were identified and quantified with HPLC–UV, while the antioxidant vitamin (A, C, E), carotenoid, and mineral (Na, K, Ca, Mg, Fe, P, and Zn) content was analyzed in the fruits. Extracts were used to investigate their in vitro anti-inflammatory properties on cyclooxygenases (COX 1 and 2), 5-lipoxygenase (5-LOX), and anti-diabetes enzymes [α-amylase and α-glucosidase], while extract-supplemented diets (0.25–1% concentration) were fed to the fruit flies for 14 days. Results: Interestingly, the results showed that the ripe fruits had a significantly (p < 0.05) higher total phenol and flavonoid content, as well as a higher content of vitamins, carotenoids, and minerals, than the unripe fruits. The in vivo activities of antioxidant enzymes [superoxide dismutase (SOD), catalase (CAT), and glutathione transferase (GST)] and the total thiol level increased, while the blood glucose, reactive oxygen species (ROS), and malondialdehyde (MDA) levels decreased in Drosophila melanogaster (fruit fly). An in silico docking analysis showed strong binding affinity of the above-mentioned enzymes under investigation with the ligands hesperidin, naringin, and myricetin, which are bioactive compounds contained in the examined extracts. Conclusions: There was no significant difference in the biological effects of the ripe and unripe fruit extracts on inflammatory and anti-diabetes enzyme activities, which means that the ripe fruit, usually discarded, could serve as a sustainable alternative source of food nutrients.