diff options
author | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-06-18 22:22:43 +0200 |
---|---|---|
committer | Alessandro Barbieri <lssndrbarbieri@gmail.com> | 2022-06-26 04:29:43 +0200 |
commit | 8516d6e3ed5c873671fca053fd575e9152c16796 (patch) | |
tree | 8328ee3b9b596d29a3a2fbe65ae32977d3d14673 /dev-java | |
parent | dev-java/gluegen: new package, add 2.3.2 (diff) | |
download | guru-8516d6e3ed5c873671fca053fd575e9152c16796.tar.gz guru-8516d6e3ed5c873671fca053fd575e9152c16796.tar.bz2 guru-8516d6e3ed5c873671fca053fd575e9152c16796.zip |
dev-java/jogl: new package, add 2.3.2
Signed-off-by: Alessandro Barbieri <lssndrbarbieri@gmail.com>
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/jogl/Manifest | 1 | ||||
-rw-r--r-- | dev-java/jogl/jogl-2.3.2.ebuild | 76 | ||||
-rw-r--r-- | dev-java/jogl/metadata.xml | 19 |
3 files changed, 96 insertions, 0 deletions
diff --git a/dev-java/jogl/Manifest b/dev-java/jogl/Manifest new file mode 100644 index 000000000..144441174 --- /dev/null +++ b/dev-java/jogl/Manifest @@ -0,0 +1 @@ +DIST jogl-2.3.2.gh.tar.gz 50627694 BLAKE2B b6fb1a43101497df1cf744abad5f907fd67aad9f743b0b550999159072a00c4a6940b908e2848e93982fe68c994c762d2e502be4c4153f6e619dbd153f16246d SHA512 613155d0b01f37efccc0e720710b624c356e6595de85c3a302ba79f2d5f6d0b59a775c648e72de7b1f13856fc835bf28168c136362e86af5ac9e9d750f55b78c diff --git a/dev-java/jogl/jogl-2.3.2.ebuild b/dev-java/jogl/jogl-2.3.2.ebuild new file mode 100644 index 000000000..849dae946 --- /dev/null +++ b/dev-java/jogl/jogl-2.3.2.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +EANT_BUILD_TARGET="init build.nativewindow build.jogl build.newt build.oculusvr one.dir tag.build" +EANT_BUILD_XML="make/build.xml" +EANT_DOC_TARGET="" +EANT_GENTOO_CLASSPATH="gluegen-${SLOT},antlr,ant-core,swt-3.7" +EANT_GENTOO_CLASSPATH_EXTRA="${S}/build/${PN}/*.jar:${S}/build/nativewindow/*.jar" +EANT_NEEDS_TOOLS="yes" +JAVA_ANT_REWRITE_CLASSPATH="yes" +JAVA_PKG_BSFIX_NAME+=" build-jogl.xml build-nativewindow.xml build-newt.xml" +JAVA_PKG_IUSE="doc source" +WANT_ANT_TASKS="ant-antlr ant-contrib dev-java/cpptasks:0" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Java(TM) Binding fot the OpenGL(TM) API" +HOMEPAGE=" + https://jogamp.org/jogl/www/ + https://github.com/sgothel/jogl +" +SRC_URI="https://github.com/sgothel/jogl/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD" +SLOT="2.3" +KEYWORDS="~amd64" +IUSE="cg" + +CDEPEND=" + ~dev-java/gluegen-${PV}:${SLOT} + dev-java/antlr:0 + dev-java/ant-core:0 + x11-libs/libX11 + x11-libs/libXxf86vm + dev-java/swt:3.7 + virtual/opengl + cg? ( media-gfx/nvidia-cg-toolkit ) +" +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:* +" +DEPEND=" + ${CDEPEND} + >=virtual/jdk-1.8:* +" + +# upstream has a crude way to call the junit tests, which cause a lot of trouble to pass +# our test classpath... +RESTRICT="test" + +src_prepare() { + default + #we keep make/lib/plugin3/plugin3-public.jar + find -name 'make/lib/swt/*.jar' -delete -print || die + + # Empty filesets are never out of date! + sed -i -e 's/<outofdate>/<outofdate force="true">/' make/build*xml || die + + EANT_EXTRA_ARGS+=" -Dcommon.gluegen.build.done=true" + EANT_EXTRA_ARGS+=" -Dgluegen.root=/usr/share/gluegen-${SLOT}/" + EANT_EXTRA_ARGS+=" -Dgluegen.jar=$(java-pkg_getjar gluegen-${SLOT} gluegen.jar)" + EANT_EXTRA_ARGS+=" -Dgluegen-rt.jar=$(java-pkg_getjar gluegen-${SLOT} gluegen-rt.jar)" + + use cg && EANT_EXTRA_ARGS+=" -Djogl.cg=1 -Dx11.cg.lib=/usr/lib" +} + +src_install() { + java-pkg_dojar build/jar/*.jar + java-pkg_doso build/lib/*.so + + use doc && dodoc -r doc + use source && java-pkg_dosrc src/jogl/classes/* +} diff --git a/dev-java/jogl/metadata.xml b/dev-java/jogl/metadata.xml new file mode 100644 index 000000000..41da371c9 --- /dev/null +++ b/dev-java/jogl/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <description>co-maintainers welcome</description> + <name>Alessandro Barbieri</name> + <email>lssndrbarbieri@gmail.com</email> + </maintainer> + <longdescription lang="en"> +JOGL provides Java with a Binding for the OpenGL® API (JSR-231), and is designed +to provide hardware-supported 3D graphics to applications written in Java. +</longdescription> + <use> + <flag name="cg">Enable NVidia Cg binding.</flag> + </use> + <upstream> + <remote-id type="github">sgothel/jogl</remote-id> + </upstream> +</pkgmetadata> |