diff options
author | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2021-03-03 10:24:33 +0100 |
---|---|---|
committer | Andrew Ammerlaan <andrewammerlaan@riseup.net> | 2021-03-03 10:24:52 +0100 |
commit | dfdd467b83106d4d78c9060a5c0bcce39c9dcb1a (patch) | |
tree | 2d34299acbf0564d2972226c0be9f9f7cad7a720 /dev-java | |
parent | dev-java/gluegen: drop old (diff) | |
download | sci-dfdd467b83106d4d78c9060a5c0bcce39c9dcb1a.tar.gz sci-dfdd467b83106d4d78c9060a5c0bcce39c9dcb1a.tar.bz2 sci-dfdd467b83106d4d78c9060a5c0bcce39c9dcb1a.zip |
Revert "dev-java/gluegen: drop old"
This reverts commit 7fbdaa9a64dea91d504889987eec93c1f32d2a7a.
Package-Manager: Portage-3.0.16, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/gluegen/Manifest | 1 | ||||
-rw-r--r-- | dev-java/gluegen/gluegen-2.1.4.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/gluegen/Manifest b/dev-java/gluegen/Manifest index df194d065..4e44921ef 100644 --- a/dev-java/gluegen/Manifest +++ b/dev-java/gluegen/Manifest @@ -1 +1,2 @@ +DIST gluegen-2.1.4.tar.gz 42235490 BLAKE2B 31e5a55c9cc983d0e1c7f53988b7cc0779e01d1c4c0df8a33ca817acd51d0d28e453e6a84e1be65ecfb62883e8900c62a2219f78035dc7a68c26412e7c2b5135 SHA512 196478de92686b168d6f35e2e7141a31f682d22a7f96b5bc84d46905c42eb5bf25bacd74ccc51975fc7894e2e0ba2e236a4a68c101bbabaaa5193e4bdc50f607 DIST gluegen-2.2.4.tar.gz 43113191 BLAKE2B 8908cff19b4eeaac01eb91ecf51005433c60acbf35a2922e09f7bfe3d11dee46296b466ea22cf570cae5a1013ea6dd9b375fbaa5b0723509d0bad0926014b9fb SHA512 53e973ca8478f4513f9662d1375406af95f2181dae3fb3e3247e4752960e60e741f7eae36981967dba10ac7bc3dc0e85c159c193323c177ce733a9eb0540b98b diff --git a/dev-java/gluegen/gluegen-2.1.4.ebuild b/dev-java/gluegen/gluegen-2.1.4.ebuild new file mode 100644 index 000000000..578be9b15 --- /dev/null +++ b/dev-java/gluegen/gluegen-2.1.4.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +JAVA_PKG_IUSE="doc source test" +WANT_ANT_TASKS="ant-antlr ant-contrib dev-java/cpptasks:0" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Automatically generate the JNI code necessary to call C libraries" +HOMEPAGE="https://jogamp.org/gluegen/www/" +SRC_URI="https://github.com/sgothel/gluegen/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="2.1" +KEYWORDS="~amd64 ~x86" +IUSE="" + +COMMON_DEP=" + dev-java/ant-core:0 + dev-java/antlr:0" +RDEPEND="${COMMON_DEP} + >=virtual/jre-1.5" + +DEPEND="${COMMON_DEP} + >=virtual/jdk-1.5 + dev-java/cpptasks:0 + test? ( + dev-java/junit:4 + dev-java/ant-junit4 + )" + +JAVA_ANT_REWRITE_CLASSPATH="yes" +EANT_BUILD_XML="make/build.xml" +EANT_BUILD_TARGET="all.no_junit" +EANT_DOC_TARGET="" +EANT_GENTOO_CLASSPATH="antlr,ant-core" +EANT_NEEDS_TOOLS="yes" +EANT_TEST_TARGET="junit.run" +EANT_TEST_GENTOO_CLASSPATH="${EANT_GENTOO_CLASSPATH},junit-4" +EANT_GENTOO_CLASSPATH_EXTRA="${S}/build/${PN}{,-rt}.jar" +EANT_EXTRA_ARGS="-Dc.strip.libraries=false" + +java_prepare() { + rm -rf make/lib + epatch "${FILESDIR}"/${PV}-*.patch + java-ant_bsfix_files "${S}/make/build-test.xml" +} + +src_test() { + EANT_TASKS="ant-junit4" java-pkg-2_src_test +} + +src_install() { + java-pkg_dojar build/${PN}{,-rt}.jar + java-pkg_doso build/obj/*.so + + use doc && dohtml -r doc/manual + use source && java-pkg_dosrc src/java/* + + # for building jogl + insinto /usr/share/${PN}-${SLOT}/make + doins -r make/* + insinto /usr/share/${PN}-${SLOT}/build + doins build/artifact.properties +} |