Concave blazed gratings greatly simplify the architecture of spectrographs by reducing the number of optical components. The production of these gratings using diamond-machining offers practically no limits in the design of the grating substrate shape, with the possibility of making large sag freeform surfaces unlike the alternative and traditional method of holography and ion etching. In this paper, we report on the technological challenges and progress in the making of these curved blazed gratings using an ultra-high precision 5 axes Moore-Nanotech machine. We describe their implementation in an integral field unit prototype called IGIS (Integrated Grating Imaging Spectrograph) where freeform curved gratings are used as pupil mirrors. The goal is to develop the technologies for the production of the next generation of low-cost, compact, high performance integral field unit spectrometers.