In a medium soup pot, add the lentils, vegetable broth, turmeric, and salt. Bring the contents of the pot to a boil, then lower the heat to simmer. Cook, uncovered until the lentils are tender (15-20 minutes).
Toast the whole spices, chilies, garlic, ginger, and lime zest in a small frying pan or skillet over medium heat. Stir the ingredients for 1-2 minutes.
Transfer the spices to a clean spice or coffee grinder. Grind to a fine powder.
Cut the pineapple into bite-sized chunks. Add half the pineapple and tomatoes to a blender or food processor. Blend until smooth.
Once the lentils are done, add the blended spices, the pineapple-tomato mixture, and 1 ½ cups of vegetable broth. Stir the soup and allow it to simmer on low for a few minutes until it thickens up.
Mix in the remaining pineapple chunks and give them a few minutes to heat and absorb the flavors. Remove the soup from the heat.
Taste the soup and add lime juice if it's too sweet.