aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorS├ębastien Fabbro <sebfabbro@gmail.com>2012-05-14 21:26:50 +0100
committerS├ębastien Fabbro <sebfabbro@gmail.com>2012-05-14 21:26:50 +0100
commitcae6377389f31cb8e9a84ed79a80afdc48b85f46 (patch)
tree9066eda143a913f9b0dbb5dea0d799c83835acc1 /dev-java/netcdf/netcdf-4.2.ebuild
parentdev-java/fits: quotes (diff)
downloadsci-cae6377389f31cb8e9a84ed79a80afdc48b85f46.tar.gz
sci-cae6377389f31cb8e9a84ed79a80afdc48b85f46.tar.bz2
sci-cae6377389f31cb8e9a84ed79a80afdc48b85f46.zip
dev-java/netcdf: import to the science overlay and bump
(Portage version: 2.1.10.56/git/Linux x86_64, unsigned Manifest commit)
Diffstat (limited to 'dev-java/netcdf/netcdf-4.2.ebuild')
-rw-r--r--dev-java/netcdf/netcdf-4.2.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-java/netcdf/netcdf-4.2.ebuild b/dev-java/netcdf/netcdf-4.2.ebuild
new file mode 100644
index 000000000..a08a9fd12
--- /dev/null
+++ b/dev-java/netcdf/netcdf-4.2.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2012 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
+
+DESCRIPTION="Java Common Data Model (CDM) interface to to netCDF files"
+HOMEPAGE="http://www.unidata.ucar.edu/software/netcdf-java/"
+SRC_URI="ftp://ftp.unidata.ucar.edu/pub/${PN}-java/v${PV}/ncSrc-${PV}.zip"
+
+LICENSE="LGPL-2 MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+CDEPEND="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
+ dev-java/log4j
+ dev-java/slf4j-api
+ dev-libs/protobuf[java]"
+
+RDEPEND="${CDEPEND}
+ >=virtual/jre-1.5"
+
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5
+ test? (
+ dev-java/ant-junit4
+ dev-java/hamcrest-core )"
+
+# There is a from-source maven package in java-overlay, but it hasn't
+# been merged into the Portage trunk yet.
+
+S="${WORKDIR}"
+
+src_prepare() {
+ 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() {
+ cd "${S}"/cdm && eant
+ use doc && eant javadoc
+}
+
+src_install() {
+ java-pkg_newjar cdm/target/${P}.jar ${PN}.jar
+ 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
+}