blob: b3e3e8570f9f65f060172004f53b4c4ce195fe10 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
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="netCDF"
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
}
|