Add dev-java/netcdf package.
authorW. Trevor King <wking@drexel.edu>
Mon, 10 Oct 2011 01:27:26 +0000 (21:27 -0400)
committerW. Trevor King <wking@tremily.us>
Wed, 24 Sep 2014 18:46:40 +0000 (11:46 -0700)
dev-java/netcdf/ChangeLog [new file with mode: 0644]
dev-java/netcdf/Manifest [new file with mode: 0644]
dev-java/netcdf/files/4.3-build-xml.patch [new file with mode: 0644]
dev-java/netcdf/files/9999-build-xml.patch [new file with mode: 0644]
dev-java/netcdf/metadata.xml [new file with mode: 0644]
dev-java/netcdf/netcdf-4.3.ebuild [new symlink]
dev-java/netcdf/netcdf-9999.ebuild [new file with mode: 0644]

diff --git a/dev-java/netcdf/ChangeLog b/dev-java/netcdf/ChangeLog
new file mode 100644 (file)
index 0000000..a60512c
--- /dev/null
@@ -0,0 +1,11 @@
+# ChangeLog for dev-java/netcdf
+# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
+# $Header: $
+
+*netcdf-9999 (07 Oct 2011)
+
+  07 Oct 2011; W. Trevor King <wking@drexel.edu> +netcdf-4.3.ebuild,
+  +netcdf-9999.ebuild, +files/9999-build-xml.patch, +files/4.3-build.xml.patch,
+  +metadata.xml:
+  Initial import. Ebuild initially submitted by Guillaume Horel, bug #301049
+
diff --git a/dev-java/netcdf/Manifest b/dev-java/netcdf/Manifest
new file mode 100644 (file)
index 0000000..1bfe6fd
--- /dev/null
@@ -0,0 +1,7 @@
+AUX 4.3-build-xml.patch 4152 RMD160 498d36e77806fe26707937b9e7f95aa689539598 SHA1 5d1fa49abbae77cedcc529fb7f58ca99bf3d7435 SHA256 bede88d2305219b77d90f0587df7299487070897c58709f936fbb47f4dbef3c6
+AUX 9999-build-xml.patch 4271 RMD160 5eb806cd61cc8a18215147a91b603b7230b08357 SHA1 c79a69911cf4ca5124754a8461ba4cc5f9b30a2d SHA256 d98ea8ec1c782971f49e3eaf42c0550ea7484f24ae1e90bfb699c3bbee905ec5
+DIST ncSrc-4.3.zip 71799168 RMD160 b4e50a1a5d126baf74f53dbb77d645323973b239 SHA1 3c31fccd0d8a8868e2399f8273de1e5f7ab22e03 SHA256 8ec39cbb1c1521645d68b5ecf33d7b2a8e5d43cd958a7575e9f613f1c5beae8f
+EBUILD netcdf-4.3.ebuild 2793 RMD160 eb2f41b7ac75843cfadfd42bfb2c98abfe643dff SHA1 23a09b7edeb7514b5f278a0bde5a1287285f61aa SHA256 5a4f9accbcebc727ff2501e0e6b4d455f8fff6aac95fd051697455a9f1592c0f
+EBUILD netcdf-9999.ebuild 2793 RMD160 eb2f41b7ac75843cfadfd42bfb2c98abfe643dff SHA1 23a09b7edeb7514b5f278a0bde5a1287285f61aa SHA256 5a4f9accbcebc727ff2501e0e6b4d455f8fff6aac95fd051697455a9f1592c0f
+MISC ChangeLog 388 RMD160 5ad154887f827a8a0d2dbc1024025e799cb0c137 SHA1 d39983a5fb98ae930515a39efdfc49b31f41b9e2 SHA256 2bb7f92709b41425891dd348fdeedbcc62f76ed8dc383e278a01284e54e736b6
+MISC metadata.xml 247 RMD160 6735f3a5dd2d7a2b70589d1693f35d54291b7147 SHA1 c015969fe50967340dd050a44cb9f8a30b5e34a5 SHA256 9e65060e5f9d0a50d28c7a69d9c27fed6c3037fdd3e420cc276627fde2794f72
diff --git a/dev-java/netcdf/files/4.3-build-xml.patch b/dev-java/netcdf/files/4.3-build-xml.patch
new file mode 100644 (file)
index 0000000..8b5b6ec
--- /dev/null
@@ -0,0 +1,81 @@
+diff --git a/cdm/build.xml b/cdm/build.xml
+index f50befa..061a9d6 100644
+--- a/cdm/build.xml
++++ b/cdm/build.xml
+@@ -29,7 +29,6 @@
+   <property name="src.dir" location="${root.dir}/src/main/java"/>
+   <property name="timingSrc.dir" location="${root.dir}/src/timing/java"/>
+   <property name="commonSrc.dir" location="${root.dir}/../common/src/main/java"/>
+-  <property name="timeSrc.dir" location="${root.dir}/../time/src/main/java"/>
+   <property name="resources.dir" location="${root.dir}/src/main/resources"/>
+   <property name="doc.dir" location="${root.dir}/doc"/>
+   <property name="lib.dir" location="${root.dir}/../lib"/>
+@@ -50,26 +49,27 @@
+   <property name="bdb.jar" value="je-4.0.71.jar"/>
+   <property name="bounce.jar" value="bounce-0.14.jar"/>
+   <property name="bufr.jar" value="bufr-4.3.jar"/>
+-  <property name="ehcache.jar" value="ehcache-1.6.0.jar"/>
+-  <property name="grib.jar" value="grib-4.3.jar"/>
+-  <property name="httpclient3.jar" value="commons-httpclient-3.1.jar"/>
+-  <property name="commons-logging.jar" value="jcl-over-slf4j-1.6.1.jar"/>
+-  <property name="http-codec.jar" value="commons-codec-1.3.jar"/>
+-  <property name="joda.jar" value="joda-time-2.0.jar"/>
++  <property name="ehcache.jar" value="ehcache.jar"/>
++  <property name="grib.jar" value="grib.jar"/>
++  <property name="httpclient3.jar" value="commons-httpclient.jar"/>
++  <property name="commons-logging.jar" value="commons-logging.jar.jar"/>
++  <property name="http-codec.jar" value="commons-codec.jar"/>
++  <property name="joda-time.jar" value="joda-time.jar"/>
++  <property name="joda-convert.jar" value="joda-convert.jar"/>
+   <property name="jdom.jar" value="jdom.jar"/>
+-  <property name="jfreechart.jar" value="jfreechart-1.0.12.jar"/>
+-  <property name="jcommon.jar" value="jcommon-1.0.15.jar"/>
++  <property name="jfreechart.jar" value="jfreechart.jar"/>
++  <property name="jcommon.jar" value="jcommon.jar"/>
+   <property name="guiBuilder.jar" value="forms_rt.jar"/>
+-  <property name="jgoodies.jar" value="forms-1.0.7.jar"/>
+-  <property name="junit.jar" value="junit-4.5.jar"/>
++  <property name="jgoodies.jar" value="jgoodies-forms.jar"/>
++  <property name="junit.jar" value="junit.jar"/>
+   <property name="easymock.jar" value="easymock-2.5.2.jar"/>
+-  <property name="loggingAPI.jar" value="slf4j-api-1.6.1.jar"/>
++  <property name="loggingAPI.jar" value="slf4j-api.jar"/>
+   <property name="logging-minimal.jar" value="slf4j-jdk14-1.6.1.jar"/>
+   <property name="logging-maximal.jar" value="slf4j-log4j12-1.6.1.jar"/>
+-  <property name="log4j.jar" value="log4j-1.2.16.jar"/>
++  <property name="log4j.jar" value="log4j.jar"/>
+   <!-- property name="lucene.jar" value="lucene.jar"/ -->
+   <property name="opendap.jar" value="opendap-2.2.jar"/>
+-  <property name="protobuf.jar" value="protobuf-java-2.4.0a.jar"/>
++  <property name="protobuf.jar" value="protobuf.jar"/>
+   <property name="quartz.jar" value="quartz-1.7.3.jar"/>
+   <property name="resourcesOptional.jar" value="resourcesOptional.jar"/>
+   <property name="spring-aop.jar" value="org.springframework.aop-3.0.5.RELEASE.jar"/>
+@@ -85,7 +85,6 @@
+   <path id="sourcepath">
+     <pathelement location="${src.dir}"/>
+     <pathelement location="${commonSrc.dir}"/>
+-    <pathelement location="${timeSrc.dir}"/>
+   </path>
+   <!-- Libraries -->
+@@ -94,8 +93,10 @@
+     <include name="external/${ehcache.jar}"/>
+     <include name="release/${opendap.jar}"/>
+     <include name="external/${httpclient3.jar}"/>
++    <include name="external/${commons-logging.jar.jar}"/>
+     <include name="external/${jdom.jar}"/>
+-    <include name="external/${joda.jar}"/>
++    <include name="external/${joda-time.jar}"/>
++    <include name="external/${joda-convert.jar}"/>
+     <include name="external/${loggingAPI.jar}"/>
+     <include name="external/${protobuf.jar}"/>
+     <include name="external/${quartz.jar}"/>
+@@ -597,7 +598,6 @@
+   <path id="sourcepathUI">
+     <pathelement location="${src.dir}"/>
+     <pathelement location="${srcUI.dir}"/>
+-    <pathelement location="${timeSrc.dir}"/>
+   </path>
+   <target name="compileUI" depends="init, release-settings" description="toolsUI compile">
diff --git a/dev-java/netcdf/files/9999-build-xml.patch b/dev-java/netcdf/files/9999-build-xml.patch
new file mode 100644 (file)
index 0000000..100af20
--- /dev/null
@@ -0,0 +1,84 @@
+diff --git a/cdm/build.xml b/cdm/build.xml
+index c253180..5751f4a 100644
+--- a/cdm/build.xml
++++ b/cdm/build.xml
+@@ -49,26 +49,27 @@
+   <property name="bdb.jar" value="je-4.0.71.jar"/>\r
+   <property name="bounce.jar" value="bounce-0.14.jar"/>\r
+   <property name="bufr.jar" value="bufr-4.3.jar"/>\r
+-  <property name="ehcache.jar" value="ehcache-1.6.0.jar"/>\r
++  <property name="ehcache.jar" value="ehcache.jar"/>\r
+   <property name="grib.jar" value="grib-4.3.jar"/>\r
+-  <property name="httpclient3.jar" value="commons-httpclient-3.1.jar"/>\r
+-  <property name="commons-logging.jar" value="jcl-over-slf4j-1.6.1.jar"/>\r
+-  <property name="http-codec.jar" value="commons-codec-1.3.jar"/>\r
+-  <property name="joda.jar" value="joda-time-2.0.jar"/>\r
++  <property name="httpclient3.jar" value="commons-httpclient.jar"/>\r
++  <property name="commons-logging.jar" value="commons-logging.jar"/>\r
++  <property name="http-codec.jar" value="commons-codec.jar"/>\r
++  <property name="joda-time.jar" value="joda-time.jar"/>\r
++  <property name="joda-convert.jar" value="joda-convert.jar"/>\r
+   <property name="jdom.jar" value="jdom.jar"/>\r
+-  <property name="jfreechart.jar" value="jfreechart-1.0.12.jar"/>\r
+-  <property name="jcommon.jar" value="jcommon-1.0.15.jar"/>\r
++  <property name="jfreechart.jar" value="jfreechart.jar"/>\r
++  <property name="jcommon.jar" value="jcommon.jar"/>\r
+   <property name="guiBuilder.jar" value="forms_rt.jar"/>\r
+-  <property name="jgoodies.jar" value="forms-1.0.7.jar"/>\r
+-  <property name="junit.jar" value="junit-4.5.jar"/>\r
++  <property name="jgoodies.jar" value="jgoodies-forms.jar"/>\r
++  <property name="junit.jar" value="junit.jar"/>\r
+   <property name="easymock.jar" value="easymock-2.5.2.jar"/>\r
+-  <property name="loggingAPI.jar" value="slf4j-api-1.6.1.jar"/>\r
++  <property name="loggingAPI.jar" value="slf4j-api.jar"/>\r
+   <property name="logging-minimal.jar" value="slf4j-jdk14-1.6.1.jar"/>\r
+   <property name="logging-maximal.jar" value="slf4j-log4j12-1.6.1.jar"/>\r
+-  <property name="log4j.jar" value="log4j-1.2.16.jar"/>\r
++  <property name="log4j.jar" value="log4j.jar"/>\r
+   <!-- property name="lucene.jar" value="lucene.jar"/ -->\r
+   <property name="opendap.jar" value="opendap-4.3.jar"/>\r
+-  <property name="protobuf.jar" value="protobuf-java-2.4.0a.jar"/>\r
++  <property name="protobuf.jar" value="protobuf.jar"/>\r
+   <property name="quartz.jar" value="quartz-1.7.3.jar"/>\r
+   <property name="resourcesOptional.jar" value="resourcesOptional.jar"/>\r
+   <property name="spring-aop.jar" value="org.springframework.aop-3.0.5.RELEASE.jar"/>\r
+@@ -91,8 +92,10 @@
+     <include name="external/${bdb.jar}"/>\r
+     <include name="external/${ehcache.jar}"/>\r
+     <include name="external/${httpclient3.jar}"/>\r
++    <include name="external/${commons-logging.jar}"/>\r
+     <include name="external/${jdom.jar}"/>\r
+-    <include name="external/${joda.jar}"/>\r
++    <include name="external/${joda-time.jar}"/>\r
++    <include name="external/${joda-convert.jar}"/>\r
+     <include name="external/${loggingAPI.jar}"/>\r
+     <include name="external/${protobuf.jar}"/>\r
+     <include name="external/${quartz.jar}"/>\r
+diff --git a/grib/build.xml b/grib/build.xml
+index e5c0803..002ac46 100644
+--- a/grib/build.xml
++++ b/grib/build.xml
+@@ -30,9 +30,10 @@
+   <property name="cdm.jar" value="netcdf-4.3.jar"/>
+   <property name="jdom.jar" value="jdom.jar"/>
+-  <property name="joda.jar" value="joda-time-2.0.jar"/>
+-  <property name="loggingAPI.jar" value="slf4j-api-1.6.1.jar"/>
+-  <property name="protobuf.jar" value="protobuf-java-2.4.0a.jar"/>
++  <property name="joda-time.jar" value="joda-time.jar"/>
++  <property name="joda-convert.jar" value="joda-convert.jar"/>
++  <property name="loggingAPI.jar" value="slf4j-api.jar"/>
++  <property name="protobuf.jar" value="protobuf.jar"/>
+   <!-- source -->
+   <path id="sourcepath">
+@@ -44,7 +45,8 @@
+     <fileset id="compile.libraries" dir="${lib.dir}">
+       <include name="release/${cdm.jar}"/>
+       <include name="external/${jdom.jar}"/>
+-      <include name="external/${joda.jar}"/>
++      <include name="external/${joda-time.jar}"/>
++      <include name="external/${joda-convert.jar}"/>
+       <include name="external/${loggingAPI.jar}"/>
+       <include name="external/${protobuf.jar}"/>
+     </fileset>
diff --git a/dev-java/netcdf/metadata.xml b/dev-java/netcdf/metadata.xml
new file mode 100644 (file)
index 0000000..d124928
--- /dev/null
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <herd></herd>
+       <maintainer>
+               <email>wking@drexel.edu</email>
+               <name>W. Trevor King</name>
+       </maintainer>
+</pkgmetadata>
diff --git a/dev-java/netcdf/netcdf-4.3.ebuild b/dev-java/netcdf/netcdf-4.3.ebuild
new file mode 120000 (symlink)
index 0000000..f0c35e4
--- /dev/null
@@ -0,0 +1 @@
+netcdf-9999.ebuild
\ No newline at end of file
diff --git a/dev-java/netcdf/netcdf-9999.ebuild b/dev-java/netcdf/netcdf-9999.ebuild
new file mode 100644 (file)
index 0000000..03f2acf
--- /dev/null
@@ -0,0 +1,103 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+JAVA_PKG_IUSE="doc examples source test"
+inherit eutils java-pkg-2 java-ant-2
+
+if [[ "${PV}" == "9999" ]]; then
+       inherit git-2
+       EGIT_REPO_URI="git://github.com/Unidata/thredds.git"
+       SRC_URI=""
+else
+       SRC_URI="ftp://ftp.unidata.ucar.edu/pub/${PN}-java/v${PV}/ncSrc-${PV}.zip"
+fi
+
+DESCRIPTION="Java Common Data Model (CDM) interface to to netCDF files"
+HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf-java/"
+LICENSE="netCDF"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+COMMON_DEP="dev-java/commons-codec
+       dev-java/commons-httpclient
+       dev-java/commons-logging
+       dev-java/ehcache
+       dev-java/jcommon
+       dev-java/jdom
+       dev-java/jfreechart
+       dev-java/jgoodies-forms
+       >=dev-java/joda-time-2.0
+       dev-java/log4j
+       dev-java/slf4j-api
+       dev-libs/protobuf[java]"
+
+RDEPEND=">=virtual/jre-1.5
+       ${COMMON_DEP}"
+
+DEPEND=">=virtual/jdk-1.5
+       test? (
+               dev-java/ant-junit4
+               dev-java/hamcrest-core
+       )
+       ${COMMON_DEP}"
+# There is a from-source maven package in java-overlay, but it hasn't
+# been merged into the Portage trunk yet.
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+       if [[ "${PV}" == "9999" ]]; then
+               git-2_src_unpack
+       else
+               # The zipped source doesn't fall in a single directory
+               mkdir "${S}"
+               cd "${S}"
+               unpack "${A}"
+       fi
+}
+
+src_prepare() {
+       cd "${S}"
+       #rm -v lib/*/*.jar || die
+
+       epatch "${FILESDIR}/${PV}-build-xml.patch"
+
+       java-pkg_jar-from --into lib/external commons-codec commons-codec.jar
+       java-pkg_jar-from --into lib/external commons-httpclient-3  commons-httpclient.jar
+       java-pkg_jar-from --into lib/external commons-logging commons-logging.jar
+       java-pkg_jar-from --into lib/external ehcache-1.2 ehcache.jar
+       java-pkg_jar-from --into lib/external jcommon-1.0 jcommon.jar
+       rm -f lib/external/jdom.jar || die
+       java-pkg_jar-from --into lib/external jdom-1.0 jdom.jar
+       java-pkg_jar-from --into lib/external jfreechart-1.0 jfreechart.jar
+       java-pkg_jar-from --into lib/external jgoodies-forms forms.jar jgoodies-forms.jar
+       java-pkg_jar-from --into lib/external joda-time joda-time.jar
+       java-pkg_jar-from --into lib/external junit-4 junit.jar
+       java-pkg_jar-from --into lib/external log4j log4j.jar
+       java-pkg_jar-from --into lib/external protobuf protobuf.jar
+       java-pkg_jar-from --into lib/external slf4j-api slf4j-api.jar
+}
+
+src_compile() {
+       if [[ "${PV}" == "9999" ]]; then        
+               cd "${S}/grib"
+               eant
+       fi
+       cd "${S}/cdm"
+       eant
+       use doc && eant javadoc
+}
+
+src_install() {
+       if [[ "${PV}" == "9999" ]]; then
+               java-pkg_newjar "cdm/target/${PN}"-*.jar "${PN}.jar"
+       else
+               java-pkg_newjar "cdm/target/${P}.jar" "${PN}.jar"
+       fi
+       use doc && java-pkg_dojavadoc cdm/target/javadoc
+       use source && java-pkg_dosrc cdm/src/main/java/*
+       use examples && java-pkg_doexamples cdm/src/test/java/examples
+}