aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Fabbro <seb@cayenne.ist.utl.pt>2010-01-22 18:33:29 +0000
committerSebastien Fabbro <seb@cayenne.ist.utl.pt>2010-01-22 18:33:29 +0000
commit1c109000c4d979a7bcb36c23dec5a4ae01a8d560 (patch)
treea2a1a24edcfc3cd2205cdff0d9307a02df79b0b8 /dev-java/hdf-java
parentmove EGIT stuff up before inherit (diff)
downloadsci-1c109000c4d979a7bcb36c23dec5a4ae01a8d560.tar.gz
sci-1c109000c4d979a7bcb36c23dec5a4ae01a8d560.tar.bz2
sci-1c109000c4d979a7bcb36c23dec5a4ae01a8d560.zip
Initial import of hdf-java
Diffstat (limited to 'dev-java/hdf-java')
-rw-r--r--dev-java/hdf-java/ChangeLog10
-rw-r--r--dev-java/hdf-java/Manifest5
-rw-r--r--dev-java/hdf-java/files/hdf-java-2.6-shared.patch113
-rw-r--r--dev-java/hdf-java/hdf-java-2.6.ebuild60
-rw-r--r--dev-java/hdf-java/metadata.xml17
5 files changed, 205 insertions, 0 deletions
diff --git a/dev-java/hdf-java/ChangeLog b/dev-java/hdf-java/ChangeLog
new file mode 100644
index 000000000..85c88a06a
--- /dev/null
+++ b/dev-java/hdf-java/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for dev-java/hdf-java
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*hdf-java-2.6 (22 Jan 2010)
+
+ 22 Jan 2010; S├ębastien Fabbro <bicatali@gentoo.org> +hdf-java-2.6.ebuild,
+ +files/hdf-java-2.6-shared.patch, +metadata.xml:
+ Initial import. Ebuild initially submitted by Guillaume Horel, bug #301049
+
diff --git a/dev-java/hdf-java/Manifest b/dev-java/hdf-java/Manifest
new file mode 100644
index 000000000..f1a1e237f
--- /dev/null
+++ b/dev-java/hdf-java/Manifest
@@ -0,0 +1,5 @@
+AUX hdf-java-2.6-shared.patch 3588 RMD160 cf8525d63a5e6336ed105fbfaf11d32eb5700e40 SHA1 c646d28f33f150d8799d1d5edb95683a36e4c2b0 SHA256 0a9b58894066159fa3296f3a4a9895242ced1d1bdf3b585033116f07d1c60675
+DIST hdf-java-2.6-src.tar 10321920 RMD160 2251033e66f8a24e9e2eccd3261cc46960f72b92 SHA1 5b7a6adc00348469f225c6a157ad03764642f1e9 SHA256 52a838d2e14417e573cc531317adc72f360ecb34dd6cce01b5386b2ffd6164f6
+EBUILD hdf-java-2.6.ebuild 1362 RMD160 650ddbbea8f9385c02dd0dd0416ffc7c98cc8ffe SHA1 2bad645eb1bd7bacecd5951d6db213e93d2f745f SHA256 1b5590c77f6009dd0ba363e7dc1740602f4297b158a9db5a6ae53c970bbc5c53
+MISC ChangeLog 353 RMD160 cec510bb170ac4591988623cc8f84e8fe3b7cd7a SHA1 d31c9abf92665df40805f3180f88954a6fd8eaaf SHA256 b56a9be8fa8d28f3f1b0c4535c5530cf37813fdbd03e217f491796cf3d3cf11e
+MISC metadata.xml 695 RMD160 ba84297087b26c64b36a4a5c269187ddbfe0563f SHA1 bc11c02484fab4059dd22881d4714d7b77caed37 SHA256 97a459b5696f58666686ad9722dd445459352350eef1d568097ac420de4a4954
diff --git a/dev-java/hdf-java/files/hdf-java-2.6-shared.patch b/dev-java/hdf-java/files/hdf-java-2.6-shared.patch
new file mode 100644
index 000000000..c41b9584d
--- /dev/null
+++ b/dev-java/hdf-java/files/hdf-java-2.6-shared.patch
@@ -0,0 +1,113 @@
+--- configure.in.orig 2010-01-22 08:30:29.000000000 +0000
++++ configure.in 2010-01-22 08:32:18.000000000 +0000
+@@ -177,7 +177,7 @@
+ *)
+ if test -n "$withval" ; then
+ z_lib="`echo $withval |cut -f2 -d, -s`"
+- ZLIB=$z_lib"/libz."$LLEXT
++ ZLIB="-L$z_lib -lz"
+ HAVE_ZLIB="yes"
+ else
+ ZLIB=""
+@@ -211,7 +211,7 @@
+ *)
+ if test -n "$withval" ; then
+ jpeg_lib="`echo $withval |cut -f2 -d, -s`"
+- JPEGLIB=$jpeg_lib"/libjpeg."$LLEXT
++ JPEGLIB="-L$jpeg_lib -ljpeg"
+ #AC_MSG_RESULT([jpeg found: $JPEGLIB]);
+ HAVE_JPEG="yes"
+ else
+@@ -246,7 +246,7 @@
+ *)
+ if test -n "$withval" ; then
+ sz_lib="`echo $withval |cut -f2 -d, -s`"
+- SZLIB=$sz_lib"/libsz."$LLEXT
++ SZLIB="-L$sz_lib -lsz"
+ #AC_MSG_RESULT([szlib found: $SZLIB]);
+ HAVE_SZIP="yes"
+ else
+@@ -302,7 +302,7 @@
+ ;;
+ esac
+ if test -n "$HDF4LIB"; then
+- LIBS="$HDF4LIB/libdf.$LLEXT $HDF4LIB/libmfhdf.$LLEXT $LIBS"
++ LIBS="-L$HDF4LIB -ldf -lmfhdf $LIBS"
+ HAVE_HDF4="yes"
+ fi
+ AC_MSG_RESULT([$HAVE_HDF4])
+@@ -363,7 +363,7 @@
+ *)
+ if test -n "$withval" ; then
+ hdf5_lib="`echo $withval |cut -f2 -d, -s`"
+- HDF5LIB=$hdf5_lib"/libhdf.$LLEXT"
++ HDF5LIB="-L$hdf5_lib -lhdf"
+ hdf5_inc="`echo $withval |cut -f1 -d,`"
+ if test -n "$hdf5_inc"; then
+ HDF5INC="$hdf5_inc"
+@@ -380,7 +380,7 @@
+ ;;
+ esac
+ if test -n "$HDF5LIB"; then
+- LIBS="$HDF5LIB/libhdf5.$LLEXT $LIBS"
++ LIBS="-L$HDF5LIB -lhdf5 $LIBS"
+ HAVE_HDF5="yes"
+ fi
+ AC_MSG_RESULT([$HAVE_HDF5])
+@@ -626,6 +626,7 @@
+ AC_CACHE_CHECK("JH45 install directory",ac_cv_lib_JH45INST,JH45INST_FOUND=0)
+ fi
+ if test $JH45INST_FOUND -eq 1; then
++ mkdir -p $JH45INST
+ if test -z "$JH45INST" ; then
+ JH45INST=$ac_cv_lib_JH45INST;
+ fi
+@@ -633,7 +634,7 @@
+ JH45INST_FOUND=0
+ fi
+ if test \( ! -w "$JH45INST" \); then
+- AC_MSG_ERROR( [ $JAVINST : not writable ])
++ AC_MSG_ERROR( [ $JH45INST : not writable ])
+ JH45INST_FOUND=0
+ fi
+ fi
+--- native/hdflib/Makefile.in.orig 2010-01-22 08:40:36.000000000 +0000
++++ native/hdflib/Makefile.in 2010-01-22 09:01:17.000000000 +0000
+@@ -37,7 +37,7 @@
+ CFLAGS = $(DEFS) -I. -I$(JAVAINC1) -I$(JAVAINC2) -I$(HDFINC)
+
+ # Be sure to add -lbsd if compiling in a SYSV environment
+-LIBS = $(HDFLIB)/libmfhdf.$(LLEXT) $(HDFLIB)/libdf.$(LLEXT) $(SZLIB) $(ZLIB) $(JPEGLIB) -lm
++LIBS = -L$(HDFLIB) -lmfhdf -ldf $(SZLIB) $(ZLIB) $(JPEGLIB) -lm
+
+ # Macro def: object filename used
+ OBJECTS = hdfstructsutil.o \
+@@ -56,7 +56,7 @@
+
+ libjhdf: $(OBJECTS)
+ -mkdir -p $(LIBDIR);
+- $(LD) $(LDOPT) -o $(LIBDIR)/libjhdf.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
++ $(LD) $(LDOPT) $(LDFLAGS) -o $(LIBDIR)/libjhdf.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
+
+ clean:
+ $(RM) -f *.o so_locations $(LIBDIR)/libjhdf.$(JSLEXT)
+--- native/hdf5lib/Makefile.in.orig 2010-01-22 08:40:59.000000000 +0000
++++ native/hdf5lib/Makefile.in 2010-01-22 09:01:40.000000000 +0000
+@@ -33,7 +33,7 @@
+
+ CFLAGS = -DH5_USE_16_API -D_FILE_OFFSET_BITS=64 $(DEFS) -I. -I$(HDF5INC) -I$(JAVAINC1) -I$(JAVAINC2)
+
+-LIBS = $(HDF5LIB)/libhdf5.$(LLEXT) $(ZLIB) $(SZLIB) -lm
++LIBS = -L$(HDF5LIB) -lhdf5 $(ZLIB) $(SZLIB) -lm
+
+ # Macro def: object filename used
+ OBJECTS = exceptionImp.o h5Constants.o h5Imp.o h5aImp.o h5dImp.o h5fImp.o h5gImp.o h5iImp.o h5pImp.o h5rImp.o h5sImp.o h5tImp.o nativeData.o h5util.o h5zImp.o
+@@ -45,7 +45,7 @@
+
+ libjhdf5: $(OBJECTS)
+ -mkdir -p $(LIBDIR);
+- $(LD) $(LDOPT) -o $(LIBDIR)/libjhdf5.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
++ $(LD) $(LDOPT) $(LDFLAGS) -o $(LIBDIR)/libjhdf5.$(JSLEXT) $(LDOPT2) $(OBJECTS) $(LIBS)
+
+ clean:
+ $(RM) -f *.o so_locations $(LIBDIR)/libjhdf5.$(JSLEXT)
diff --git a/dev-java/hdf-java/hdf-java-2.6.ebuild b/dev-java/hdf-java/hdf-java-2.6.ebuild
new file mode 100644
index 000000000..fb08380ce
--- /dev/null
+++ b/dev-java/hdf-java/hdf-java-2.6.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=2
+JAVA_PKG_IUSE="doc examples source"
+inherit eutils java-pkg-2 autotools
+
+DESCRIPTION="Java interface to the HDF5 library"
+HOMEPAGE="http://www.hdfgroup.org/hdf-java-html/index.html"
+SRC_URI="http://www.hdfgroup.org/ftp/HDF5/hdf-java/src/${P}-src.tar"
+
+LICENSE="NCSA-HDF"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="hdf"
+
+CDEPEND=">=sci-libs/hdf5-1.8[szip]
+ hdf? ( sci-libs/hdf )
+ >=media-libs/jpeg-7
+ sys-libs/zlib"
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+
+DEPEND=">=virtual/jdk-1.5
+ ${CDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ sed -i \
+ -e 's|case JH5F_SCOPE_DOWN|//case JH5F_SCOPE_DOWN|' \
+ native/hdf5lib/h5Constants.c || die
+ epatch "${FILESDIR}"/${P}-shared.patch
+ eautoreconf
+}
+
+src_configure() {
+ local stdpath="/usr/include,/usr/$(get_libdir)"
+ local myconf="--with-hdf4=no --with-libjpeg=no"
+ use hdf && \
+ myconf="--with-libjpeg=${stdpath} --with-hdf4=${stdpath}"
+
+ econf \
+ ${myconf} \
+ --with-libz="${stdpath}" \
+ --with-libsz="${stdpath}" \
+ --with-hdf5="${stdpath}" \
+ --with-jdk="$(java-config -o)/include,$(java-config -o)/jre/lib"
+}
+
+src_compile() {
+ # parallel needs work. anyone?
+ emake -j1 || die "emake failed"
+}
+
+src_install() {
+ java-pkg_dojar "lib/jhdf5.jar"
+ java-pkg_doso "lib/linux/libjhdf5.so"
+}
diff --git a/dev-java/hdf-java/metadata.xml b/dev-java/hdf-java/metadata.xml
new file mode 100644
index 000000000..379252764
--- /dev/null
+++ b/dev-java/hdf-java/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>sci</herd>
+<longdescription lang="en">
+ HDF is a versatile data model that can represent very complex data
+ objects and a wide variety of metadata. It is a completely portable
+ file format with no limit on the number or size of data objects in
+ the collection.
+ 1;2202;0c This Java package implements HDF4/HDF5 data objects in an object-oriented
+ form. It provides a common Java API for accessing HDF files.
+</longdescription>
+<use>
+ <flag name='hdf'>Add support for the Hierarchical Data Format v.4
+ (<pkg>sci-libs/hdf</pkg>)</flag>
+</use>
+</pkgmetadata>