Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 145277 | Differences between
and this patch

Collapse All | Expand All

(-)/usr/portage/sci-geosciences/gmt/gmt-4.1.1.ebuild (-20 / +22 lines)
Lines 2-24 Link Here
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gmt/gmt-4.1.1.ebuild,v 1.1 2006/04/10 00:28:49 cryos Exp $
3
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gmt/gmt-4.1.1.ebuild,v 1.1 2006/04/10 00:28:49 cryos Exp $
4
4
5
inherit multilib
5
inherit multilib versionator
6
6
7
MAINV="${PV:0:1}"
7
MAINV="$(get_major_version)"
8
SUBV="$(get_version_component_range 1-2)"
8
9
9
DESCRIPTION="Powerful map generator"
10
DESCRIPTION="Powerful map generator"
10
HOMEPAGE="http://gmt.soest.hawaii.edu/"
11
HOMEPAGE="http://gmt.soest.hawaii.edu/"
11
SRC_URI="ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT${PV}_progs.tar.bz2
12
SRC_URI="mirror://gmt/${MAINV}/GMT${PV}_src.tar.bz2
12
	ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT_share.tar.bz2
13
	mirror://gmt/${MAINV}/GMT${SUBV}_coast.tar.bz2
13
	ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT${PV}_tut.tar.bz2
14
	mirror://gmt/${MAINV}/GMT${PV}_share.tar.bz2
14
	ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT${PV}_scripts.tar.bz2
15
	mirror://gmt/${MAINV}/GMT${PV}_tut.tar.bz2
15
	ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT${PV}_man.tar.bz2
16
	mirror://gmt/${MAINV}/GMT${PV}_scripts.tar.bz2
16
	doc? ( ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT${PV}_pdf.tar.bz2 )
17
	mirror://gmt/${MAINV}/GMT${PV}_man.tar.bz2
17
	gmtsuppl? ( ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT${PV}_suppl.tar.bz2 )
18
	doc? ( mirror://gmt/${MAINV}/GMT${PV}_pdf.tar.bz2 )
18
	gmtfull? ( ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT_full.tar.bz2 )
19
	doc? ( mirror://gmt/${MAINV}/GMT${PV}_web.tar.bz2 )
19
	gmthigh? ( ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/GMT_high.tar.bz2 )
20
	gmtsuppl? ( mirror://gmt/${MAINV}/GMT${PV}_suppl.tar.bz2 )
20
	gmttria? ( ftp://falcon.grdl.noaa.gov/pub/gmt/${MAINV}/triangle.tar.bz2 )"
21
	gmtfull? ( mirror://gmt/${MAINV}/GMT${SUBV}_full.tar.bz2 )
21
# Needed because GMT_share in version 3 is different of that one in version 4, but they have same name.
22
	gmthigh? ( mirror://gmt/${MAINV}/GMT${SUBV}_high.tar.bz2 )"
22
23
23
LICENSE="GPL-2"
24
LICENSE="GPL-2"
24
SLOT="0"
25
SLOT="0"
Lines 36-48 Link Here
36
	unpack ${A} || die "Unpacking failed."
37
	unpack ${A} || die "Unpacking failed."
37
38
38
	mv -f ${WORKDIR}/share/*  ${S}/share/ || die "Moving sources failed."
39
	mv -f ${WORKDIR}/share/*  ${S}/share/ || die "Moving sources failed."
39
	if use gmttria; then
40
		mv -f ${WORKDIR}/src/*  ${S}/src/ || die "Moving gmttria failed."
41
	fi
42
}
40
}
43
41
44
src_compile() {
42
src_compile() {
45
	use gmtsuppl && WANT_AUTOCONF=2.5 autoconf # the configure in 3.4.4 is faulty when using gmtsuppl
43
	if use gmtsuppl; then # the configure in 3.4.4 is faulty when using gmtsuppl
44
		WANT_AUTOCONF=2.5 autoconf || die "Autoconf failed."
45
	fi
46
47
	# Don't prestrip libs
48
	sed -i 's/OPTS="-s "/OPTS=" "/' configure || die "Error disabling stripping"
49
46
	# In make process will include /lib and /include to NETCDFHOME
50
	# In make process will include /lib and /include to NETCDFHOME
47
	export NETCDFHOME="/usr"
51
	export NETCDFHOME="/usr"
48
52
Lines 51-57 Link Here
51
	econf \
55
	econf \
52
		--libdir=/usr/$(get_libdir)/${P} \
56
		--libdir=/usr/$(get_libdir)/${P} \
53
		--includedir=/usr/include/${P} \
57
		--includedir=/usr/include/${P} \
54
		--datadir=${D}/usr/share/${P} \
58
		--datadir=/usr/share/${P} \
55
		 ${myconf} \
59
		 ${myconf} \
56
		|| die "Configure failed."
60
		|| die "Configure failed."
57
61
Lines 89-96 Link Here
89
		rm -rf ${D}/usr/www
93
		rm -rf ${D}/usr/www
90
	fi
94
	fi
91
95
92
	dodir /etc/env.d
93
	echo "GMTHOME=/usr/share/${P}" > ${D}/etc/env.d/99gmt
94
	cd ${D}/usr/share/${P}
96
	cd ${D}/usr/share/${P}
95
	ln -s . share
97
	ln -s . share
96
}
98
}

Return to bug 145277