summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sci-geosciences/cdat-lite')
-rw-r--r--sci-geosciences/cdat-lite/ChangeLog10
-rw-r--r--sci-geosciences/cdat-lite/Manifest5
-rw-r--r--sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild44
-rw-r--r--sci-geosciences/cdat-lite/files/cdat-lite-6.0_rc2-QA.patch132
-rw-r--r--sci-geosciences/cdat-lite/metadata.xml6
5 files changed, 197 insertions, 0 deletions
diff --git a/sci-geosciences/cdat-lite/ChangeLog b/sci-geosciences/cdat-lite/ChangeLog
new file mode 100644
index 000000000000..6eed95292b43
--- /dev/null
+++ b/sci-geosciences/cdat-lite/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for sci-geosciences/cdat-lite
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/cdat-lite/ChangeLog,v 1.1 2013/02/10 20:19:08 hasufell Exp $
+
+*cdat-lite-6.0_rc2 (10 Feb 2013)
+
+ 10 Feb 2013; Julian Ospald <hasufell@gentoo.org> +cdat-lite-6.0_rc2.ebuild,
+ +files/cdat-lite-6.0_rc2-QA.patch, +metadata.xml:
+ initial import wrt #302082
+
diff --git a/sci-geosciences/cdat-lite/Manifest b/sci-geosciences/cdat-lite/Manifest
new file mode 100644
index 000000000000..6eb0d23db1cf
--- /dev/null
+++ b/sci-geosciences/cdat-lite/Manifest
@@ -0,0 +1,5 @@
+AUX cdat-lite-6.0_rc2-QA.patch 4595 SHA256 a681637e34ac33ace92f2be87f5b485f7ce83e15dc6d823379d68d2ae5c53913 SHA512 c2793ceba3a7df0f30df23f6b0190ab61f242c2cd2dee402b8b3c4ab3e6092f5873aec243eb92b49345be33eb4d93af990b4f1dff9afeec449851511006f6c12 WHIRLPOOL 456229fbfd8fa081022c3681cecdc08ba86774ffed4348255fb22c59bed5b2f40666e278f5d136f88cbd8e3f5e67a29ec9a49ce53584275a63d0107c0c740fef
+DIST cdat_lite-6.0rc2.tar.gz 3563402 SHA256 6cbfdf9b47fdbc189ca7d2819dafb6cf958116e0f6077b325c375a0ddfab2a95 SHA512 bf6bc00305d29adbb2608865a56e2fe36dde56f4d7a0e63266549ce5e74120be602ac16c3e1c02bc9216e7c613ad92697f6a61a4b02158e1bf46e178d841a90f WHIRLPOOL 9cbb784402713231c89b37eb69969ed1431848d38973eb1d3682c260509ae892c35c97a96f386713e9ff30e0d51fbe9197073aa92533b92f799b2331db61d41f
+EBUILD cdat-lite-6.0_rc2.ebuild 1043 SHA256 a52aa30e4893bab1f0895a5c608bf495f5aa4e777f9139eb0e660bc6d95ad0b5 SHA512 8d1eab901ebb4b40f48f8141237930abce79a58f17606de0daf44b40d6e6a04a4c15e89095af86e09d5786db5316ee97ecbfc9ddf88a949e31625f9ea6e59a27 WHIRLPOOL dbbb5f55415718e33299d586dc0f5f332ac86a3099c5a57c88295d5f0b0be6f75c081336b272d9d438277d0a146f2ae6f34b2b74e19a8111453a59568ad74e40
+MISC ChangeLog 320 SHA256 34ad6009de62f3983f599f58670bfa5f9e008ebb6426076f9c35f5452a9b962d SHA512 5721ebe7ad0aaeb00de8f4d624f4e0f40f4ebc2fae4a2df34d266ac6d4172e1b0c149511212e18c78cd6fe62f6ce1bf89f729c35d0dec5dc69dcd97666e07522 WHIRLPOOL 799b7e4475be3516253e4d9180d424d540989f17215d3897668d5836bd8b3e7c0a74b798189a1997d823f6c37a4adae7968eb9b752145a1322ae133bdc3bf098
+MISC metadata.xml 170 SHA256 fbe0b97a5d5352ef55feaddcf536736abe349d3d0aa14134cc47be3d83786ee6 SHA512 21d847f39db9b7029de6e45078453fbc0acd188728ba245ee584a48bb5b96d8cd7edc13b444e7a3dd6a1edf9fd0bd86c4b4fd80b9c7d94247c75e3923d78e896 WHIRLPOOL 738937fa1b05fbd54f47294bd428e28881e6a4da6915d96e54279b7ff32d58b3ce55072851e26f1a8d62e15b546d5ec28caa4988b8fd81df1e15e1fde56aae72
diff --git a/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild b/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild
new file mode 100644
index 000000000000..3d28e427554e
--- /dev/null
+++ b/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/cdat-lite/cdat-lite-6.0_rc2.ebuild,v 1.1 2013/02/10 20:19:08 hasufell Exp $
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_6 python2_7 )
+PYTHON_REQ_USE="tk,xml"
+DISTUTILS_IN_SOURCE_BUILD=1
+inherit eutils distutils-r1 toolchain-funcs
+
+MY_P=${P/-/_}
+MY_P=${MY_P/_rc/rc}
+
+DESCRIPTION="Large suite of open source tools for the management and analysis of climate data"
+HOMEPAGE="http://proj.badc.rl.ac.uk/cedaservices/wiki/CdatLite"
+SRC_URI="http://ndg.nerc.ac.uk/dist/${MY_P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEPEND=">=sci-libs/netcdf-4.0.1
+ >=sci-libs/hdf5-1.6.4
+ dev-python/numpy[${PYTHON_USEDEP}]
+ dev-python/wxpython:2.8[${PYTHON_USEDEP}]
+ virtual/pmw[${PYTHON_USEDEP}]"
+DEPEND="${COMMON_DEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="${COMMON_DEPEND}
+ !sci-biology/ncbi-tools"
+
+S="${WORKDIR}/${MY_P}"
+
+pkg_setup() {
+ tc-export CC FC RANLIB AR
+}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-QA.patch
+ find "${S}" -type l -delete || die
+ distutils-r1_src_prepare
+}
diff --git a/sci-geosciences/cdat-lite/files/cdat-lite-6.0_rc2-QA.patch b/sci-geosciences/cdat-lite/files/cdat-lite-6.0_rc2-QA.patch
new file mode 100644
index 000000000000..a00206ea739d
--- /dev/null
+++ b/sci-geosciences/cdat-lite/files/cdat-lite-6.0_rc2-QA.patch
@@ -0,0 +1,132 @@
+--- cdat_lite-6.0rc2/libcdms/Makefile.in
++++ cdat_lite-6.0rc2/libcdms/Makefile.in
+@@ -44,15 +44,15 @@
+ PARMDIR=$(prefix)/lib/lats
+
+ CC = @CC@
+-CFLAGS = -I../../include @CFLAGS@ $(DEBUG) -Dgrads @GRIB2INC@ @GRIB2OPTS@
++CFLAGS = -fPIC -I../../include @CFLAGS@ -Dgrads @GRIB2INC@ @GRIB2OPTS@
+ CPPFLAGS = @CPPFLAGS@
+ DEBUG = -O
+ DEFS = @DEFS@
+ FC = @FC@
+-FFLAGS = -I../../include @FFLAGS@ $(DEBUG)
++FFLAGS = -I../../include @FFLAGS@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-LDFLAGS = -L../../../lib -lcdms @NCOPTS@ @HDFOPTS@ @DRSOPTS@ @LIBS@ @GRIB2LIB@
++LDFLAGS += -L../../../lib -lcdms @NCOPTS@ @HDFOPTS@ @DRSOPTS@ @LIBS@ @GRIB2LIB@
+ OS = @OS@
+ RANLIB = @RANLIB@
+
+--- cdat_lite-6.0rc2/libcdms/src/db_util/Makefile.in
++++ cdat_lite-6.0rc2/libcdms/src/db_util/Makefile.in
+@@ -38,17 +38,18 @@
+ PARMDIR=$(prefix)/lib/lats
+
+ CC = @CC@
+-CFLAGS = -I../../include @CFLAGS@ $(DEBUG) -Dgrads
++CFLAGS = -fPIC -I../../include @CFLAGS@ -Dgrads
+ CPPFLAGS = @CPPFLAGS@
+ DEBUG = -O
+ DEFS = @DEFS@
+ FC = @FC@
+-FFLAGS = -I../../include @FFLAGS@ $(DEBUG)
++FFLAGS = -I../../include @FFLAGS@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-LDFLAGS = -L../../../lib -lcdms @NCOPTS@ @DRSOPTS@ @LIBS@
++LDFLAGS += -L../../../lib -lcdms @NCOPTS@ @DRSOPTS@ @LIBS@
+ OS = @OS@
+ RANLIB = @RANLIB@
++AR ?= ar
+
+ # Shell to run make subcommands
+ SHELL = /bin/sh
+@@ -60,7 +61,7 @@
+ cdUtil.o
+
+ all: $(OBJS) FORCE
+- ar rv $(LIBRARY) $(OBJS)
++ $(AR) rv $(LIBRARY) $(OBJS)
+ $(RANLIB) $(LIBRARY)
+
+ cdTimeConv.o: cdTimeConv.c ../../include/cdmsint.h ../../include/cdms.h ../../include/cdunif.h
+--- cdat_lite-6.0rc2/libcdms/src/cdunif/Makefile.in
++++ cdat_lite-6.0rc2/libcdms/src/cdunif/Makefile.in
+@@ -47,29 +47,29 @@
+ PARMDIR=$(prefix)/lib/lats
+
+ # Set the compiler flag for the 64-bit Opteron platform
++CC = @CC@
+ ARCH=$(shell uname -m)
+ ifeq ($(ARCH),x86_64)
+- CC = gcc -fPIC -D__x86_64__
+-else
+- CC = @CC@
++ CC += -fPIC -D__x86_64__
+ endif
+
+ ifneq (@GRIB2INC@,)
+- CFLAGS = -I../../include -I"@NCINC@" -I@HDFINC@ -I@DRSINC@ @CFLAGS@ $(DEBUG) -Dgrads -I@GRIB2INC@ @GRIB2OPTS@
++ CFLAGS = -I../../include -I"@NCINC@" -I@HDFINC@ -I@DRSINC@ @CFLAGS@ -Dgrads -I@GRIB2INC@ @GRIB2OPTS@
+ else
+- CFLAGS = -I../../include -I"@NCINC@" -I@HDFINC@ -I@DRSINC@ @CFLAGS@ $(DEBUG) -Dgrads
++ CFLAGS = -I../../include -I"@NCINC@" -I@HDFINC@ -I@DRSINC@ @CFLAGS@ -Dgrads
+ endif
+
+-CPPFLAGS = @CPPFLAGS@ -DSTNDALN=1 -DBYTEORDER=@GRADS_BYTEORDER@ -DGRADS_CRAY=@GRADS_CRAY@ @QLOPTS@ @PPOPTS@ @GRIB2OPTS@
++CPPFLAGS += @CPPFLAGS@ -DSTNDALN=1 -DBYTEORDER=@GRADS_BYTEORDER@ -DGRADS_CRAY=@GRADS_CRAY@ @QLOPTS@ @PPOPTS@ @GRIB2OPTS@
+ DEBUG = -O
+ DEFS = @DEFS@
+ FC = @FC@
+-FFLAGS = -I../../include @FFLAGS@ $(DEBUG)
++FFLAGS = -I../../include @FFLAGS@
+ INSTALL = @INSTALL@
+ INSTALL_PROGRAM = @INSTALL_PROGRAM@
+-LDFLAGS = -L../../../lib -lcdms @NCOPTS@ @HDFOPTS@ @DRSOPTS@ @LIBS@ @GRIB2LIB@
++LDFLAGS += -L../../../lib -lcdms @NCOPTS@ @HDFOPTS@ @DRSOPTS@ @LIBS@ @GRIB2LIB@
+ OS = @OS@
+ RANLIB = @RANLIB@
++AR ?= ar
+
+ # Shell to run make subcommands
+ SHELL = /bin/sh
+@@ -80,7 +80,7 @@
+ OBJS = cdunif.o cdunifint.o cdunifgen.o cdunifdrs.o cdunifgrads.o cdunifnc.o cdunifhdf.o cdunifslab.o cdunifstub.o cdunifra.o cdrra.o cdsort.o gamach.o gaio.o gaprnt.o gautil.o gaddes.o galloc.o gabufr.o gabufrtbl.o cdunifql.o @GRADS_IEEE2CRAY_OBJECT@
+
+ all: $(OBJS) FORCE
+- ar rv $(LIBRARY) $(OBJS)
++ $(AR) rv $(LIBRARY) $(OBJS)
+ cd cdunifpp; $(MAKE) DEBUG=$(DEBUG)
+ $(RANLIB) $(LIBRARY)
+
+--- cdat_lite-6.0rc2/libcdms/src/cdunif/cdunifpp/Makefile.in
++++ cdat_lite-6.0rc2/libcdms/src/cdunif/cdunifpp/Makefile.in
+@@ -37,12 +37,13 @@
+ # set to blank if you don't want to rename symbols in unpacking routines
+
+ CC = @CC@
+-CFLAGS = -I../../../include/cdunifpp -I@NCINC@ @CFLAGS@ -I../../../include $(DEBUG)
++CFLAGS = -fPIC -I../../../include/cdunifpp -I@NCINC@ @CFLAGS@ -I../../../include
+ CPPFLAGS = @CPPFLAGS@ @PPOPTS@ -Uhdf
+ LIBRARY = ../../../lib/libcdms.a
++AR ?= ar
+
+ all: $(OBJS)
+- ar rv $(LIBRARY) $(OBJS)
++ $(AR) rv $(LIBRARY) $(OBJS)
+ # (ranlib called by higher-level makefile)
+
+ %.o: %.c $(HEADERS)
+--- cdat_lite-6.0rc2/setup_util.py
++++ cdat_lite-6.0rc2/setup_util.py
+@@ -296,8 +296,6 @@
+ nc4_defs = ''
+
+ self._system('cd libcdms ; '
+- 'CFLAGS="-fPIC" '
+- 'CC=%(cc)s '
+ 'sh ./configure --disable-drs --disable-hdf '
+ '--disable-ql --with-ncinc=%(ncinc)s --with-ncincf=%(ncinc)s --with-nclib=%(nclib)s %(nc4)s'
+ % dict(ncinc=netcdf_config.netcdf_incdir, nclib=netcdf_config.netcdf_libdir,
diff --git a/sci-geosciences/cdat-lite/metadata.xml b/sci-geosciences/cdat-lite/metadata.xml
new file mode 100644
index 000000000000..26d2defc878b
--- /dev/null
+++ b/sci-geosciences/cdat-lite/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci-geosciences</herd>
+</pkgmetadata>
+