diff options
author | Olivier Fisette <ribosome@gentoo.org> | 2004-12-29 01:29:52 +0000 |
---|---|---|
committer | Olivier Fisette <ribosome@gentoo.org> | 2004-12-29 01:29:52 +0000 |
commit | 09e63e54c7bcd4253aed287903fd1115925ba42b (patch) | |
tree | 107f5888e3d74b772e919dc3a5963010f9f76572 /sci-geosciences/gmt/gmt-3.4.4-r1.ebuild | |
parent | Moved gempak from app-sci to sci-geosciences (diff) | |
download | gentoo-2-09e63e54c7bcd4253aed287903fd1115925ba42b.tar.gz gentoo-2-09e63e54c7bcd4253aed287903fd1115925ba42b.tar.bz2 gentoo-2-09e63e54c7bcd4253aed287903fd1115925ba42b.zip |
Moved from app-sci/gmt to sci-geosciences/gmt.
Diffstat (limited to 'sci-geosciences/gmt/gmt-3.4.4-r1.ebuild')
-rw-r--r-- | sci-geosciences/gmt/gmt-3.4.4-r1.ebuild | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/sci-geosciences/gmt/gmt-3.4.4-r1.ebuild b/sci-geosciences/gmt/gmt-3.4.4-r1.ebuild new file mode 100644 index 000000000000..7aed3af02716 --- /dev/null +++ b/sci-geosciences/gmt/gmt-3.4.4-r1.ebuild @@ -0,0 +1,97 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/gmt/gmt-3.4.4-r1.ebuild,v 1.1 2004/12/29 01:29:52 ribosome Exp $ + +MAINV="${PV:0:1}" + +DESCRIPTION="Powerful map generator" +HOMEPAGE="http://gmt.soest.hawaii.edu/" +SRC_URI="ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT${PV}_progs.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT_share.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT${PV}_tut.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT${PV}_scripts.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT${PV}_man.tar.bz2 + doc? ( ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT${PV}_pdf.tar.bz2 ) + gmtsuppl? ( ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT${PV}_suppl.tar.bz2) + gmtfull? ( ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT_full.tar.bz2 ) + gmthigh? ( ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/GMT_high.tar.bz2 ) + gmttria? ( ftp://gmt.soest.hawaii.edu/pub/gmt/${MAINV}/triangle.tar.bz2 )" + #gmtpdf? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_pdf.tar.bz2 ) + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="x86" +IUSE="gmtsuppl gmtfull gmthigh gmttria doc" + +RDEPEND=">=sci-libs/netcdf-3.5.0" +DEPEND="${RDEPEND} + gmtsuppl? ( >=sys-devel/autoconf-2.58 )" + +S="${WORKDIR}/GMT${PV}" + +src_unpack() { + use gmtfull && einfo "Please be patient, this will take some time to unpack..." + unpack ${A} || die + + mv -f ${WORKDIR}/share/* ${S}/share/ || die + if use gmttria ; then + mv -f ${WORKDIR}/src/* ${S}/src/ || die + fi +} + +src_compile() { + use gmtsuppl && autoconf # the configure in 3.4.4 is faulty when using gmtsuppl + #In make process will include /lib and /include to NETCDFHOME + export NETCDFHOME="/usr" + + local myconf= + use gmttria && myconf="${myconf} --enable-triangle" + econf \ + --libdir=/usr/lib/${PF} \ + --includedir=/usr/include/${PF} \ + --datadir=${D}/usr/share/${PF} \ + ${myconf} \ + || die "configure failed" + + local mymake= + use gmtsuppl && mymake="${mymake} suppl" + make gmt ${mymake} || die "make ${mymake} failed" +} + +src_install() { + local mymake= + use gmtsuppl && mymake="${mymake} install-suppl" + mkdir -p www/gmt/doc/html + use doc && mymake="${mymake} install-www" + + einstall \ + includedir=${D}/usr/include/gmt-${PV} \ + libdir=${D}/usr/lib/gmt-${PV} \ + datadir=${D}/usr/share/${PF} \ + install \ + install-data \ + install-man \ + ${mymake} \ + || die "install failed" + + #now some docs + dodoc CHANGES COPYING README + cp -r ${S}/{examples,tutorial} ${D}/usr/share/doc/${PF}/ + use doc && dodoc ${WORKDIR}/*pdf* + dodir /etc/env.d + echo "GMTHOME=/usr/share/${PF}" > ${D}/etc/env.d/99gmt + cd ${D}/usr/share/${PF} + ln -s . share +} + +pkg_postinst() { + einfo "The default instalation is the cleanest one" + einfo "To include more resources use the syntax:" + einfo "env USE=\"\${USE} gmt_flags\" emerge gmt" + einfo "Possible GMT flags are:" + einfo "gmthigh -> High resolution bathimetry data base;" + einfo "gmtfull -> Full resolution bathimetry data base;" + einfo "gmttria -> Non GNU triangulate method, but more efficient;" + einfo "gmtsuppl -> Supplement functions for GMT;" + einfo "Others GMT flags will be included soon." +} |