diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/jnr-netdb |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/jnr-netdb')
-rw-r--r-- | dev-java/jnr-netdb/Manifest | 6 | ||||
-rw-r--r-- | dev-java/jnr-netdb/files/jnr-netdb_maven-build.xml | 231 | ||||
-rw-r--r-- | dev-java/jnr-netdb/jnr-netdb-1.1.4.ebuild | 54 | ||||
-rw-r--r-- | dev-java/jnr-netdb/metadata.xml | 20 |
4 files changed, 311 insertions, 0 deletions
diff --git a/dev-java/jnr-netdb/Manifest b/dev-java/jnr-netdb/Manifest new file mode 100644 index 000000000000..3f767e229870 --- /dev/null +++ b/dev-java/jnr-netdb/Manifest @@ -0,0 +1,6 @@ +AUX jnr-netdb_maven-build.xml 9637 SHA256 fab6833838210cdd393863f9fe2d69b3bb26e9ef0d7f37a00074493a27350c94 SHA512 befe514fd332f5eb6495404b0f0d8edc428be34a1745b16dd2a20d2b859d251670e549036099884a810e3b5da0c6a4d311b6b0691409cae1b6c14d20ee763d24 WHIRLPOOL 999d99a9d1fceb4dc90fe88882cf7b097fa16784dea5b5a2385d6e8f2d09fc59677fd9997ea7e26c31dd0bb63a02ca0517bf7c0b134400fff5647cb8ac22c064 +DIST jnr-netdb-1.1.4.tar.gz 648347 SHA256 d67327943c8ca59432bda152bd4a8611ff1eab099f2d4bf08a743dfd5f963c69 SHA512 949a744b1d443cde564a2582baf7b4323c721417f32a45fd7413f791823cac5877bef62ed0d3079345631b908a581a1acf83dd00a926f87ebbd8e61d38a20195 WHIRLPOOL 0319025334a12e59df01da1f13e74401373ec7e7e2ea30db549e9e19e226d74cdc74b62e9c5c78d74374d05f98adcc3d18bdfc40a8e760a4c5f2b5fa3c7d4a76 +EBUILD jnr-netdb-1.1.4.ebuild 1133 SHA256 758b934f4ace072f7b0367201c109fe8090852a5667e6212306f0618a0e11619 SHA512 8083073e3f32192e19787ca01b05278c9e0b7d58016d0018202bbc05a5a6beccadcf543e710d59acf0250cd9526ae7a527438f7daf6765ac4099e76f4afed0e4 WHIRLPOOL b1dad457a63459d3bde40c5f4ac3e774b66fc79970940bcf38f9eaa55ed9f7db7ac9b30637711931fdc83984e80139685468c42f4eb43deaa43e0fd0a04b5d07 +MISC ChangeLog 2859 SHA256 a5cd8827bf62fc2a6ecb3ef2dc8ef095c475a1cba3e896f6b836162022eb51d9 SHA512 f1a0fbd4a83b61411261accb08834ebe4d3cdfdffcb98c48155c66b70d377b09fb183cdd2225ebaf1132fc82e4a7020b38df3d9de4e540fc4ce082024c50c9cd WHIRLPOOL 235ea3c5ec4afcad36776b26a42614fd1d157abb43b1c765658c19aef02acdd488864cc5e765ac076f7067dd375f980871933017c1390b88c3b3f8c51d5417f8 +MISC ChangeLog-2015 2980 SHA256 725137ffc1b4ae2e79386d0d01b1ec0d7f501c0b568dd7595834ec3b790b6ffe SHA512 d195afac4438d8ca1bbabf7b28749b65760fbfdd0c78bcfd3f8c01c29b6a199b8f3f8478b60c10d31f724969d0f83c4c8225f597bd702eedcfb393c4a125deb4 WHIRLPOOL 2950d5e442ebb528acbf71fd4f05407e94e2ce8076fbbb6e23d99d21e55c575a6adebec99a897285fe48e22b2805e7b5288e10ed13bf44c7faf7a81386c161b0 +MISC metadata.xml 661 SHA256 2a980f970fc4b2466aa15dc570b4f0aafd52e7c674bf512a653e5d1c8e108fa9 SHA512 0c7660f9c73bfbfb9bb766443d175a817e21be2113beed0d2167d3cd630dad0d89efe7ca14808f0db621549836515ad05f1c40f826e0e6c2801d456fdb5b1428 WHIRLPOOL 75a5d990975ef632bb5815fe3a065a4eca8f6c1372051a2b2d776ccbdb678828c06e4ee412e72efb5e0905cce7bac2b93ab41940d32d86e3bd089e975f37eef4 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.1.4.ebuild b/dev-java/jnr-netdb/jnr-netdb-1.1.4.ebuild new file mode 100644 index 000000000000..8bb9e68cb34c --- /dev/null +++ b/dev-java/jnr-netdb/jnr-netdb-1.1.4.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Network services database access for java" +HOMEPAGE="https://github.com/jnr/jnr-netdb" +SRC_URI="https://github.com/jnr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.0" +KEYWORDS="amd64 ~arm64 x86" + +COMMON_DEP=" + dev-java/jnr-ffi:2" + +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-2" +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/* +} diff --git a/dev-java/jnr-netdb/metadata.xml b/dev-java/jnr-netdb/metadata.xml new file mode 100644 index 000000000000..b9e170aa3d0d --- /dev/null +++ b/dev-java/jnr-netdb/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <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> + <upstream> + <remote-id type="github">jnr/jnr-netdb</remote-id> + </upstream> +</pkgmetadata> |