blob: fd0b6c9337f386617d3d47f942b1680d90182060 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
inherit eutils versionator
MY_PV=$(delete_all_version_separators "${PV}" )
MY_FER_ENV="fer_environment.v${MY_PV}.tar.gz"
MY_FER_EXE="fer_executables.v${MY_PV}.tar.gz"
DESCRIPTION="Analysis Tool for Gridded and Non-Gridded Data"
HOMEPAGE="http://ferret.pmel.noaa.gov/Ferret/"
SRC_URI="
ftp://ftp.pmel.noaa.gov/ferret/pub/data/fer_dsets.tar.gz
x86? (
ftp://ftp.pmel.noaa.gov/ferret/pub/linux_32_nc4/${MY_FER_ENV} -> x86${MY_FER_ENV}
ftp://ftp.pmel.noaa.gov/ferret/pub/linux_32_nc4/${MY_FER_EXE} -> x86${MY_FER_EXE} )
amd64? (
ftp://ftp.pmel.noaa.gov/ferret/pub/x86_64-linux_nc4/${MY_FER_ENV} -> amd64${MY_FER_ENV}
ftp://ftp.pmel.noaa.gov/ferret/pub/x86_64-linux_nc4/${MY_FER_EXE} -> amd64${MY_FER_EXE} )"
LICENSE="PMEL-FERRET"
SLOT="0"
KEYWORDS="~amd64 ~x86"
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}" || die
cd "${S}" || die
use x86 && unpack "x86${MY_FER_ENV}"
use amd64 && unpack "amd64${MY_FER_ENV}"
cd "${S}"/bin || die
use x86 && unpack "x86${MY_FER_EXE}"
use amd64 && unpack "amd64${MY_FER_EXE}"
mkdir "${S}"/data || die
cd "${S}"/data || die
unpack "fer_dsets.tar.gz"
}
src_install() {
mkdir -p ext_func/libs || die
mv bin/*.so ext_func/libs || die
mkdir -p "${ED}/${BASEDIR}" || die
mv "${S}"/* "${ED}/${BASEDIR}" || die
doenvd "${FILESDIR}"/99ferret
}
|