summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlistair Bush <ali_bush@gentoo.org>2010-06-04 12:06:13 +0000
committerAlistair Bush <ali_bush@gentoo.org>2010-06-04 12:06:13 +0000
commit645f653a83042790c475674f0c45d6f0b771c808 (patch)
tree44f7713ca455433e21ffeb0dcde57a008f2a3f44 /dev-java/jnr-netdb
parentold (diff)
downloadgentoo-2-645f653a83042790c475674f0c45d6f0b771c808.tar.gz
gentoo-2-645f653a83042790c475674f0c45d6f0b771c808.tar.bz2
gentoo-2-645f653a83042790c475674f0c45d6f0b771c808.zip
New Package.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-java/jnr-netdb')
-rw-r--r--dev-java/jnr-netdb/ChangeLog10
-rw-r--r--dev-java/jnr-netdb/jnr-netdb-1.0.ebuild62
-rw-r--r--dev-java/jnr-netdb/metadata.xml15
3 files changed, 87 insertions, 0 deletions
diff --git a/dev-java/jnr-netdb/ChangeLog b/dev-java/jnr-netdb/ChangeLog
new file mode 100644
index 000000000000..7f621c827b4a
--- /dev/null
+++ b/dev-java/jnr-netdb/ChangeLog
@@ -0,0 +1,10 @@
+# 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.1 2010/06/04 12:06:13 ali_bush Exp $
+
+*jnr-netdb-1.0 (05 Jun 2010)
+
+ 05 Jun 2010; Alistair Bush <ali_bush@gentoo.org> +jnr-netdb-1.0.ebuild,
+ +metadata.xml:
+ New Package.
+
diff --git a/dev-java/jnr-netdb/jnr-netdb-1.0.ebuild b/dev-java/jnr-netdb/jnr-netdb-1.0.ebuild
new file mode 100644
index 000000000000..dcee533909cc
--- /dev/null
+++ b/dev-java/jnr-netdb/jnr-netdb-1.0.ebuild
@@ -0,0 +1,62 @@
+# 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.ebuild,v 1.1 2010/06/04 12:06:13 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/1.0 -> ${P}.tar.gz"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE=""
+
+COMMON_DEP="dev-java/jaffl:0"
+
+RDEPEND=">=virtual/jre-1.5
+ ${COMMON_DEP}"
+DEPEND=">=virtual/jdk-1.5
+ ${COMMON_DEP}
+ test? ( dev-java/ant-junit4 )"
+
+src_unpack() {
+ unpack ${A}
+ mv w* "${P}" || die
+}
+
+src_prepare() {
+ mkdir -p lib
+ find . -iname 'junit*.jar' -delete
+ 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
+
+ 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/*
+}
diff --git a/dev-java/jnr-netdb/metadata.xml b/dev-java/jnr-netdb/metadata.xml
new file mode 100644
index 000000000000..555a88070ed4
--- /dev/null
+++ b/dev-java/jnr-netdb/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <longdescription lang="en">
+ jnr-netdb is a java interface to getservbyname(3), getservbyport(3).
+
+ It tries to use the native functions if possible, falling back to
+ parsing
+ /etc/services directly, and finally to an inbuilt table for use in
+ environments
+ where neither native code, nor filesystem access is possible.
+ </longdescription>
+</pkgmetadata>
+