blob: 18d97856e9a77040b33a02cae1fa0f46a8a1f426 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
MY_PV=${PV/\./}
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/previous_versions/fer_environment.${MY_PV}.tar.Z -> fer_environment_x86_64.${MY_PV}.tar.Z
ftp://ftp.pmel.noaa.gov/ferret/pub/x86_64-linux/previous_versions/fer_executables.${MY_PV}.tar.Z -> fer_executables_x86_64.${MY_PV}.tar.Z )
x86? ( ftp://ftp.pmel.noaa.gov/ferret/pub/linux_32/previous_versions/fer_environment.v${MY_PV}.tar.Z -> fer_environment_x86.${MY_PV}.tar.Z
ftp://ftp.pmel.noaa.gov/ferret/pub/linux_32/previous_versions/fer_executables.v${MY_PV}.tar.Z -> fer_executables_x86.${MY_PV}.tar.Z )"
LICENSE="PMEL-FERRET"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
>=app-crypt/mit-krb5-1.6.3-r6
x11-base/xorg-server"
BASEDIR="/opt/ferret-bin"
src_unpack() {
mkdir "${S}"
cd "${S}"
use amd64 && unpack "fer_environment_x86_64.${MY_PV}.tar.Z"
use x86 && unpack "fer_environment_x86.${MY_PV}.tar.Z"
cd "${S}"/bin
use amd64 && unpack "fer_executables_x86_64.${MY_PV}.tar.Z"
use x86 && unpack "fer_executables_x86.${MY_PV}.tar.Z"
cd "${S}"
mkdir data
cd data
unpack "fer_dsets.tar.gz"
}
src_install() {
mkdir -p "${D}/${BASEDIR}"
mv "${S}"/* "${D}/${BASEDIR}"
doenvd "${FILESDIR}"/99ferret
}
pkg_postinst() {
env-update
}
pkg_postrm() {
env-update
}
|