summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-libs')
-rw-r--r--sci-libs/xgks-pmel/ChangeLog11
-rw-r--r--sci-libs/xgks-pmel/files/aclocal.patch146
-rw-r--r--sci-libs/xgks-pmel/metadata.xml13
-rw-r--r--sci-libs/xgks-pmel/xgks-pmel-2.5.5.ebuild61
4 files changed, 231 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/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
+}