diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-09-06 04:53:38 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-09-06 04:53:38 +0000 |
commit | d7b2a923439906e798ca0f5b82ce40d13105dc17 (patch) | |
tree | cc24b61725a74175ae1448e7c44265f7548ba471 /app-sci/gmt | |
parent | fixing Manifest (diff) | |
download | gentoo-2-d7b2a923439906e798ca0f5b82ce40d13105dc17.tar.gz gentoo-2-d7b2a923439906e798ca0f5b82ce40d13105dc17.tar.bz2 gentoo-2-d7b2a923439906e798ca0f5b82ce40d13105dc17.zip |
gentoo-ize
Diffstat (limited to 'app-sci/gmt')
-rw-r--r-- | app-sci/gmt/gmt-3.4.3.ebuild | 73 |
1 files changed, 27 insertions, 46 deletions
diff --git a/app-sci/gmt/gmt-3.4.3.ebuild b/app-sci/gmt/gmt-3.4.3.ebuild index 1f9b5658dd74..d09ae7012dec 100644 --- a/app-sci/gmt/gmt-3.4.3.ebuild +++ b/app-sci/gmt/gmt-3.4.3.ebuild @@ -1,33 +1,27 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-sci/gmt/gmt-3.4.3.ebuild,v 1.1 2003/07/09 18:21:34 george Exp $ - +# $Header: /var/cvsroot/gentoo-x86/app-sci/gmt/gmt-3.4.3.ebuild,v 1.2 2003/09/06 04:53:38 vapier Exp $ DESCRIPTION="Powerfull map generator" - HOMEPAGE="http://gmt.soest.hawaii.edu/" - SRC_URI="ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_progs.tar.bz2 - ftp://gmt.soest.hawaii.edu/pub/gmt/GMT_share.tar.bz2 - ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_tut.tar.bz2 - ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_scripts.tar.bz2 - ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_man.tar.bz2 - gmtsuppl? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_suppl.tar.bz2) - gmtfull? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT_full.tar.bz2 ) - gmthigh? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT_high.tar.bz2 ) - gmttria? ( ftp://gmt.soest.hawaii.edu/pub/gmt/triangle.tar.bz2 )" - #gmtpdf? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_pdf.tar.bz2 ) + ftp://gmt.soest.hawaii.edu/pub/gmt/GMT_share.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_tut.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_scripts.tar.bz2 + ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_man.tar.bz2 + gmtsuppl? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_suppl.tar.bz2) + gmtfull? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT_full.tar.bz2 ) + gmthigh? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT_high.tar.bz2 ) + gmttria? ( ftp://gmt.soest.hawaii.edu/pub/gmt/triangle.tar.bz2 )" + #gmtpdf? ( ftp://gmt.soest.hawaii.edu/pub/gmt/GMT${PV}_pdf.tar.bz2 ) LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" - -#Internal USE flags. IUSE="gmtsuppl gmtfull gmthigh gmttria" #Need to include gcc and bzip?? DEPEND=">=app-sci/netcdf-3.5.0" - #RDEPEND="" S="${WORKDIR}/GMT${PV}" @@ -42,51 +36,39 @@ src_unpack() { unpack ${A} || die mv -f ${WORKDIR}/share/* ${S}/share/ || die - if [ -n "`use gmttria`" ]; then - mv -f ${WORKDIR}/src/* ${S}/src/ || die + if [ `use gmttria` ] ; then + mv -f ${WORKDIR}/src/* ${S}/src/ || die fi - } src_compile() { - #In make process will include /lib and /include to NETCDFHOME + #In make process will include /lib and /include to NETCDFHOME export NETCDFHOME="/usr" - local myconf mymake - - myconf=" --prefix=/usr \ - --bindir=/usr/bin \ - --libdir=/usr/lib/gmt-${PV} \ - --includedir=/usr/include/gmt-${PV} \ - --mandir=/usr/man - --datadir=/usr/share/${PN}" - + local myconf= use gmttria && myconf="${myconf} --enable-triangle" + econf \ + --libdir=/usr/lib/gmt-${PV}·\ + --includedir=/usr/include/gmt-${PV}·\ + ${myconf} \ + || die "configure failed" - ./configure ${myconf} \ - || die "configure failed" - - mymake="gmt" + local mymake= use gmtsuppl && mymake="${mymake} suppl" - - make ${mymake} \ - || die "make ${mymake} failed" - + make gmt ${mymake} || die "make ${mymake} failed" } src_install() { - mymake="install install-data install-man" - + local mymake= use gmtsuppl && mymake="${mymake} install-suppl" use doc && mymake="${mymake} install-www" - make \ - prefix=${D}/usr \ - bindir=${D}/usr/bin \ - libdir=${D}/usr/lib/gmt-${PV} \ + einstall \ includedir=${D}/usr/include/gmt-${PV} \ - mandir=${D}/usr/man \ - datadir=${D}/usr/share/${PN} \ + libdir=${D}/usr/lib/gmt-${PV}·\ + install \ + install-data \ + install-man \ ${mymake} \ || die "install failed" @@ -107,5 +89,4 @@ pkg_postinst() { einfo "gmttria -> Non GNU triangulate method, but more efficient;" einfo "gmtsuppl -> Supplement functions for GMT;" einfo "Others GMT flags will be included soon." - } |