From f4537b6303dc71941803bb488ce042ce3552282e Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Mon, 29 Nov 2021 01:39:01 +0000 Subject: Adding metadata --- dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild | 2 +- dev-java/jnr-ffi/Manifest | 1 + dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch | 11 + dev-java/jnr-ffi/files/jnr-ffi_maven-build.xml | 250 +++++++++++++++++++++ dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild | 61 +++++ 5 files changed, 324 insertions(+), 1 deletion(-) create mode 100644 dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch create mode 100644 dev-java/jnr-ffi/files/jnr-ffi_maven-build.xml create mode 100644 dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild (limited to 'dev-java') diff --git a/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild b/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild index 5e58650a3852..1311aecbf080 100644 --- a/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild +++ b/dev-java/icedtea-bin/icedtea-bin-3.16.0-r1.ebuild @@ -3,7 +3,7 @@ EAPI=8 -inherit java-vm-2 toolchain-funcs +inherit java-vm-2 multilib-build toolchain-funcs abi_uri() { echo "${2-$1}? ( diff --git a/dev-java/jnr-ffi/Manifest b/dev-java/jnr-ffi/Manifest index a1833f95b1e1..a62c50306aae 100644 --- a/dev-java/jnr-ffi/Manifest +++ b/dev-java/jnr-ffi/Manifest @@ -1 +1,2 @@ +DIST jnr-ffi-2.0.2.tar.gz 170707 BLAKE2B fc4f1dcea51939b6098b980b4962380e58ba590ea9d4cdba7823c1372bd645d985ae25d8ebf1f0b575a0e4b5c192e5595094076d3cd44e4bb3c077dd838c170f SHA512 80a932408f5ceaf19fd7a399b786aa0d7b9251ea144bc2755bcf3cdc3aea85615a1faa001bbcd3072bc0eead2aaa30d0bbead5f96c82c4b9e455c1ed1379b4c0 DIST jnr-ffi-2.2.8-sources.tar.gz 261959 BLAKE2B 16f7b89c88a61fa07da65d4e5287258f96550b93898bb7313ddd62d1f002276da86aca2c79874eccb466eaebcad5181ff33539996a6558b6d79ce9280cf9c0a9 SHA512 15187d90f15ad82cb6cac0617806ab7d0322bfcb4f44523f2272f93f19ec115625806c9d450bffaa57db32c70906328c8edc905046465b0ec3eb6ff52e500b42 diff --git a/dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch b/dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch new file mode 100644 index 000000000000..92b4cb2bcfc3 --- /dev/null +++ b/dev-java/jnr-ffi/files/jnr-ffi-2.0.2-junit48.patch @@ -0,0 +1,11 @@ +--- a/src/test/java/jnr/ffi/ObjectReferenceManagerTest.java ++++ b/src/test/java/jnr/ffi/ObjectReferenceManagerTest.java +@@ -35,7 +35,7 @@ + Pointer ptr = referenceManager.add(bar); + Pointer ptr2 = referenceManager.add(bar2); + assertNotSame(ptr, ptr2); +- assertNotEquals(ptr, ptr2); ++ assertTrue(!ptr.equals(ptr2)); + assertSame(bar, referenceManager.get(ptr)); + assertSame(bar2, referenceManager.get(ptr2)); + } diff --git a/dev-java/jnr-ffi/files/jnr-ffi_maven-build.xml b/dev-java/jnr-ffi/files/jnr-ffi_maven-build.xml new file mode 100644 index 000000000000..0337f347bec0 --- /dev/null +++ b/dev-java/jnr-ffi/files/jnr-ffi_maven-build.xml @@ -0,0 +1,250 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + =================================== WARNING =================================== + JUnit is not present in your $ANT_HOME/lib directory. Tests not executed. + =============================================================================== + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild b/dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild new file mode 100644 index 000000000000..e3a137ca89bb --- /dev/null +++ b/dev-java/jnr-ffi/jnr-ffi-2.0.2-r1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="An abstracted interface to invoking native functions from java" +HOMEPAGE="https://github.com/jnr/jnr-ffi" +SRC_URI="https://github.com/jnr/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="|| ( Apache-2.0 LGPL-3 )" +SLOT="2" +KEYWORDS="~ppc64" + +COMMON_DEP=" + ~dev-java/jffi-1.2.9:1.2 + dev-java/jnr-x86asm:1.0 + dev-java/asm:4" + +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.8:*" + +DEPEND="${COMMON_DEP} + >=virtual/jdk-1.8:* + test? ( + dev-java/ant-junit:0 + >=dev-java/junit-4.8:4 + )" + +src_prepare() { + default + cp "${FILESDIR}"/${PN}_maven-build.xml build.xml || die + eapply "${FILESDIR}"/${P}-junit48.patch +} + +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_ANT_CLASSPATH_TAGS="${JAVA_ANT_CLASSPATH_TAGS} javadoc" +JAVA_ANT_ENCODING="UTF-8" + +EANT_GENTOO_CLASSPATH="asm-4,jffi-1.2,jnr-x86asm-1.0" +EANT_EXTRA_ARGS="-Dmaven.build.finalName=${PN}" + +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" + +src_test() { + # build native test library + emake BUILD_DIR=build -f libtest/GNUmakefile + + _JAVA_OPTIONS="-Djnr.ffi.library.path=build" \ + java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar target/${PN}.jar + + use doc && java-pkg_dojavadoc target/site/apidocs + use source && java-pkg_dosrc src/main/java/* +} -- cgit v1.3