diff options
Diffstat (limited to 'sci-visualization/ferret-bin/ferret-bin-6.3.ebuild')
-rw-r--r-- | sci-visualization/ferret-bin/ferret-bin-6.3.ebuild | 64 |
1 files changed, 64 insertions, 0 deletions
diff --git a/sci-visualization/ferret-bin/ferret-bin-6.3.ebuild b/sci-visualization/ferret-bin/ferret-bin-6.3.ebuild new file mode 100644 index 000000000..e87c28215 --- /dev/null +++ b/sci-visualization/ferret-bin/ferret-bin-6.3.ebuild @@ -0,0 +1,64 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +MY_PV=${PV/\./} + +MY_FER_ENV="fer_environment.v${MY_PV}.tar.gz" +MY_FER_EXE="fer_executables.v${MY_PV}.tar.gz" + +DESCRIPTION="Ferret is an interactive computer visualization and analysis environment" +HOMEPAGE="http://ferret.pmel.noaa.gov/Ferret/" +SRC_URI="ftp://ftp.pmel.noaa.gov/ferret/pub/data/fer_dsets.tar.gz + amd64? ( ftp://ftp.pmel.noaa.gov/ferret/pub/x86_64-linux/${MY_FER_ENV} + ftp://ftp.pmel.noaa.gov/ferret/pub/x86_64-linux/${MY_FER_EXE} ) + x86? ( ftp://ftp.pmel.noaa.gov/ferret/pub/linux_32/${MY_FER_ENV} + ftp://ftp.pmel.noaa.gov/ferret/pub/linux_32/${MY_FER_EXE} )" + +LICENSE="PMEL-FERRET" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="" +RDEPEND="${DEPEND} + >=app-crypt/mit-krb5-1.6.3-r6 + x11-base/xorg-server + ~virtual/libstdc++-3.3" + +BASEDIR="/opt/ferret-bin" + + +src_unpack() { + mkdir "${S}" + cd "${S}" + unpack "${MY_FER_ENV}" + cd "${S}"/bin + unpack "${MY_FER_EXE}" + cd "${S}" + mkdir data + cd data + unpack "fer_dsets.tar.gz" +} + + +src_install() { + mkdir -p ext_func/libs + mv bin/*.so ext_func/libs + + mkdir -p "${D}/${BASEDIR}" + mv "${S}"/* "${D}/${BASEDIR}" + + doenvd "${FILESDIR}"/99ferret +} + + +pkg_postinst() { + env-update +} + + +pkg_postrm() { + env-update +} + |