here you can do
$(use_with cuda cuda-dir "${EPREFIX"/opt/cuda)