aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2014-02-12 00:36:31 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2014-02-12 00:45:17 -0500
commit4a85aca138e6353af4696e72b8eacf59e8b126c5 (patch)
tree3f8f12eb6bdc28888c89e678d1bcadbce2e6853b /dev-java/jogl/jogl-2.1.4.ebuild
parentvirtual/lapack: Add missing inherite from multilib.eclass, thanks dev-zero sp... (diff)
downloadsci-4a85aca138e6353af4696e72b8eacf59e8b126c5.tar.gz
sci-4a85aca138e6353af4696e72b8eacf59e8b126c5.tar.bz2
sci-4a85aca138e6353af4696e72b8eacf59e8b126c5.zip
dev-java/jogl: dev-java/jogl version bump
Package-Manager: portage-2.2.8-r1
Diffstat (limited to 'dev-java/jogl/jogl-2.1.4.ebuild')
-rw-r--r--dev-java/jogl/jogl-2.1.4.ebuild72
1 files changed, 72 insertions, 0 deletions
diff --git a/dev-java/jogl/jogl-2.1.4.ebuild b/dev-java/jogl/jogl-2.1.4.ebuild
new file mode 100644
index 000000000..56fab7ab0
--- /dev/null
+++ b/dev-java/jogl/jogl-2.1.4.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+JAVA_PKG_IUSE="doc source"
+WANT_ANT_TASKS="ant-antlr ant-contrib dev-java/cpptasks:0"
+
+inherit java-pkg-2 java-ant-2
+
+#MY_PV="${PV/_rc/_rc0}"
+#MY_P="${PN}-${MY_PV}"
+
+DESCRIPTION="Java(TM) Binding fot the OpenGL(TM) API"
+HOMEPAGE="http://jogamp.org/jogl/www/"
+SRC_URI="https://github.com/sgothel/jogl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="2.1"
+KEYWORDS="~amd64 ~x86"
+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.5"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5"
+
+# upstream has a crude way to call the junit tests, which cause a lot of trouble to pass
+# our test classpath...
+RESTRICT="test"
+
+JAVA_PKG_BSFIX_NAME+=" build-jogl.xml build-nativewindow.xml build-newt.xml"
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+EANT_BUILD_XML="make/build.xml"
+EANT_BUILD_TARGET="init build.nativewindow build.jogl build.newt one.dir tag.build"
+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_prepare() {
+ #we keep make/lib/plugin3/puglin3-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/*
+}