From: "Guillaume Horel" <guillaume.horel@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-java/jogl/, dev-java/jogl/files/
Date: Fri, 3 Apr 2015 20:25:46 +0000 (UTC) [thread overview]
Message-ID: <1428092457.9c16123bca891b26a8e375ba4e25533d0a5ce62c.guillaume_horel@gentoo> (raw)
commit: 9c16123bca891b26a8e375ba4e25533d0a5ce62c
Author: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
AuthorDate: Fri Apr 3 20:20:57 2015 +0000
Commit: Guillaume Horel <guillaume.horel <AT> gmail <DOT> com>
CommitDate: Fri Apr 3 20:20:57 2015 +0000
URL: https://gitweb.gentoo.org/proj/sci.git/commit/?id=9c16123b
dev-java/jogl: rework ebuild starting from 2.1.4
Package-Manager: portage-2.2.18
dev-java/jogl/ChangeLog | 5 ++
dev-java/jogl/files/disable-applet.diff | 22 -------
dev-java/jogl/files/jogl-2.2.4-notests.patch | 12 ----
dev-java/jogl/jogl-2.2.4.ebuild | 86 +++++++++-------------------
4 files changed, 31 insertions(+), 94 deletions(-)
diff --git a/dev-java/jogl/ChangeLog b/dev-java/jogl/ChangeLog
index 91f7b86..84ec1ab 100644
--- a/dev-java/jogl/ChangeLog
+++ b/dev-java/jogl/ChangeLog
@@ -2,6 +2,11 @@
# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 03 Apr 2015; Guillaume Horel <guillaume.horel@gmail.com>
+ -files/disable-applet.diff, -files/jogl-2.2.4-notests.patch,
+ jogl-2.2.4.ebuild:
+ dev-java/jogl: rework ebuild starting from 2.1.4
+
*jogl-2.2.4 (03 Apr 2015)
03 Apr 2015; Guillaume Horel <guillaume.horel@gmail.com>
diff --git a/dev-java/jogl/files/disable-applet.diff b/dev-java/jogl/files/disable-applet.diff
deleted file mode 100644
index ecbd82a..0000000
--- a/dev-java/jogl/files/disable-applet.diff
+++ /dev/null
@@ -1,22 +0,0 @@
-Index: libjogl2-java-2.1.4/make/build-newt.xml
-===================================================================
---- libjogl2-java-2.1.4.orig/make/build-newt.xml 2014-02-27 23:21:42.000000000 +0100
-+++ libjogl2-java-2.1.4/make/build-newt.xml 2014-02-27 23:32:11.638399263 +0100
-@@ -100,7 +100,7 @@
- <!-- partitioning -->
-
- <property name="java.part.core"
-- value="com/jogamp/newt/* com/jogamp/newt/event/* com/jogamp/newt/util/* com/jogamp/newt/util/applet/* jogamp/newt/* jogamp/newt/event/* jogamp/newt/driver/*"/>
-+ value="com/jogamp/newt/* com/jogamp/newt/event/* com/jogamp/newt/util/* jogamp/newt/* jogamp/newt/event/* jogamp/newt/driver/*"/>
-
- <property name="java.part.opengl"
- value="com/jogamp/newt/opengl/** jogamp/newt/driver/opengl/**"/>
-@@ -236,7 +236,7 @@
- -->
- <target name="java.compile.javase">
- <javac destdir="${classes}"
-- excludes="${java.excludes.all} ${java.part.driver.android}"
-+ excludes="${java.excludes.all} ${java.part.driver.android} com/jogamp/newt/util/applet/*"
- fork="yes"
- includeAntRuntime="false"
- memoryMaximumSize="${javac.memorymax}"
diff --git a/dev-java/jogl/files/jogl-2.2.4-notests.patch b/dev-java/jogl/files/jogl-2.2.4-notests.patch
deleted file mode 100644
index 8d24e57..0000000
--- a/dev-java/jogl/files/jogl-2.2.4-notests.patch
+++ /dev/null
@@ -1,12 +0,0 @@
-diff -urN jogl-v2.2.4.orig/make/build.xml jogl-v2.2.4/make/build.xml
---- jogl-v2.2.4.orig/make/build.xml 2015-04-03 10:09:28.730409643 -0400
-+++ jogl-v2.2.4/make/build.xml 2015-04-03 10:10:57.040418430 -0400
-@@ -8,7 +8,7 @@
- - Main build target.
- -->
-
-- <target name="all" description="Build nativewindow, jogl and newt projects, incl. all junit tests " depends="init,build.nativewindow,build.jogl,build.newt,build.oculusvr,one.dir,tag.build,test.compile,developer-zip-archive" />
-+ <target name="all" description="Build nativewindow, jogl and newt projects" depends="init,build.nativewindow,build.jogl,build.newt,build.oculusvr,one.dir,tag.build" />
-
- <target name="all.debug" description="Debug build nativewindow, jogl and newt projects, incl. all junit tests " depends="init.debug,build.nativewindow,build.jogl,build.newt,build.oculusvr,one.dir,tag.build,test.compile,developer-zip-archive" />
-
diff --git a/dev-java/jogl/jogl-2.2.4.ebuild b/dev-java/jogl/jogl-2.2.4.ebuild
index 9455a6b..d034168 100644
--- a/dev-java/jogl/jogl-2.2.4.ebuild
+++ b/dev-java/jogl/jogl-2.2.4.ebuild
@@ -2,103 +2,69 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-###############################################################################
-# WARNING: don't add to main tree without fixing QA issues first!
-###############################################################################
-
EAPI=5
-RESTRICT="test"
-
-JAVA_PKG_IUSE="doc source test"
+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=v${PV}
-MY_P=${PN}-${MY_PV}
-
DESCRIPTION="Java(TM) Binding fot the OpenGL(TM) API"
HOMEPAGE="http://jogamp.org/jogl/www/"
-SRC_URI="http://jogamp.org/deployment/${MY_PV}/archive/Sources/${MY_P}.tar.7z"
+SRC_URI="https://github.com/sgothel/jogl/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="2.2"
KEYWORDS="~amd64 ~x86"
IUSE="cg"
-COMMON_DEP="
- dev-java/ant-core:0
- dev-java/ant-junit:0
- dev-java/antlr:0
- dev-java/cpptasks:0
+CDEPEND="
=dev-java/gluegen-${PV}:${SLOT}
- dev-java/junit:4
- dev-java/swt:3.7
+ 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="${COMMON_DEP}
+
+RDEPEND="${CDEPEND}
>=virtual/jre-1.5"
-DEPEND="${COMMON_DEP}
- >=virtual/jdk-1.5
- app-arch/p7zip
- dev-java/ant-antlr:0
- dev-java/ant-contrib:0
- dev-java/ant-nodeps:0
- dev-java/cpptasks:0"
+DEPEND="${CDEPEND}
+ >=virtual/jdk-1.5"
-S=${WORKDIR}/${MY_P}
+# upstream has a crude way to call the junit tests, which cause a lot of trouble to pass
+# our test classpath...
+RESTRICT="test"
-src_unpack() {
- default
- unpack ./${MY_P}.tar
-}
+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 build.oculusvr 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() {
- find -name '*.jar' -exec rm -v {} + || die
+ #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
- epatch "${FILESDIR}/disable-applet.diff" \
- "${FILESDIR}/${P}-notests.patch"
-}
-
-JAVA_PKG_BSFIX_NAME+=" build-jogl.xml build-nativewindow.xml build-newt.xml build-test.xml"
-JAVA_ANT_REWRITE_CLASSPATH="yes"
+ sed -i -e 's/<outofdate>/<outofdate force="true">/' make/build*xml || die
-EANT_BUILD_XML="make/build.xml"
-EANT_BUILD_TARGET="all"
-EANT_DOC_TARGET="" # FIXME there are a couple javadoc targets, pick one
-EANT_GENTOO_CLASSPATH="ant-core,antlr,swt-3.7,ant-junit"
-EANT_NEEDS_TOOLS="yes"
-EANT_ANT_TASKS="ant-antlr ant-contrib ant-junit ant-nodeps cpptasks"
-
-src_compile() {
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)"
- # FIXME don't build tests just yet
- use test & EANT_EXTRA_ARGS+=" -Djunit.jar=$(java-pkg_getjar --build-only junit-4 junit.jar)"
-
use cg && EANT_EXTRA_ARGS+=" -Djogl.cg=1 -Dx11.cg.lib=/usr/lib"
-
- java-pkg-2_src_compile
}
-EANT_TEST_TARGET="junit.run"
-# FIXME src_test
-
src_install() {
- # There are many more
java-pkg_dojar build/jar/*.jar
java-pkg_doso build/lib/*.so
- if use doc; then
- #java-pkg_dojavadoc javadoc_public
- dodoc -r doc
- fi
+ use doc && dodoc -r doc
use source && java-pkg_dosrc src/jogl/classes/*
}
next reply other threads:[~2015-04-03 20:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-03 20:25 Guillaume Horel [this message]
-- strict thread matches above, loose matches on Subject: below --
2015-04-03 17:49 [gentoo-commits] proj/sci:master commit in: dev-java/jogl/, dev-java/jogl/files/ Guillaume Horel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1428092457.9c16123bca891b26a8e375ba4e25533d0a5ce62c.guillaume_horel@gentoo \
--to=guillaume.horel@gmail.com \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox