summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-06-27 07:44:32 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-06-27 07:44:32 +0000
commit5b777e54cfc605ced86af3a61954c5aa176e5cfc (patch)
tree47ccca02ec129550eba1c314f391508721bc15fe /dev-java
parentVersion bump. Convert to ruby-ng. Fix build system to work with other ruby ve... (diff)
downloadgentoo-2-5b777e54cfc605ced86af3a61954c5aa176e5cfc.tar.gz
gentoo-2-5b777e54cfc605ced86af3a61954c5aa176e5cfc.tar.bz2
gentoo-2-5b777e54cfc605ced86af3a61954c5aa176e5cfc.zip
Version bump and fix #325079.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-java')
-rw-r--r--dev-java/jnr-netdb/ChangeLog7
-rw-r--r--dev-java/jnr-netdb/jnr-netdb-1.0.1.ebuild68
2 files changed, 74 insertions, 1 deletions
diff --git a/dev-java/jnr-netdb/ChangeLog b/dev-java/jnr-netdb/ChangeLog
index ebf082ad2f49..e71f1d2d5120 100644
--- a/dev-java/jnr-netdb/ChangeLog
+++ b/dev-java/jnr-netdb/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for dev-java/jnr-netdb
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-netdb/ChangeLog,v 1.5 2010/06/25 13:05:13 betelgeuse Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-netdb/ChangeLog,v 1.6 2010/06/27 07:44:31 ali_bush Exp $
+
+*jnr-netdb-1.0.1 (27 Jun 2010)
+
+ 27 Jun 2010; Alistair Bush <ali_bush@gentoo.org> +jnr-netdb-1.0.1.ebuild:
+ Version Bump and fix #325079.
25 Jun 2010; Petteri Räty <betelgeuse@gentoo.org> jnr-netdb-1.0.ebuild:
Raise jaffl minimum to 0.5.1. See bug #322739.
diff --git a/dev-java/jnr-netdb/jnr-netdb-1.0.1.ebuild b/dev-java/jnr-netdb/jnr-netdb-1.0.1.ebuild
new file mode 100644
index 000000000000..9934193ca821
--- /dev/null
+++ b/dev-java/jnr-netdb/jnr-netdb-1.0.1.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-netdb/jnr-netdb-1.0.1.ebuild,v 1.1 2010/06/27 07:44:32 ali_bush Exp $
+
+EAPI=3
+
+JAVA_PKG_IUSE="doc source"
+WANT_ANT_TASKS="ant-nodeps"
+
+inherit java-pkg-2 java-ant-2
+
+DESCRIPTION="Network services database access for java."
+HOMEPAGE="http://github.com/wmeissner/jnr-netdb"
+SRC_URI="http://github.com/wmeissner/jnr-netdb/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+COMMON_DEP=">=dev-java/jaffl-0.5.1:0"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.5
+ ${COMMON_DEP}
+ test?
+ (
+ dev-java/ant-junit4:0
+ dev-java/hamcrest-core:0
+ java-virtuals/jdk-with-com-sun:0
+ )"
+
+src_unpack() {
+ unpack ${A}
+ mv w* "${P}" || die
+}
+
+src_prepare() {
+ mkdir -p lib
+ find . -iname 'junit*.jar' -delete
+ sed -i -e "s|run.test.classpath=|run.test.classpath=lib/hamcrest-core.jar:|g" nbproject/project.properties
+ java-pkg_jar-from --into lib jaffl jaffl.jar
+}
+
+EANT_EXTRA_ARGS="-Dreference.jaffl.jar=lib/jaffl.jar \
+ -Dproject.jaffl=\"${S}\" \
+ -D\"already.built.${S}\"=true"
+
+src_test() {
+ java-pkg_jar-from --build-only --into lib/junit_4 junit-4 \
+ junit.jar junit-4.5.jar
+ java-pkg_jar-from --build-only --into lib hamcrest-core \
+ hamcrest-core.jar
+ sed -i -e \
+ "s_\${file.reference.jffi-complete.jar}_$(java-pkg_getjars --build-only --with-dependencies jaffl)_" \
+ nbproject/project.properties
+
+ ANT_TASKS="ant-junit4 ant-nodeps" eant test \
+ ${EANT_EXTRA_ARGS} \
+ -Djava.library.path="$(java-config -di jaffl)"
+}
+
+src_install() {
+ java-pkg_dojar "dist/${PN}.jar"
+ use doc && java-pkg_dojavadoc dist/javadoc
+ use source && java-pkg_dosrc src/*
+}