aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2013-02-03 10:15:28 -0500
committerGuillaume Horel <guillaume.horel@gmail.com>2013-02-03 10:16:26 -0500
commit59f0b122929200c3174859dca7d355db91d57ac5 (patch)
treee0b7e8edc3b8c78dce5a57b8f3a8a38bed43498c /dev-java/gluegen/gluegen-2.0_rc8.ebuild
parentFixed name in ChangeLog and metadata.xml (diff)
downloadsci-59f0b122929200c3174859dca7d355db91d57ac5.tar.gz
sci-59f0b122929200c3174859dca7d355db91d57ac5.tar.bz2
sci-59f0b122929200c3174859dca7d355db91d57ac5.zip
dev-java/gluegen import from java-overlay
Diffstat (limited to 'dev-java/gluegen/gluegen-2.0_rc8.ebuild')
-rw-r--r--dev-java/gluegen/gluegen-2.0_rc8.ebuild87
1 files changed, 87 insertions, 0 deletions
diff --git a/dev-java/gluegen/gluegen-2.0_rc8.ebuild b/dev-java/gluegen/gluegen-2.0_rc8.ebuild
new file mode 100644
index 000000000..4dd5ee36c
--- /dev/null
+++ b/dev-java/gluegen/gluegen-2.0_rc8.ebuild
@@ -0,0 +1,87 @@
+# Copyright 1999-2013 Gentoo Foundation
+# 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="4"
+
+JAVA_PKG_IUSE="doc source"
+
+inherit java-pkg-2 java-ant-2
+
+MY_PV=v${PV/_/-}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="GlueGen is a tool which automatically generates the Java and JNI
+code necessary to call C libraries"
+HOMEPAGE="http://jogamp.org/gluegen/www/"
+SRC_URI="http://jogamp.org/deployment/${MY_PV}/archive/Sources/${MY_P}.tar.7z"
+
+LICENSE="BSD"
+SLOT="2"
+KEYWORDS="~amd64"
+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
+ app-arch/p7zip
+ dev-java/ant-antlr:0
+ dev-java/ant-contrib:0
+ dev-java/ant-nodeps:0
+ dev-java/cpptasks:0
+ dev-java/junit:4"
+
+S=${WORKDIR}/${MY_P}
+
+src_unpack() {
+ default
+ unpack ./${MY_P}.tar
+}
+
+java_prepare() {
+ # preserve android.jar, FIXME can be built form source!
+ mv make/lib/android-sdk "${T}" || die
+ find -name '*.jar' -exec rm -v {} + || die
+ mv "${T}"/android-sdk make/lib/ || die
+}
+
+JAVA_ANT_REWRITE_CLASSPATH="yes"
+
+EANT_BUILD_XML="make/build.xml"
+EANT_BUILD_TARGET="all"
+EANT_DOC_TARGET=""
+EANT_GENTOO_CLASSPATH="antlr,ant-core"
+EANT_NEEDS_TOOLS="yes"
+EANT_ANT_TASKS="ant-antlr ant-contrib ant-nodeps cpptasks"
+src_compile() {
+ # FIXME don't copy around jars
+ EANT_EXTRA_ARGS+=" -Dantlr.jar=\"$(java-pkg_getjar --build-only antlr antlr.jar)\""
+ # FIXME don't build tests just yet
+ EANT_EXTRA_ARGS+=" -Djunit.jar=\"$(java-pkg_getjar --build-only junit-4 junit.jar)\""
+
+ java-pkg-2_src_compile
+}
+
+# FIXME 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
+}