public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/sci:master commit in: dev-java/hdf-java/files/, profiles/, dev-java/hdf-java/
@ 2021-01-19 15:26 Andrew Ammerlaan
  0 siblings, 0 replies; only message in thread
From: Andrew Ammerlaan @ 2021-01-19 15:26 UTC (permalink / raw
  To: gentoo-commits

commit:     6b3c9f47c261c4e72d073ee67bccf04f02b9e94e
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Tue Jan 19 15:26:03 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Jan 19 15:26:03 2021 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=6b3c9f47

dev-java/hdf-java: remove obsolete pack

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>

 dev-java/hdf-java/files/hdf-java-2.9-shared.patch | 118 --------------------
 dev-java/hdf-java/files/hdfview.xml               |  13 ---
 dev-java/hdf-java/hdf-java-2.9.ebuild             | 130 ----------------------
 dev-java/hdf-java/metadata.xml                    |  20 ----
 profiles/package.mask                             |   6 -
 5 files changed, 287 deletions(-)

diff --git a/dev-java/hdf-java/files/hdf-java-2.9-shared.patch b/dev-java/hdf-java/files/hdf-java-2.9-shared.patch
deleted file mode 100644
index c0894807b..000000000
--- a/dev-java/hdf-java/files/hdf-java-2.9-shared.patch
+++ /dev/null
@@ -1,118 +0,0 @@
---- hdf-java/configure.in.orig	2012-11-13 03:12:03.000000000 +0400
-+++ hdf-java/configure.in	2012-11-25 21:12:40.074363619 +0400
-@@ -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"
-       dnl 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"
-     dnl 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])
-@@ -637,10 +637,6 @@
-   if test \( ! -d "$JH45INST" \); then
-     JH45INST_FOUND=0
-   fi
--  if test \( ! -w "$JH45INST" \); then
--    AC_MSG_ERROR( [ $JH45INST : not writable ])
--    JH45INST_FOUND=0
--  fi
- fi
- until test $JH45INST_FOUND -eq 1; do
-   echo "Please type the directory in which to install the JH45"
-@@ -649,10 +645,6 @@
-   if test \( ! -d "$JH45INST" \); then
-     JH45INST_FOUND=0
-   fi
--  if test \( ! -w "$JH45INST" \); then
--    AC_MSG_ERROR( [ $JH45INST : not writable ])
--    JH45INST_FOUND=0
--  fi
- done
- 
- ac_cv_lib_JH45INST=$JH45INST
---- a/native/hdf5lib/Makefile.in
-+++ b/native/hdf5lib/Makefile.in
-@@ -35,7 +35,7 @@
- 
- CFLAGS = -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 h5eImp.o h5fImp.o h5gImp.o h5iImp.o h5lImp.o h5oImp.o h5pImp.o h5rImp.o h5sImp.o h5tImp.o nativeData.o h5util.o h5zImp.o
-@@ -47,7 +47,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)
---- a/native/hdflib/Makefile.in
-+++ b/native/hdflib/Makefile.in
-@@ -41,7 +41,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 \
-@@ -60,7 +60,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)

diff --git a/dev-java/hdf-java/files/hdfview.xml b/dev-java/hdf-java/files/hdfview.xml
deleted file mode 100644
index dd9ab396c..000000000
--- a/dev-java/hdf-java/files/hdfview.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
-  <mime-type type="application/x-hdf">
-    <comment xml:lang="en">HDF files</comment>
-    <glob pattern="*.hdf"/>
-    <glob pattern="*.h4"/>
-    <glob pattern="*.hdf4"/>
-  </mime-type>
-  <mime-type type="application/x-hdf5">
-    <comment xml:lang="en">HDF5 files</comment>
-    <glob pattern="*.h5"/>
-    <glob pattern="*.hdf5"/>
-  </mime-type>
-</mime-info>

diff --git a/dev-java/hdf-java/hdf-java-2.9.ebuild b/dev-java/hdf-java/hdf-java-2.9.ebuild
deleted file mode 100644
index 7a0ba9261..000000000
--- a/dev-java/hdf-java/hdf-java-2.9.ebuild
+++ /dev/null
@@ -1,130 +0,0 @@
-# Copyright 1999-2020 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=5
-
-JAVA_PKG_IUSE="doc examples"
-
-inherit autotools eutils java-pkg-2 xdg-utils
-
-DESCRIPTION="Java interface to the HDF5 library"
-HOMEPAGE="https://www.hdfgroup.org/"
-SRC_URI="https://www.hdfgroup.org/ftp/HDF5/releases/HDF-JAVA/${P}/src/${P}-src.tar"
-
-LICENSE="NCSA-HDF"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="hdf hdfview szip test zlib"
-
-CDEPEND="
-	>=sci-libs/hdf5-1.8[szip=,zlib=]
-	hdf? ( sci-libs/hdf virtual/jpeg:0 )
-	hdfview? ( dev-java/fits dev-java/netcdf )"
-
-RDEPEND="${CDEPEND}
-	>=virtual/jre-1.5"
-
-DEPEND="${CDEPEND}
-	>=virtual/jdk-1.5
-	test? ( >=dev-java/junit-4 )"
-
-REQUIRED_USE="hdfview? ( hdf )"
-
-# buggy test with incompatible hdf5 library versions
-RESTRICT="test"
-
-S="${WORKDIR}/${PN}"
-
-src_prepare() {
-	epatch "${FILESDIR}"/${P}-shared.patch
-	eautoreconf
-	rm lib/*.jar
-	if use hdfview; then
-		java-pkg_jar-from --into lib fits fits.jar
-		java-pkg_jar-from --into lib netcdf netcdf.jar
-	fi
-	use test && java-pkg_jar-from --into lib junit-4 junit.jar
-}
-
-src_configure() {
-	local stdpath="${EPREFIX}/usr/include,${EPREFIX}/usr/$(get_libdir)"
-	local myconf="--with-hdf4=no --with-libjpeg=no"
-	use hdf && \
-		myconf="--with-libjpeg=${stdpath} --with-hdf4=${stdpath}"
-	use zlib &&	myconf="${myconf} --with-libz=${stdpath}"
-	use szip && myconf="${myconf} --with-libsz=${stdpath}"
-
-	econf \
-		${myconf} \
-		--with-hdf5="${stdpath}" \
-		--with-jdk="$(java-config -o)/include,$(java-config -o)/jre/lib"
-}
-
-src_compile() {
-	# gentoo bug #302621
-	has_version sci-libs/hdf5[mpi] && export CXX=mpicxx CC=mpicc
-
-	# parallel needs work. anyone?
-	emake -j1 ncsa just-hdf5
-
-	if use hdf; then
-		sed -i \
-			-e "s/MAX_VAR_DIMS/H4_MAX_VAR_DIMS/" \
-			native/hdflib/hdfstructsutil.c || die
-		sed -i \
-			-e "s/MAX_NC_NAME/H4_MAX_NC_NAME/" \
-			native/hdflib/hdf{vdata,sds}Imp.c || die
-		emake -j1 just-hdf4
-	fi
-
-	use hdfview && emake -j1 packages
-	use examples && emake -j1 do-examples
-	use doc && emake -j1 javadocs
-}
-
-src_test() {
-	emake -j1 check
-}
-
-src_install() {
-	java-pkg_dojar lib/jhdf5.jar
-	java-pkg_doso lib/linux/libjhdf5.so
-
-	if use hdf; then
-		java-pkg_dojar lib/jhdf.jar
-		java-pkg_doso lib/linux/libjhdf.so
-	fi
-
-	if use hdfview; then
-		java-pkg_dojar lib/jhdf5obj.jar
-		java-pkg_dojar lib/jhdfobj.jar
-		java-pkg_dojar lib/ext/nc2obj.jar
-		java-pkg_dojar lib/ext/fitsobj.jar
-		java-pkg_dojar lib/jhdfview.jar
-		cat <<-EOF > hdfview
-			#!/bin/sh
-			export CLASSPATH=\$(java-config --classpath hdf-java)
-			\$(java-config --java) \
-				-Xmx1000m \
-				-Djava.library.path=\$(java-config --library hdf-java) \
-				ncsa.hdf.view.HDFView \
-				-root "${EROOT}" \$*
-		EOF
-		dobin hdfview
-		insinto /usr/share/mime/packages
-		doins "${FILESDIR}"/hdfview.xml
-		newicon ncsa/hdf/view/icons/hdf_large.gif hdfview.gif
-		make_desktop_entry hdfview "HDF Viewer" hdfview
-	fi
-
-	use doc && java-pkg_dojavadoc docs/javadocs
-	use examples && java-pkg_doexamples examples
-}
-
-pkg_postinst() {
-	use hdfview && xdg_desktop_database_update
-}
-
-pkg_postrm() {
-	use hdfview && xdg_desktop_database_update
-}

diff --git a/dev-java/hdf-java/metadata.xml b/dev-java/hdf-java/metadata.xml
deleted file mode 100644
index 2a2dedfa2..000000000
--- a/dev-java/hdf-java/metadata.xml
+++ /dev/null
@@ -1,20 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
-<pkgmetadata>
-	<maintainer type="project">
-		<email>sci@gentoo.org</email>
-		<name>Gentoo Science Project</name>
-	</maintainer>
-	<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. 
-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>
-		<flag name="hdfview">Build a GUI viewer for all files supported in <pkg>dev-java/hdf-java</pkg></flag>
-	</use>
-</pkgmetadata>

diff --git a/profiles/package.mask b/profiles/package.mask
index 8033926ff..d39812beb 100644
--- a/profiles/package.mask
+++ b/profiles/package.mask
@@ -29,9 +29,3 @@
 ## app-misc/some-package
 
 #--- END OF EXAMPLES ---
-
-# Benda Xu <heroxbd@gentoo.org> (2020-12-27)
-# hdf-java is failing.  Upstream has splitted the software into
-# HDFView and HDF Java.  Mask for removal.
-# https://bugs.gentoo.org/761055
-dev-java/hdf-java


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-19 15:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-19 15:26 [gentoo-commits] proj/sci:master commit in: dev-java/hdf-java/files/, profiles/, dev-java/hdf-java/ Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox