summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Sennhauser <sera@gentoo.org>2012-05-28 17:55:54 +0000
committerRalph Sennhauser <sera@gentoo.org>2012-05-28 17:55:54 +0000
commitdeef38b36f09b7eba515cca4c40417e017601d47 (patch)
treebf4a3b10718f974d1897442151e4de88a25b6786 /dev-java/jnr-netdb
parentarm stable, bug #416433 (diff)
downloadhistorical-deef38b36f09b7eba515cca4c40417e017601d47.tar.gz
historical-deef38b36f09b7eba515cca4c40417e017601d47.tar.bz2
historical-deef38b36f09b7eba515cca4c40417e017601d47.zip
Version bump. #417889
Switch to https://github.com/jnr as project home. Add mvn ant:ant build.xml New license Apache-2.0. Package-Manager: portage-2.1.10.62/cvs/Linux x86_64
Diffstat (limited to 'dev-java/jnr-netdb')
-rw-r--r--dev-java/jnr-netdb/ChangeLog13
-rw-r--r--dev-java/jnr-netdb/Manifest19
-rw-r--r--dev-java/jnr-netdb/files/jnr-netdb_maven-build.xml231
-rw-r--r--dev-java/jnr-netdb/jnr-netdb-1.0.6.ebuild54
4 files changed, 314 insertions, 3 deletions
diff --git a/dev-java/jnr-netdb/ChangeLog b/dev-java/jnr-netdb/ChangeLog
index 7835a12310a0..a74a8ada85e6 100644
--- a/dev-java/jnr-netdb/ChangeLog
+++ b/dev-java/jnr-netdb/ChangeLog
@@ -1,6 +1,15 @@
# 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.9 2010/07/31 22:06:48 hwoarang Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/jnr-netdb/ChangeLog,v 1.10 2012/05/28 17:55:54 sera Exp $
+
+*jnr-netdb-1.0.6 (28 May 2012)
+
+ 28 May 2012; Ralph Sennhauser <sera@gentoo.org> +jnr-netdb-1.0.6.ebuild,
+ +files/jnr-netdb_maven-build.xml:
+ Version bump. #417889
+ Switch to https://github.com/jnr as project home.
+ Add mvn ant:ant build.xml
+ New license Apache-2.0.
31 Jul 2010; Markos Chandras <hwoarang@gentoo.org> jnr-netdb-1.0.1.ebuild:
Stable on amd64 wrt bug #330103
diff --git a/dev-java/jnr-netdb/Manifest b/dev-java/jnr-netdb/Manifest
index 67377b2013b3..fa1a0793c771 100644
--- a/dev-java/jnr-netdb/Manifest
+++ b/dev-java/jnr-netdb/Manifest
@@ -1,4 +1,21 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX jnr-netdb_maven-build.xml 9637 RMD160 bc63c8ce40e7670635936de1e8bba408e2b23a57 SHA1 4d9775401b50eb738e2dd71dd042cb14eeb0cd76 SHA256 fab6833838210cdd393863f9fe2d69b3bb26e9ef0d7f37a00074493a27350c94
DIST jnr-netdb-1.0.1.tar.gz 670834 RMD160 260fef6628e1ba0625fa2c0c2d32fddbb69ab1d5 SHA1 28ce799420e72468a686c028f5fc0a3c9266ef6b SHA256 654360f56c4a0131df293b6dcaa96618dfa9ded549180284dbaa20e6305d8906
+DIST jnr-netdb-1.0.6.tar.gz 648348 RMD160 e21101e0c9720d7d218e9fa460c208dfe6fa3c85 SHA1 0d63eeea1b66bd3d153575e182eb32c0000b35ba SHA256 097d621cc5ac8550e1b1bcafc034bfadd9a7a307f7133b7b7fe5ffdf38782c4f
EBUILD jnr-netdb-1.0.1.ebuild 1761 RMD160 476ed2d3687733eec81394cbf89fe6fa9cd21e0c SHA1 7bf64a09cc20d72a74f65a6af32839d4dabef57c SHA256 2606a27556cbad0745e124ac4ef98e772b3f4fc6796401ef4d8eae10fec4cb9b
-MISC ChangeLog 1314 RMD160 538b1f205960e73a86f11bcf136a15ab13e44225 SHA1 3dffadd4045968c93d728cd432b7b491b5cba2c6 SHA256 66af17f31e372e06957a601264dd958fbea087559f987552d4878731b305daae
+EBUILD jnr-netdb-1.0.6.ebuild 1257 RMD160 9020524eeea5341d097594d4796c28b82c61fdd6 SHA1 abb7fc7e8c93b3bcd275ec4969e2e7e0a10cf1a4 SHA256 b61eda73722b23b06ce1642a655b7a5269466a81277b32049b7fe62db103650e
+MISC ChangeLog 1585 RMD160 0b145ec59bbe767c03b8fa4075c704f6c6036f45 SHA1 322982c0f289a0680345759a0c55a4c890734507 SHA256 f3df4089a20125b3ae06f2b344cc1c548a0ee93f6f811b447f2ce334c75d09d6
MISC metadata.xml 506 RMD160 ab31425f671c8292317aeb4a8105cf405985e8c6 SHA1 f548919b49003c53ebb0593f17df532ff0707747 SHA256 33f9202e1ab6449bb23a12c6e571f0b08257b660b2208d1dc6fcc372c52da27d
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.17 (GNU/Linux)
+
+iQEcBAEBAgAGBQJPw7w7AAoJEIUJ+svaV16354QIAKSndB8nxYwufppOxaHCxqSv
+jPzX/Zb8j379/A6Z5TFpekcYhuOqlbJg+sI+YKy5afyXjBO5gQ2tZ156EugSkcUD
+V+bZkoCZad/jjOwlZWIweZOMWn+7I4CoArEfaahDZHaM2edXvHLOK/XUUNC8/nI/
+m/HfGTIJ8CPydZ8sgJfST3PjJJ344KSS4bmGnGdpn0vrF7mdnyUx9ozP+N6Mgg37
+bFyP59C/SzkBkIzn9i7pWfa2ptaItGdsE9C+f+Obvug22eiw+FCCwsVvH3ZxF0xx
+WMmyZYllJ/HGzReMcMjGiPPGcQ1Yvxku4W3xvfGhhSf6vExvdoFcMamyTplv9/0=
+=nCjg
+-----END PGP SIGNATURE-----
diff --git a/dev-java/jnr-netdb/files/jnr-netdb_maven-build.xml b/dev-java/jnr-netdb/files/jnr-netdb_maven-build.xml
new file mode 100644
index 000000000000..9f4dfef15335
--- /dev/null
+++ b/dev-java/jnr-netdb/files/jnr-netdb_maven-build.xml
@@ -0,0 +1,231 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!-- ====================================================================== -->
+<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
+<!-- ====================================================================== -->
+
+<!-- ====================================================================== -->
+<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
+<!-- ====================================================================== -->
+<!-- -->
+<!-- Any modifications will be overwritten. -->
+<!-- -->
+<!-- Generated by Maven Ant Plugin on 5/28/12 5:31 PM -->
+<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
+<!-- -->
+<!-- ====================================================================== -->
+
+<project name="jnr-netdb-from-maven" default="package" basedir=".">
+
+ <!-- ====================================================================== -->
+ <!-- Build environment properties -->
+ <!-- ====================================================================== -->
+
+ <property file="maven-build.properties"/>
+
+ <property name="maven.build.finalName" value="jnr-netdb"/>
+ <property name="maven.build.dir" value="target"/>
+ <property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
+ <property name="maven.build.srcDir.0" value="src/main/java"/>
+ <property name="maven.build.resourceDir.0" value="src/main/resources"/>
+ <property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
+ <property name="maven.build.testDir.0" value="src/test/java"/>
+ <property name="maven.build.testResourceDir.0" value="src/test/resources"/>
+ <property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
+ <property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
+
+ <property name="maven.settings.offline" value="false"/>
+ <property name="maven.settings.interactiveMode" value="true"/>
+
+ <!-- ====================================================================== -->
+ <!-- Defining classpaths -->
+ <!-- ====================================================================== -->
+
+ <path id="build.classpath">
+ </path>
+ <path id="build.test.classpath">
+ </path>
+
+ <!-- ====================================================================== -->
+ <!-- Cleaning up target -->
+ <!-- ====================================================================== -->
+
+ <target name="clean" description="Clean the output directory">
+ <delete dir="${maven.build.dir}"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile" depends="get-deps" description="Compile the code">
+ <mkdir dir="${maven.build.outputDir}"/>
+ <javac destdir="${maven.build.outputDir}"
+ nowarn="false"
+ debug="true"
+ optimize="false"
+ deprecation="true"
+ target="1.1"
+ verbose="false"
+ fork="false"
+ source="1.3">
+ <src>
+ <pathelement location="${maven.build.srcDir.0}"/>
+ </src>
+ <classpath refid="build.classpath"/>
+ </javac>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Test-compilation target -->
+ <!-- ====================================================================== -->
+
+ <target name="compile-tests"
+ depends="compile"
+ description="Compile the test code"
+ unless="maven.test.skip">
+ <mkdir dir="${maven.build.testOutputDir}"/>
+ <javac destdir="${maven.build.testOutputDir}"
+ nowarn="false"
+ debug="true"
+ optimize="false"
+ deprecation="true"
+ target="1.1"
+ verbose="false"
+ fork="false"
+ source="1.3">
+ <src>
+ <pathelement location="${maven.build.testDir.0}"/>
+ </src>
+ <classpath>
+ <path refid="build.test.classpath"/>
+ <pathelement location="${maven.build.outputDir}"/>
+ </classpath>
+ </javac>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Run all tests -->
+ <!-- ====================================================================== -->
+
+ <target name="test"
+ depends="compile-tests, junit-missing"
+ unless="junit.skipped"
+ description="Run the test cases">
+ <mkdir dir="${maven.test.reports}"/>
+ <junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
+ <sysproperty key="basedir" value="."/>
+ <formatter type="xml"/>
+ <formatter type="plain" usefile="false"/>
+ <classpath>
+ <path refid="build.test.classpath"/>
+ <pathelement location="${maven.build.outputDir}"/>
+ <pathelement location="${maven.build.testOutputDir}"/>
+ </classpath>
+ <batchtest todir="${maven.test.reports}" unless="test">
+ <fileset dir="${maven.build.testDir.0}">
+ <include name="**/Test*.java"/>
+ <include name="**/*Test.java"/>
+ <include name="**/*TestCase.java"/>
+ <exclude name="**/*Abstract*Test.java"/>
+ </fileset>
+ </batchtest>
+ <batchtest todir="${maven.test.reports}" if="test">
+ <fileset dir="${maven.build.testDir.0}">
+ <include name="**/${test}.java"/>
+ <exclude name="**/*Abstract*Test.java"/>
+ </fileset>
+ </batchtest>
+ </junit>
+ </target>
+
+ <target name="test-junit-present">
+ <available classname="junit.framework.Test" property="junit.present"/>
+ </target>
+
+ <target name="test-junit-status"
+ depends="test-junit-present">
+ <condition property="junit.missing">
+ <and>
+ <isfalse value="${junit.present}"/>
+ <isfalse value="${maven.test.skip}"/>
+ </and>
+ </condition>
+ <condition property="junit.skipped">
+ <or>
+ <isfalse value="${junit.present}"/>
+ <istrue value="${maven.test.skip}"/>
+ </or>
+ </condition>
+ </target>
+
+ <target name="junit-missing"
+ depends="test-junit-status"
+ if="junit.missing">
+ <echo>=================================== WARNING ===================================</echo>
+ <echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
+ <echo>===============================================================================</echo>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Javadoc target -->
+ <!-- ====================================================================== -->
+
+ <target name="javadoc" description="Generates the Javadoc of the application">
+ <javadoc sourcepath="${maven.build.srcDir.0}"
+ packagenames="*"
+ destdir="${maven.reporting.outputDirectory}/apidocs"
+ access="protected"
+ old="false"
+ verbose="false"
+ version="true"
+ use="true"
+ author="true"
+ splitindex="false"
+ nodeprecated="false"
+ nodeprecatedlist="false"
+ notree="false"
+ noindex="false"
+ nohelp="false"
+ nonavbar="false"
+ serialwarn="false"
+ charset="ISO-8859-1"
+ linksource="false"
+ breakiterator="false"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- Package target -->
+ <!-- ====================================================================== -->
+
+ <target name="package" depends="compile,test" description="Package the application">
+ <jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
+ compress="true"
+ index="false"
+ basedir="${maven.build.outputDir}"
+ excludes="**/package.html"/>
+ </target>
+
+ <!-- ====================================================================== -->
+ <!-- A dummy target for the package named after the type it creates -->
+ <!-- ====================================================================== -->
+
+ <target name="jar" depends="package" description="Builds the jar for the application"/>
+
+ <!-- ====================================================================== -->
+ <!-- Download dependencies target -->
+ <!-- ====================================================================== -->
+
+ <target name="test-offline">
+ <condition property="maven.mode.offline">
+ <equals arg1="${maven.settings.offline}" arg2="true"/>
+ </condition>
+ </target>
+
+ <target name="get-deps"
+ depends="test-offline"
+ description="Download all dependencies"
+ unless="maven.mode.offline">
+ </target>
+
+</project>
diff --git a/dev-java/jnr-netdb/jnr-netdb-1.0.6.ebuild b/dev-java/jnr-netdb/jnr-netdb-1.0.6.ebuild
new file mode 100644
index 000000000000..1e0004696149
--- /dev/null
+++ b/dev-java/jnr-netdb/jnr-netdb-1.0.6.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 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.6.ebuild,v 1.1 2012/05/28 17:55:54 sera Exp $
+
+EAPI=4
+
+JAVA_PKG_IUSE="doc source test"
+
+inherit java-pkg-2 java-ant-2 vcs-snapshot
+
+DESCRIPTION="Network services database access for java."
+HOMEPAGE="https://github.com/jnr/jnr-netdb"
+SRC_URI="https://github.com/jnr/${PN}/tarball/${PV} -> ${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+SLOT="1.0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+COMMON_DEP="
+ dev-java/jnr-ffi:0.7"
+RDEPEND="${COMMON_DEP}
+ >=virtual/jre-1.5"
+DEPEND="${COMMON_DEP}
+ >=virtual/jdk-1.5
+ test? (
+ dev-java/ant-junit
+ dev-java/junit:4
+ )"
+
+java_prepare() {
+ find -name '*.jar' -exec rm -v {} + || die
+
+ cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc"
+JAVA_ANT_ENCODING="UTF-8"
+
+EANT_GENTOO_CLASSPATH="jnr-ffi-0.7"
+
+EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4"
+src_test() {
+ java-pkg-2_src_test
+}
+
+src_install() {
+ java-pkg_dojar target/${PN}.jar
+ dodoc README
+
+ use doc && java-pkg_dojavadoc target/site/apidocs
+ use source && java-pkg_dosrc src/main/java/*
+}