|
|
# Distributed under the terms of the GNU General Public License v2 | # 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 $ | # $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: | # Known problems with this ebuild: |
# - No support for libqhull. | # - No support for libqhull. |
|
|
# Optional support for libqhull (currently doesn't work). | # Optional support for libqhull (currently doesn't work). |
# qhull? ( media-libs/qhull ) | # qhull? ( media-libs/qhull ) |
| |
|
FORTRAN="g77 ifc" |
|
|
pkg_setup() { | pkg_setup() { |
# If the fortran interface is wanted, the gnu f77 compiler |
# If the fortran interface is wanted, we need a Fortran compiler. |
# is needed unless ifc is used (which is taken care of in |
if use fortran; then |
# the dependencies). |
fortran_pkg_setup |
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 |
|
fi | fi |
} | } |
| |