diff options
author | Steve Arnold <nerdboy@gentoo.org> | 2009-04-30 06:36:24 +0000 |
---|---|---|
committer | Steve Arnold <nerdboy@gentoo.org> | 2009-04-30 06:36:24 +0000 |
commit | 5af53e2da5f73a912f5437e68a3a487beb37b5bb (patch) | |
tree | aaeccf4f989a47e7c3c5b9247c738db77dbf6663 /sci-libs | |
parent | version bump (diff) | |
download | historical-5af53e2da5f73a912f5437e68a3a487beb37b5bb.tar.gz historical-5af53e2da5f73a912f5437e68a3a487beb37b5bb.tar.bz2 historical-5af53e2da5f73a912f5437e68a3a487beb37b5bb.zip |
New ebuild for PMEL's xgks library, a required dependency for Ferret.
Package-Manager: portage-2.2_rc31/cvs/Linux x86_64
Diffstat (limited to 'sci-libs')
-rw-r--r-- | sci-libs/xgks-pmel/ChangeLog | 11 | ||||
-rw-r--r-- | sci-libs/xgks-pmel/Manifest | 5 | ||||
-rw-r--r-- | sci-libs/xgks-pmel/files/aclocal.patch | 146 | ||||
-rw-r--r-- | sci-libs/xgks-pmel/metadata.xml | 13 | ||||
-rw-r--r-- | sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild | 61 |
5 files changed, 236 insertions, 0 deletions
diff --git a/sci-libs/xgks-pmel/ChangeLog b/sci-libs/xgks-pmel/ChangeLog new file mode 100644 index 000000000000..96dc2e94d6e8 --- /dev/null +++ b/sci-libs/xgks-pmel/ChangeLog @@ -0,0 +1,11 @@ +# ChangeLog for sci-libs/xgks-pmel +# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/xgks-pmel/ChangeLog,v 1.1 2009/04/30 06:36:23 nerdboy Exp $ + +*xgks-pmel-2.5.5 (30 Apr 2009) + + 30 Apr 2009; Steve Arnold <nerdboy@gentoo.org> +files/aclocal.patch, + +metadata.xml, +xgks-pmel-2.5.5.ebuild: + New ebuild for PMEL's xgks library, another required dependency for Ferret. + Still needs merging with the newer (but unloved) code on sourceforge. + diff --git a/sci-libs/xgks-pmel/Manifest b/sci-libs/xgks-pmel/Manifest new file mode 100644 index 000000000000..d9c28a05e7a7 --- /dev/null +++ b/sci-libs/xgks-pmel/Manifest @@ -0,0 +1,5 @@ +AUX aclocal.patch 3851 RMD160 93313212e681430a5e0133a40ec3e456d4492aa6 SHA1 3a9bea440332fd4a2e720fb7fbb2116ed7a2a4be SHA256 88f8ed94483883af584167a0fb942ddd6b95062cc86020b425aa938cf93cdf24 +DIST xgks-pmel-2.5.5.tar.gz 1006581 RMD160 0741abd3521821969dc03a2c9960956470c929b4 SHA1 3acba765ffbe85d63e0f8fb1bbe2fce1b77cbb5f SHA256 43a198aaa4d9497597e9253be19afc60d9dedda63a1fbcd718f77454d27adbb4 +EBUILD xgks-pmel-2.5.5.ebuild 1638 RMD160 af31e934549140199593d2d1d13790074325d423 SHA1 0e21f71bdb4e8d596b7d5b777a826af90195677a SHA256 a597f8a608057b02b3622b12318d9cdcc9d6528feafeebd45cdf6f548ef45f57 +MISC ChangeLog 506 RMD160 e9782e2d93d55a4797c9a5edf7dc9472baf90f2b SHA1 ca693f474b39159b22062bb447cdeca9a1a988df SHA256 1632385c8b375caa33428e9dd6918720fe8fdcc461129a4222b780c8e542fa83 +MISC metadata.xml 456 RMD160 50e3387bf66815aee586f47abbe91593cb0e2fb6 SHA1 c149a97cccc5591a90f28c8392cfb9b32a6e276b SHA256 b24e61c19afcd82da69364232e0281c6b3b0dfdd1eeb0d9eb17243b253c19329 diff --git a/sci-libs/xgks-pmel/files/aclocal.patch b/sci-libs/xgks-pmel/files/aclocal.patch new file mode 100644 index 000000000000..48d44d747647 --- /dev/null +++ b/sci-libs/xgks-pmel/files/aclocal.patch @@ -0,0 +1,146 @@ +--- port/aclocal.m4.orig 2009-04-26 13:33:51.434402251 -0700 ++++ port/aclocal.m4 2009-04-26 13:43:33.466651210 -0700 +@@ -582,26 +582,6 @@ + ])]) + + +-# Check for ncdump(1) +-# +-define([UC_PROG_NCDUMP], [dnl +-AC_PROGRAM_CHECK(NCDUMP, ncdump, ncdump, UC_ABSPATH($exec_prefix)/ncdump)dnl +-if test `which "$NCDUMP" | wc -w` != 1; then +- UC_NEED_VALUE(NCDUMP, [netCDF lister], /usr/local/unidata/bin/ncdump)dnl +-fi +-]) +- +- +-# Check for ncgen(1) +-# +-define([UC_PROG_NCGEN], [dnl +-AC_PROGRAM_CHECK(NCGEN, ncgen, ncgen, UC_ABSPATH($exec_prefix)/ncgen)dnl +-if test `which "$NCGEN" | wc -w` != 1; then +- UC_NEED_VALUE(NCGEN, [netCDF generator], /usr/local/unidata/bin/ncgen)dnl +-fi +-]) +- +- + # Test a script. + # + define([UC_TEST_SCRIPT], +@@ -719,16 +699,6 @@ + ]) + + +-# Check for McIDAS library. +-# +-define([UC_LIB_MCIDAS], [dnl +-echo checking for MCIDAS library +-UC_TEST_LIB(LD_MCIDAS, /home/mcidas/lib /home/mcidasd/lib, mcidas, McIDAS, dnl +- -L/home/mcidas/lib -lmcidas)dnl +-AC_PROVIDE([$0])dnl +-]) +- +- + # Check for X11 library. + # + define([UC_LIB_X11], [dnl +@@ -745,77 +715,6 @@ + define([UC_X11], [AC_REQUIRE([UC_CPP_X11])AC_REQUIRE([UC_LIB_X11])]) + + +-# Check for netCDF header-file directory. +-# +-define([UC_CPP_NETCDF], [dnl +-echo checking for netCDF header-file +-UC_TEST_DIR(CPP_NETCDF, UC_ABSPATH($prefix/[[[include]]]), netcdf.h, +- [netCDF [[include]]-directory], [-I/usr/local/unidata/[[include]]])dnl +-CPP_NETCDF=`case ${CPP_NETCDF} in -I*) echo ${CPP_NETCDF};; *) echo -I${CPP_NETCDF-};; esac` +-AC_PROVIDE([$0])dnl +-]) +- +- +-# Check for netCDF library. +-# +-define([UC_LIB_NETCDF], [dnl +-echo checking for netCDF library +-UC_TEST_LIB(LD_NETCDF, UC_ABSPATH($prefix/lib), netcdf, +- netCDF, -L/usr/local/unidata/lib -lnetcdf)dnl +-AC_PROVIDE([$0])dnl +-]) +- +- +-# Check for netCDF implementation (header file and library). +-# +-define([UC_NETCDF], [AC_REQUIRE([UC_CPP_NETCDF])AC_REQUIRE([UC_LIB_NETCDF])]) +- +- +-# Check for netCDF operators library. +-# +-define([UC_LIB_NCOPERS], [dnl +-echo checking for netCDF operators library +-UC_TEST_LIB(LD_NCOPERS, UC_ABSPATH($prefix/lib), ncopers, +- netCDF-operators, [-L/usr/local/unidata/lib -lncopers])dnl +-AC_PROVIDE([$0])dnl +-]) +- +- +-# Check for LDM header-file directory. +-# +-define([UC_CPP_LDM], [dnl +-echo checking for LDM header-file +-UC_TEST_DIR(CPP_LDM, UC_ABSPATH($prefix/[[[include]]]) dnl +- UC_ABSPATH($prefix/../[[[include]]]) dnl +- UC_ABSPATH($prefix/../ldm/[[[include]]]), ldm.h, +- [LDM [[include]]-directory], [-I/usr/local/unidata/[[include]]])dnl +-CPP_LDM=`case ${CPP_LDM} in -I*) echo ${CPP_LDM};; *) echo -I${CPP_LDM-};; esac` +-if test -z "$CPP_LDM"; then +- UC_NEED_VALUE(CPP_LDM, [LDM include directory], -I/home/ldm/include)dnl +-fi +-AC_PROVIDE([$0])dnl +-]) +- +- +-# Check for LDM library. +-# +-define([UC_LIB_LDM], [dnl +-echo checking for LDM library +-UC_TEST_LIB(LD_LDM, UC_ABSPATH($prefix/lib) dnl +- UC_ABSPATH($prefix/../lib) UC_ABSPATH($prefix/../ldm/lib), ldm, +- LDM, -L/usr/local/unidata/lib -lldm)dnl +-if test -z "$LD_LDM"; then +- UC_NEED_VALUE(LD_LDM, [LDM library], -L/home/ldm/lib -lldm)dnl +-fi +-AC_PROVIDE([$0])dnl +-]) +- +- +-# Check for LDM implementation (header file and library). +-# +-define([UC_LDM], [AC_REQUIRE([UC_CPP_LDM])AC_REQUIRE([UC_LIB_LDM])]) +- +- + # Check for udres(3) library. + # + define([UC_LIB_UDRES], [dnl +--- port/configure.in.orig 2009-04-26 13:34:08.430308009 -0700 ++++ port/configure.in 2009-04-26 13:44:26.218430537 -0700 +@@ -24,8 +24,6 @@ + UC_PROG_FORTC + UC_PROG_NEQN + UC_PROG_TBL +-UC_PROG_NCDUMP +-UC_PROG_NCGEN + UC_PROG_INSTALL + + UC_UDPOSIX +--- port/master.mk.in.orig 2009-04-26 13:34:18.848400960 -0700 ++++ port/master.mk.in 2009-04-26 13:45:03.187651071 -0700 +@@ -19,8 +19,6 @@ + INSTALL_DATA = @INSTALL_DATA@ + INSTALL_PROGRAM = @INSTALL_PROGRAM@ + FC = @FC@ +-NCDUMP = @NCDUMP@ +-NCGEN = @NCGEN@ + NEQN = @NEQN@ + OS = @OS@ + SHELL = /bin/sh diff --git a/sci-libs/xgks-pmel/metadata.xml b/sci-libs/xgks-pmel/metadata.xml new file mode 100644 index 000000000000..ca6986954823 --- /dev/null +++ b/sci-libs/xgks-pmel/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>sci-geosciences</herd> +<maintainer> + <email>nerdboy@gentoo.org</email> +</maintainer> +<longdescription> +XGKS is a level 2C implementation of the ANSI Graphical Kernel System (GKS) for +X-windows, with a C and Fortran interface. This version has support for PMEL's +Ferret visualization tool. +</longdescription> +</pkgmetadata> diff --git a/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild b/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild new file mode 100644 index 000000000000..2db64ebdc6f0 --- /dev/null +++ b/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild,v 1.1 2009/04/30 06:36:23 nerdboy Exp $ + +inherit eutils fortran toolchain-funcs multilib + +DESCRIPTION="PMEL fork of XGKS, an X11-based version of the ANSI Graphical Kernel System." +HOMEPAGE="http://www.gentoogeek.org/viewvc/Linux/xgks-pmel/" +SRC_URI="http://www.gentoogeek.org/files/${P}.tar.gz" +LICENSE="UCAR-Unidata" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="doc" + +RDEPEND="x11-libs/libX11" + +DEPEND="${RDEPEND} + sys-devel/flex + sys-apps/groff" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/aclocal.patch +} + +src_compile() { + sed -i -e "s:lib64:$(get_libdir):g" port/master.mk.in \ + fontdb/Makefile.in || die "sed 1 failed" + + CFLAGS=${CFLAGS} LD_X11='-L/usr/$(get_libdir) -lX11' \ + FC=${FORTRANC} CC=$(tc-getCC) OS=linux \ + ./configure --prefix=/usr --exec_prefix=/usr/bin \ + || die "configure failed" + + sed -i -e "s:port/all port/install:port/all:g" Makefile \ + || die "sed 2 failed" + + make || die "make failed" + + cd src/fortran + make || die "make fortran failed" +} + +src_install() { + dobin progs/{defcolors,font,hanoi,mi,pline,pmark,star} || die + dolib.a src/lib/libxgks.a || die + + dodoc COPYRIGHT HISTORY INSTALL README || die + doman doc/{xgks.3,xgks_synop.3} + if use doc; then + newdoc doc/binding/cbinding.me cbinding || die + newdoc doc/userdoc/userdoc.me userdoc || die + fi + + insinto /usr/include + doins src/lib/xgks.h || die + + insinto /usr/share/xgksfonts + doins fontdb/{[1-9],*.gksfont} || die +} |