blob: e87c28215021e49f5ef4c6f4e37c149876531036 (
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
61
62
63
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
}
|