you can simplify this to

src_compile() {
   use fortran && MAKEOPTS+=" -j1
   default
}