From fe2616e4da54dbeb9be6bd71bc1831d06a682eef Mon Sep 17 00:00:00 2001 From: "W. Trevor King" Date: Sun, 9 Oct 2011 21:27:26 -0400 Subject: [PATCH] Add dev-java/netcdf package. --- dev-java/netcdf/ChangeLog | 11 +++ dev-java/netcdf/Manifest | 7 ++ dev-java/netcdf/files/4.3-build-xml.patch | 81 ++++++++++++++++ dev-java/netcdf/files/9999-build-xml.patch | 84 +++++++++++++++++ dev-java/netcdf/metadata.xml | 9 ++ dev-java/netcdf/netcdf-4.3.ebuild | 1 + dev-java/netcdf/netcdf-9999.ebuild | 103 +++++++++++++++++++++ 7 files changed, 296 insertions(+) create mode 100644 dev-java/netcdf/ChangeLog create mode 100644 dev-java/netcdf/Manifest create mode 100644 dev-java/netcdf/files/4.3-build-xml.patch create mode 100644 dev-java/netcdf/files/9999-build-xml.patch create mode 100644 dev-java/netcdf/metadata.xml create mode 120000 dev-java/netcdf/netcdf-4.3.ebuild create mode 100644 dev-java/netcdf/netcdf-9999.ebuild diff --git a/dev-java/netcdf/ChangeLog b/dev-java/netcdf/ChangeLog new file mode 100644 index 0000000..a60512c --- /dev/null +++ b/dev-java/netcdf/ChangeLog @@ -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 +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 index 0000000..1bfe6fd --- /dev/null +++ b/dev-java/netcdf/Manifest @@ -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 index 0000000..8b5b6ec --- /dev/null +++ b/dev-java/netcdf/files/4.3-build-xml.patch @@ -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 @@ + + + +- + + + +@@ -50,26 +49,27 @@ + + + +- +- +- +- +- +- ++ ++ ++ ++ ++ ++ ++ + +- +- ++ ++ + +- +- ++ ++ + +- ++ + + +- ++ + + +- ++ + + + +@@ -85,7 +85,6 @@ + + + +- + + + +@@ -94,8 +93,10 @@ + + + ++ + +- ++ ++ + + + +@@ -597,7 +598,6 @@ + + + +- + + + diff --git a/dev-java/netcdf/files/9999-build-xml.patch b/dev-java/netcdf/files/9999-build-xml.patch new file mode 100644 index 0000000..100af20 --- /dev/null +++ b/dev-java/netcdf/files/9999-build-xml.patch @@ -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 @@ + + + +- ++ + +- +- +- +- ++ ++ ++ ++ ++ + +- +- ++ ++ + +- +- ++ ++ + +- ++ + + +- ++ + + +- ++ + + + +@@ -91,8 +92,10 @@ + + + ++ + +- ++ ++ + + + +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 @@ + + + +- +- +- ++ ++ ++ ++ + + + +@@ -44,7 +45,8 @@ + + + +- ++ ++ + + + diff --git a/dev-java/netcdf/metadata.xml b/dev-java/netcdf/metadata.xml new file mode 100644 index 0000000..d124928 --- /dev/null +++ b/dev-java/netcdf/metadata.xml @@ -0,0 +1,9 @@ + + + + + + wking@drexel.edu + W. Trevor King + + diff --git a/dev-java/netcdf/netcdf-4.3.ebuild b/dev-java/netcdf/netcdf-4.3.ebuild new file mode 120000 index 0000000..f0c35e4 --- /dev/null +++ b/dev-java/netcdf/netcdf-4.3.ebuild @@ -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 index 0000000..03f2acf --- /dev/null +++ b/dev-java/netcdf/netcdf-9999.ebuild @@ -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 +} -- 2.26.2