--- plplot-5.5.2.ebuild 2005-11-28 17:17:46.000000000 -0500 +++ plplot-5.5.2-r1.ebuild 2005-11-28 21:54:15.000000000 -0500 @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sci-libs/plplot/plplot-5.5.2.ebuild,v 1.3 2005/08/20 20:06:46 cryos Exp $ -inherit eutils +inherit eutils fortran # Known problems with this ebuild: # - No support for libqhull. @@ -41,14 +41,12 @@ # Optional support for libqhull (currently doesn't work). # qhull? ( media-libs/qhull ) +FORTRAN="g77 ifc" + pkg_setup() { - # If the fortran interface is wanted, the gnu f77 compiler - # is needed unless ifc is used (which is taken care of in - # the dependencies). - use fortran && ! use ifc || if [ -z 'which g77' ]; then - eerror "GNU fortran 77 compiler not found on the system." - eerror "Please add fortran to your USE flags and reemerge gcc." - die + # If the fortran interface is wanted, we need a Fortran compiler. + if use fortran; then + fortran_pkg_setup fi }