We study the slow dynamics of water evaporation out of hydrophobic cavities by using model porous silica materials grafted with octylsilanes. The cylindrical pores are monodisperse, with a radius in the range of 1-2 nm. Liquid water penetrates in the nanopores at high pressure and empties the pores when the pressure is lowered. The drying pressure exhibits a logarithmic growth as a function of the driving rate over more than three decades, showing the thermally activated nucleation of vapor bubbles. We find that the slow dynamics and the critical volume of the vapor nucleus are quantitatively described by the classical theory of capillarity without adjustable parameter. However, classical capillarity utterly overestimates the critical bubble energy. We discuss the possible influence of surface heterogeneities, long-range interactions, and high-curvature effects, and we show that a classical theory can describe vapor nucleation provided that a negative line tension is taken into account. The drying pressure then provides a determination of this line tension with much higher precision than currently available methods. We find consistent values of the order of -30 pN in a variety of hydrophobic materials.