[dev-java/*] Added deps for scilab

This commit is contained in:
Francesco Ferro
2015-11-07 20:06:25 +01:00
parent 1dec930a8b
commit 3d3597ea78
48 changed files with 1903 additions and 2 deletions
+2
View File
@@ -0,0 +1,2 @@
DIST flexdock-1.1.1-src.zip 6163036 SHA256 e0bed4b633dd09da20651d495eb87b985150938564dd124083483c98bda09cf3 SHA512 104398a573b2aade0ed6b848920f8a3903964feabd755c653d8e62ea986251d9c31a07e88308c9cffe7e696c99109a3dfca249f0ca0357e88a896fc5769170f4 WHIRLPOOL 3265875a173911f5635d76824c1c98bc5f0fef3761abc7f5efc3ddc3582f354562391982f6c6f0f286ac2677bafc94237ce09e63ae877da79cad7dfcd50855b9
DIST flexdock-1.2.4.tar.gz 5977054 SHA256 ff0383929c5373df6c14ba321923b5668023b33c0345c1e8b1b46e056530fda2 SHA512 f20c92d33b0567ed1e779d4c7c843ac9d72e5ae0f0a145d69adf5066bd1dcc426cd8acfe7d0587bd36fc09cab63dd7217f27cd8eee1d5d9b522bec860df9b44f WHIRLPOOL 6acab83606f1d709645cf0c435aa3f5e6815da24be162cc46fc98cc25f2a2f4937249fccdd728e357977404d13a63e8c685d197fd1c3dea858c68cca28cee93a
@@ -0,0 +1,12 @@
diff -urN flexdock-orig/build.xml flexdock/build.xml
--- flexdock-orig/build.xml 2011-12-09 11:11:26.000000000 -0500
+++ flexdock/build.xml 2011-12-20 18:47:57.277051174 -0500
@@ -145,8 +145,6 @@
<src path="${java.src.drag}"/>
<src path="${java.src.perspective}"/>
</javac>
- <javac classpathref="javac.classpath.demo" srcdir="${java.src.demo}" destdir="${bin.dir.demo}" debug="true" source="1.5" target="1.5" includeAntRuntime="no"/>
- <javac classpathref="javac.classpath.test" srcdir="${java.src.test}" destdir="${bin.dir.test}" debug="true" source="1.5" target="1.5" includeAntRuntime="no"/>
</target>
@@ -0,0 +1,12 @@
diff -urN flexdock-orig/build.xml flexdock/build.xml
--- flexdock-orig/build.xml 2011-12-09 11:11:26.000000000 -0500
+++ flexdock/build.xml 2011-12-20 18:47:57.277051174 -0500
@@ -145,8 +145,6 @@
<src path="${java.src.drag}"/>
<src path="${java.src.perspective}"/>
</javac>
- <javac classpathref="javac.classpath.demo" srcdir="${java.src.demo}" destdir="${bin.dir.demo}" debug="true" source="1.5" target="1.5" includeAntRuntime="no"/>
- <javac classpathref="javac.classpath.test" srcdir="${java.src.test}" destdir="${bin.dir.test}" debug="true" source="1.5" target="1.5" includeAntRuntime="no"/>
</target>
+49
View File
@@ -0,0 +1,49 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="A Java docking framework for use in cross-platform Swing applications"
HOMEPAGE="http://flexdock.dev.java.net/"
SRC_URI="http://forge.scilab.org/index.php/p/flexdock/downloads/get/${P}-src.zip"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RDEPEND=">=virtual/jre-1.4"
DEPEND="
app-arch/unzip
dev-java/skinlf
dev-java/jgoodies-looks:2.0
>=virtual/jdk-1.4"
EANT_DOC_TARGET="doc"
S="${WORKDIR}"
java_prepare() {
epatch "${FILESDIR}"/${P}-nodemo.patch
#some cleanups
find . -name '*.so' -exec rm -v {} \;|| die
find . -name '*.dll' -exec rm -v {} \;|| die
#remove built-in jars and use the system ones
cd lib || die
rm -rvf *.jar jmf|| die
java-pkg_jar-from skinlf
java-pkg_jar-from jgoodies-looks-2.0 looks.jar
}
src_install() {
java-pkg_newjar "build/${P}.jar" "${PN}.jar"
use doc && java-pkg_dojavadoc build/docs/api
use source && java-pkg_dosrc src
}
+45
View File
@@ -0,0 +1,45 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="A Java docking framework for use in cross-platform Swing applications"
HOMEPAGE="http://flexdock.dev.java.net/"
SRC_URI="http://forge.scilab.org/index.php/p/flexdock/downloads/get/${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
RDEPEND=">=virtual/jre-1.5"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip
dev-java/skinlf"
EANT_BUILD_TARGET="jar"
EANT_DOC_TARGET="doc"
java_prepare() {
epatch "${FILESDIR}"/${P}-nodemo.patch
#some cleanups
find . -name '*.so' -exec rm -v {} \;|| die
find . -name '*.dll' -exec rm -v {} \;|| die
#remove built-in jars and use the system ones
cd lib || die
rm -rvf *.jar jmf|| die
java-pkg_jar-from skinlf
}
src_install() {
java-pkg_newjar "build/${P}.jar" "${PN}.jar"
use doc && java-pkg_dojavadoc build/docs/api
use source && java-pkg_dosrc src
}
+8
View File
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
Java docking framework for use in cross-platform Swing applications.
</longdescription>
</pkgmetadata>
+4 -1
View File
@@ -1 +1,4 @@
DIST gluegen-20080421.tar.bz2 1044951 SHA256 15ef8f499afc2256615bf453b318fbc22fbe146293ca4c6ca87c98577bf5a026
DIST gluegen-2.1.4.tar.gz 42235490 SHA256 18826c58b136dc44089346791e6ed57c7e2828a1ee4d6279d15e26cb12c2b926 SHA512 196478de92686b168d6f35e2e7141a31f682d22a7f96b5bc84d46905c42eb5bf25bacd74ccc51975fc7894e2e0ba2e236a4a68c101bbabaaa5193e4bdc50f607 WHIRLPOOL c05e723d85021f464d49b48fc2a0f11e5979d42355e6ac0d7437c40407d34829d5a531bf2687d47fa29cd8affd14d400a333fe90624a7ecda832a1cf76696440
DIST gluegen-2.2.4.tar.gz 43113191 SHA256 e931cf9924076a9cbf8ea040f8f5ab22edb9eed3c56f35806c8508fac0b70cc9 SHA512 53e973ca8478f4513f9662d1375406af95f2181dae3fb3e3247e4752960e60e741f7eae36981967dba10ac7bc3dc0e85c159c193323c177ce733a9eb0540b98b WHIRLPOOL 62aa65b0cea7eb9186e6aaf90b9c453656327b1a1562d0ec7ac91deaf91f4a3213bd52862ca792878cae9ea2e22ea94cf0b22dd117bac0535abe954fdc71318b
DIST gluegen-20080421.tar.bz2 1044951 SHA256 15ef8f499afc2256615bf453b318fbc22fbe146293ca4c6ca87c98577bf5a026 SHA512 3bffb55ec8723ac452b38d41f1bc596ee3065b1f791b8c7aec06d8acffdfd83d81553d9090fc273b56fa748b501f3a25f8dc4736bad291bc77f15d211957470d WHIRLPOOL 6171345011955517e84c9b82d187e2fe0c96fc1733ee6427248159fd8456472ea15c9cd223bd784a33478a4cfc568ddcfd73ea0addd13daa1b483b7a8cfe66c1
DIST gluegen-v2.0-rc8.tar.7z 35196696 SHA256 8cae313dfe03d13cdd165aa7d9e698897affae290e7ce7c4a27479fe6522c0dc SHA512 9845246f9776139cd205f197203349eba28150d5018bd086e6f7484df765b4cd122d78fbf836780a10b0d6395c645eb8ec7a256b8f832453c0b20155a11b3a0f WHIRLPOOL 427d6ef990a0702b81a4f62a74dce628594144507392cb8d25b5af5cbeca186faef987c809eeb1faf5d99b8f867213c7786d43f4418f85d04ac68d96595b83b3
@@ -0,0 +1,17 @@
diff --git a/gluegen-2.1.4_rc01/make/build.xml b/gluegen-2.1.4_rc01/make/build.xml
index 55ef270..bce6d12 100644
--- a/gluegen-2.1.4_rc01/make/build.xml
+++ b/gluegen-2.1.4_rc01/make/build.xml
@@ -806,12 +806,6 @@
</fileset>
</jar>
- <!-- Copy antlr.jar into build directory for convenience so
- gluegen.jar can be run via "java -jar". antlr.jar is
- referenced via a Class-Path entry in the Manifest of
- gluegen.jar. -->
- <copy file="${antlr.jar}" todir="${build}" />
-
<!-- copy a jnlp with empty codebase into build folder for local testing
overwrite property in gluegen.proerpties if desired -->
<property name="gluegen.jnlp.codebase" value=""/>
@@ -0,0 +1,22 @@
diff --git a/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml b/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml
index 8b8b82e..ec39aeb 100755
--- a/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml
+++ b/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml
@@ -1511,17 +1511,6 @@
- Helper strip.libraries for stripping off debug information
-->
<target name="gluegen.cpptasks.striplibs" depends="gluegen.cpptasks.initialize" if="c.strip.libraries">
- <echo message="Strip symbols from libs in ${libdir}" />
- <apply dir="${libdir}" executable="${c.strip.tool}" parallel="false"
- failonerror="true">
- <arg line="${c.strip.args}"/>
- <fileset dir="${libdir}">
- <include name="**/*.so"/> <!-- unix -->
- <include name="**/*.dll"/> <!-- windows -->
- <include name="**/*.dylib"/> <!-- macosx -->
- <include name="**/*.jnilib"/> <!-- macosx -->
- </fileset>
- </apply>
</target>
<!-- ================================================================== -->
@@ -0,0 +1,16 @@
diff --git a/gluegen-2.1.4_rc01/make/build-test.xml b/gluegen-2.1.4_rc01/make/build-test.xml
index 31dc773..e872a0a 100644
--- a/gluegen-2.1.4_rc01/make/build-test.xml
+++ b/gluegen-2.1.4_rc01/make/build-test.xml
@@ -614,9 +614,11 @@ chmod 644 ${results}/* \${line.separator}
<!-- updates / create the test results zip file -->
<target name="test-zip-archive" depends="init">
+ <!--
<archive.7z destfile="${build}/${test.archive.name}.7z"
basedir="${project.root}"
includes="${rootrel.build}/test/results ${rootrel.build}/test/results-x64 ${rootrel.build}/test/results-x32" />
+ -->
</target>
@@ -0,0 +1,17 @@
diff --git a/gluegen-2.1.4_rc01/make/build.xml b/gluegen-2.1.4_rc01/make/build.xml
index 55ef270..bce6d12 100644
--- a/gluegen-2.1.4_rc01/make/build.xml
+++ b/gluegen-2.1.4_rc01/make/build.xml
@@ -806,12 +806,6 @@
</fileset>
</jar>
- <!-- Copy antlr.jar into build directory for convenience so
- gluegen.jar can be run via "java -jar". antlr.jar is
- referenced via a Class-Path entry in the Manifest of
- gluegen.jar. -->
- <copy file="${antlr.jar}" todir="${build}" />
-
<!-- copy a jnlp with empty codebase into build folder for local testing
overwrite property in gluegen.proerpties if desired -->
<property name="gluegen.jnlp.codebase" value=""/>
@@ -0,0 +1,22 @@
diff --git a/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml b/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml
index 8b8b82e..ec39aeb 100755
--- a/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml
+++ b/gluegen-2.1.4_rc01/make/gluegen-cpptasks-base.xml
@@ -1511,17 +1511,6 @@
- Helper strip.libraries for stripping off debug information
-->
<target name="gluegen.cpptasks.striplibs" depends="gluegen.cpptasks.initialize" if="c.strip.libraries">
- <echo message="Strip symbols from libs in ${libdir}" />
- <apply dir="${libdir}" executable="${c.strip.tool}" parallel="false"
- failonerror="true">
- <arg line="${c.strip.args}"/>
- <fileset dir="${libdir}">
- <include name="**/*.so"/> <!-- unix -->
- <include name="**/*.dll"/> <!-- windows -->
- <include name="**/*.dylib"/> <!-- macosx -->
- <include name="**/*.jnilib"/> <!-- macosx -->
- </fileset>
- </apply>
</target>
<!-- ================================================================== -->
@@ -0,0 +1,16 @@
diff --git a/gluegen-2.1.4_rc01/make/build-test.xml b/gluegen-2.1.4_rc01/make/build-test.xml
index 31dc773..e872a0a 100644
--- a/gluegen-2.1.4_rc01/make/build-test.xml
+++ b/gluegen-2.1.4_rc01/make/build-test.xml
@@ -614,9 +614,11 @@ chmod 644 ${results}/* \${line.separator}
<!-- updates / create the test results zip file -->
<target name="test-zip-archive" depends="init">
+ <!--
<archive.7z destfile="${build}/${test.archive.name}.7z"
basedir="${project.root}"
includes="${rootrel.build}/test/results ${rootrel.build}/test/results-x64 ${rootrel.build}/test/results-x32" />
+ -->
</target>
@@ -0,0 +1,62 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
WANT_ANT_TASKS="ant-antlr"
JAVA_PKG_IUSE=""
inherit java-pkg-2 java-ant-2
DESCRIPTION="Automatically generate the JNI code necessary to call C libraries"
HOMEPAGE="http://jogamp.org/gluegen/www/"
# svn export -r "{2009-05-09}" https://gluegen.dev.java.net/svn/gluegen/trunk
# gluegen --username xxx --password xxx
SRC_URI="http://dev.gentoo.org/~ali_bush/distfiles/${PN}-${PV#1_p}.tar.bz2"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="
>=virtual/jre-1.4
dev-java/antlr:0"
DEPEND="
>=virtual/jdk-1.4
dev-java/ant-core:0
dev-java/antlr:0
dev-java/cpptasks:0"
S="${WORKDIR}/${PN}-${PV#1_p}"
java_prepare() {
rm make/lib/{cdc_fp,cpptasks}.jar
java-pkg_jar-from --build-only --into make/lib cpptasks
sed -i -e 's/suncc/sunc89/g' make/${PN}-cpptasks.xml || die
java-ant_rewrite-classpath "make/build.xml"
sed -i -e 's/\(<target name="generate.c[^"]*" \)/\1 depends="init"/g' \
make/build.xml || die
}
src_compile() {
cd make || dir "Unable to enter make directory"
local antflags="-Dantlr.jar=$(java-pkg_getjars antlr)"
local gcp="$(java-pkg_getjars --build-only ant-core):$(java-config --tools)"
ANT_TASKS="${WANT_ANT_TASKS}" eant ${antflags} -Dgentoo.classpath="${gcp}" all
}
src_install() {
cd build || dir "Unable to enter build directory"
#build copies system antlr.jar here.
#So we just need to replace it.
rm "${PN}-rt-natives"*.jar || die
java-pkg_dojar *.jar
java-pkg_doso obj/*.so
#If we are going to install the source
#use source && java-pkg_dosrc src
}
+82
View File
@@ -0,0 +1,82 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
MY_PV=v${PV/_/-}
MY_P=${PN}-${MY_PV}
DESCRIPTION="Automatically generate the 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 ~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
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
}
+68
View File
@@ -0,0 +1,68 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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="http://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
}
+68
View File
@@ -0,0 +1,68 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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="http://jogamp.org/gluegen/www/"
SRC_URI="https://github.com/sgothel/gluegen/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="BSD"
SLOT="2.2"
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
}
+19
View File
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
GlueGen is a tool which automatically generates the Java and JNI code necessary
to call C libraries. It reads as input ANSI C header files and separate
configuration files which provide control over many aspects of the glue code
generation. GlueGen uses a complete ANSI C parser and an internal representation
(IR) capable of representing all C types to represent the APIs for which it
generates interfaces. It has the ability to perform significant transformations
on the IR before glue code emission. GlueGen is currently powerful enough to
bind even low-level APIs such as the Java Native Interface (JNI) and the AWT
Native Interface (JAWT) back up to the Java programming language.
</longdescription>
<upstream>
<remote-id type="github">sgothel/gluegen</remote-id>
</upstream>
</pkgmetadata>
+1
View File
@@ -0,0 +1 @@
DIST jeuclid-parent-3.1.9-src.zip 8858746 SHA256 80bddad60c02bb55d430cab78818c3a43223877c62bc71f1c7326e2ff8fbe362 SHA512 ae55ffa469664abbf5545479d7968fd36e003ccc3f21687a43e79d843d6d3855b779ebeca3d38cc0c4a466c2de21bffce8e7d14cb2199f57e125b58ac100f203 WHIRLPOOL 610e7dad58bece09eb1b0caec06de1c9afbb8bfaa9639c78c30b64b60d17029c8ed8d58c96b89d8f395a8fcab2025d274e781ed4b3dcb7ba7ed738375f299e88
@@ -0,0 +1,18 @@
Index: jeuclid-parent-3.1.9/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java
===================================================================
--- jeuclid-parent-3.1.9.orig/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java 2010-02-12 15:10:32.000000000 +0100
+++ jeuclid-parent-3.1.9/jeuclid-core/src/main/java/net/sourceforge/jeuclid/converter/ConverterRegistry.java 2013-08-20 14:55:16.000000000 +0200
@@ -52,10 +52,10 @@
*/
@SuppressWarnings("unchecked")
protected ConverterRegistry() {
- final Iterator<ConverterDetector> it = Service
- .providers(ConverterDetector.class);
+ final Iterator<Object> it = Service
+ .providers(ConverterDetector.class);
while (it.hasNext()) {
- final ConverterDetector det = it.next();
+ final ConverterDetector det = (ConverterDetector) it.next();
det.detectConversionPlugins(this);
}
}
@@ -0,0 +1,10 @@
--- build.xml.orig 2010-01-22 17:46:35.000000000 +0000
+++ build.xml 2010-01-22 17:49:07.000000000 +0000
@@ -113,6 +113,7 @@
<src>
<pathelement location="src/main/java"/>
</src>
+ <exclude name="**/FreeHep*" />
<classpath refid="libs-build-classpath"/>
</javac>
<copy todir="${build.output}">
@@ -0,0 +1,50 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="source"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Core module of MathML rendering solution"
HOMEPAGE="http://jeuclid.sourceforge.net/"
SRC_URI="mirror://sourceforge/jeuclid/jeuclid-parent-${PV}-src.zip"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEPEND="dev-java/ant-core
dev-java/batik:1.8=
dev-java/commons-logging
dev-java/jcip-annotations
dev-java/xml-commons-external:1.3
dev-java/xmlgraphics-commons:2"
RDEPEND=">=virtual/jre-1.5
${COMMON_DEPEND}"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip
${COMMON_DEPEND}"
S="${WORKDIR}/jeuclid-parent-${PV}/${PN}"
src_prepare() {
epatch "${FILESDIR}"/${PN}-no-freehep.patch \
"${FILESDIR}"/${PN}-cast-issue.patch
# create directory for dependencies
mkdir lib && cd lib || die
# add dependencies into the lib dir
java-pkg_jar-from ant-core ant.jar
java-pkg_jar-from batik-1.8 batik-all.jar
java-pkg_jar-from commons-logging,jcip-annotations,xml-commons-external-1.3
java-pkg_jar-from xml-commons-external-1.3,xmlgraphics-commons-2
}
src_install() {
java-pkg_dojar target/${PN}.jar
}
+18
View File
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
JEuclid is a complete MathML rendering solution, consisting of:
* A MathViewer application
* Command line converters from MathML to other formats
* An ant task for automated conversion
* Display components for AWT and Swing
* A component for Apache Cocoon
This package contains the basic JEuclid rendering and document
handling classes.
</longdescription>
<upstream>
<remote-id type="sourceforge">jeuclid</remote-id>
</upstream>
</pkgmetadata>
+3
View File
@@ -0,0 +1,3 @@
DIST jgraphx-1.4.1.0.zip 4052749 SHA256 086cd3de7d2b381a61f5a7d5eea19e80d3f1f1aaff9642d2b9e582d86a312f59 SHA512 c9d5482abb4876632a794a0c0ea4c7ec1a963ebdc72e7efc9be1ce0ed44edb589879caf3017cc626fbe51e0f8c46ff94c62966c5c242099b1f76c0f63bec58b3 WHIRLPOOL 45a631f91ecc97d0c507953b48f83675c8c8a2d3a588bc231aa3dd4d01f58924cbd85ca3b2f985f8c96ccb69784164bc076f7c153dbea94fc16c1aa6df9b06f1
DIST jgraphx-1.8.0.6.zip 4216848 SHA256 237035982616769f0c15b805b4ce12616915498a5995fbdae814b97f434c860d SHA512 07985168625f094a8de9ab0e5c6050dd1a5d537b21eb6c73e468ad21db2758ac78a272dfedf22b94585eff4f77288ad99f8f1b70b18462754f0f3048ad06e40f WHIRLPOOL 403b784bdf934fc4a6aae643badb4380279bd15ea87520d6df0ed3d3ed58b020d3f0f979e9d2a2de338256bbdb5793e1e9d50634c60e83d104ceb88b96fcefba
DIST jgraphx-2.5.0.3.zip 4462094 SHA256 a5641fa8f38af2adf3b0ca97efeda7ae0297385f460be6053e2f3c69fd122885 SHA512 2cdc86c61409f4bba0c25c02dafb26fc6d76a127b584f92d380baa610715ad5e2034c43c1d912f3d7eca4c03464fedcf01573a3dad4fa184c365ff4fc0b2b7ea WHIRLPOOL 3ed084e4804089fe3724f4139d45078101a1b49e2f94b17639bc508db2afb4d1ce12bc599b1c40de416832b77a4e2437dcbe6dde48a4d895432278e629b18be4
+46
View File
@@ -0,0 +1,46 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2 versionator
MY_PV=$(replace_all_version_separators '_')
DESCRIPTION="Open-source graph component for Java"
HOMEPAGE="http://www.jgraph.com"
SRC_URI="http://www.jgraph.com/downloads/jgraphx/archive/${PN}-${MY_PV}.zip -> ${P}.zip"
SLOT="0"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples source"
DEPEND="
>=virtual/jdk-1.5
app-arch/unzip"
RDEPEND=">=virtual/jre-1.5"
S="${WORKDIR}/${PN}"
src_prepare() {
# don't do javadoc always
sed -i \
-e 's/depends="doc"/depends="compile"/' \
build.xml || die "sed failed"
rm -rf doc/api lib/jgraphx.jar || die
}
EANT_BUILD_TARGET="build"
EANT_DOC_TARGET="doc"
src_install() {
java-pkg_dojar lib/${PN}.jar
use doc && java-pkg_dojavadoc docs/api
use source && java-pkg_dosrc src/org
use examples && java-pkg_doexamples examples
}
+46
View File
@@ -0,0 +1,46 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2 versionator
MY_PV=$(replace_all_version_separators '_')
DESCRIPTION="Open-source graph component for Java"
HOMEPAGE="http://www.jgraph.com"
SRC_URI="http://www.jgraph.com/downloads/jgraphx/archive/${PN}-${MY_PV}.zip -> ${P}.zip"
SLOT="1.8"
LICENSE="BSD"
KEYWORDS="~amd64 ~x86"
IUSE="doc examples source"
DEPEND="
>=virtual/jdk-1.5
app-arch/unzip"
RDEPEND=">=virtual/jre-1.5"
S="${WORKDIR}/${PN}"
src_prepare() {
# don't do javadoc always
sed -i \
-e 's/depends="doc"/depends="compile"/' \
build.xml || die "sed failed"
rm -rf doc/api lib/jgraphx.jar || die
}
EANT_BUILD_TARGET="build"
EANT_DOC_TARGET="doc"
src_install() {
java-pkg_dojar lib/${PN}.jar
use doc && java-pkg_dojavadoc docs/api
use source && java-pkg_dosrc src/org
use examples && java-pkg_doexamples examples
}
+42
View File
@@ -0,0 +1,42 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2 versionator
MY_PV=$(replace_all_version_separators '_')
DESCRIPTION="Open-source graph component for Java"
SRC_URI="http://www.jgraph.com/downloads/jgraphx/archive/${PN}-${MY_PV}.zip\
-> ${P}.zip"
HOMEPAGE="http://www.jgraph.com"
IUSE="doc examples source"
DEPEND=">=virtual/jdk-1.5
app-arch/unzip"
RDEPEND=">=virtual/jre-1.5"
LICENSE="BSD"
SLOT="2.5"
KEYWORDS="~amd64 ~x86"
S="${WORKDIR}/${PN}"
src_prepare() {
# don't do javadoc always
sed -i \
-e 's/depends="doc"/depends="compile"/' \
build.xml || die "sed failed"
rm -rf doc/api lib/jgraphx.jar || die
}
EANT_BUILD_TARGET="build"
EANT_DOC_TARGET="doc"
src_install() {
java-pkg_dojar lib/${PN}.jar
use doc && java-pkg_dojavadoc docs/api
use source && java-pkg_dosrc src/org
use examples && java-pkg_doexamples examples
}
+16
View File
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
JGraph X is based on the mxGraph architecture, a re-designed core
based on JGraph experience.
Overall, JGraph X provides more features that JGraph, with a far
smaller code size and complexity. Redesigning the codebase from
scratch now means implementing common feature extensions are easier
and require less coding. A number of new loosely coupled
application-centric features have been added, making prototyping
even faster, without their usage restricting application
flexibility.
</longdescription>
</pkgmetadata>
+1
View File
@@ -0,0 +1 @@
DIST jlatexmath-fop-src-1.0.3.zip 115024 SHA256 94041ec9a6f26d7b9a9e8df609377ae699daeda7fc81ce1359adf9c2dd506e11 SHA512 92e81ab2c2a14cd9ac935028f6cd4370de5925f919e41fb94290a331660e2ea983ab3ca7a5fe7e5fd7c6a2caf34a4bae7ee45c0efc33b4ac0f154f16465c37f8 WHIRLPOOL b2cd05e2c8ae8bdd762e1f7bbe84f8bfeaec15db91bfa32f2778b13a3b39d9fcf4a229f315360e5b0887e3f9583ae5c5b5174ad34079fbdb7027bbc4d567fb53
@@ -0,0 +1,13 @@
diff -urN work-orig/build.xml work/build.xml
--- work-orig/build.xml 2013-04-23 20:42:19.776644942 -0400
+++ work/build.xml 2013-04-23 20:42:36.821646638 -0400
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="jlatexmath-fop" basedir="." default="buildJar">
- <import file="${basedir}/../../version.xml"/>
- <property file="../../fop.properties"/>
+ <import file="${basedir}/version.xml"/>
+ <property file="fop.properties"/>
<path id="libs-build-classpath">
<pathelement location="${fop.jar}"/>
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="version_jlm">
<property name="version" value="1.0.3" />
<property name="java_version" value="5" />
</project>
@@ -0,0 +1,45 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="examples source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="jlatexmath plugin for dev-java/fop"
HOMEPAGE="http://forge.scilab.org/index.php/p/jlatexmath"
SRC_URI="http://forge.scilab.org/upload/jlatexmath/files/${PN}-src-${PV}.zip"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="~amd64 ~x86"
IUSE=""
CDEPEND="dev-java/jlatexmath:1
dev-java/xmlgraphics-commons:2
>=dev-java/fop-2.0-r1:0"
DEPEND=">=virtual/jdk-1.5
${CDEPEND}"
RDEPEND=">=virtual/jre-1.5
${CDEPEND}"
EANT_BUILD_TARGET="buildJar"
S="${WORKDIR}"
src_prepare() {
epatch "${FILESDIR}/${P}-fixpaths.patch"
cp "${FILESDIR}/version.xml" "${S}" || die
echo "fop.jar=$(java-pkg_getjar fop fop.jar)
xmlgraphics-commons.jar=$(java-pkg_getjar xmlgraphics-commons-2 xmlgraphics-commons.jar)
jlatexmath.jar=$(java-pkg_getjar jlatexmath-1 jlatexmath.jar)" \
>>fop.properties || die
}
src_install() {
java-pkg_newjar dist/${P}.jar ${PN}.jar
use source && java-pkg_dosrc src/org
use examples && java-pkg_doexamples examples
}
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
LaTeXmath library provides a set of Java classes for displaying
(complex) mathematical formulas as part of a Java application with
LateX style. This package installs the plugin for dev-java/fop.
</longdescription>
</pkgmetadata>
+1
View File
@@ -0,0 +1 @@
DIST jlatexmath-src-1.0.3.zip 1086238 SHA256 0fe03efacbd82cf1b1b0d449cf94e3173b896eef78a6d458b8a6bce4c7cc84e3 SHA512 85c71568b5bffd897338e7c3fd03be0c0f52fc0543b5d91f54453f20f3f4ec41225cb356667dbaca86df673db1b7ac8afc2b16e57db981ec8037143e26521e82 WHIRLPOOL 76a2a40f9c1f4c1fd52e801e95f13b6bc41e857e2002c3c469600d1ff14f1a34139fe542a380f2431fff4022bb1c91dd01cae2d9fcfee205aebe2d584079edf3
@@ -0,0 +1,32 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc examples source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="A Java API to render LaTeX"
HOMEPAGE="http://forge.scilab.org/index.php/p/jlatexmath"
SRC_URI="http://forge.scilab.org/upload/jlatexmath/files/${PN}-src-${PV}.zip"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=">=virtual/jdk-1.5
app-arch/unzip"
RDEPEND=">=virtual/jre-1.5"
EANT_BUILD_TARGET="buildJar"
EANT_DOC_TARGET="doc"
src_install() {
java-pkg_newjar dist/"${P}.jar" "${PN}.jar"
use doc && java-pkg_dojavadoc doc
use source && java-pkg_dosrc src/org
use examples && java-pkg_doexamples examples
}
+10
View File
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<longdescription lang="en">
LaTeXmath library provides a set of Java classes for displaying
(complex) mathematical formulas as part of a Java application with
LateX style.
</longdescription>
</pkgmetadata>
+5 -1
View File
@@ -1 +1,5 @@
DIST jogl-1.1.1-src.zip 3638019 SHA256 dbd34718f15e6f45deb2d96bc328c3d54aa2f3a2160a4593997506c837d859a0
DIST jogl-1.1.1-src.zip 3638019 SHA256 dbd34718f15e6f45deb2d96bc328c3d54aa2f3a2160a4593997506c837d859a0 SHA512 bb0b20f5da43fe514ef3db85d7d270f74762a97b170e272270b9ce752912ebd393f7b9cc25cdb23c9b4316a51115de9c8762ef1bc3c8f626e509fbd49f3817ab WHIRLPOOL ac6bdbd0567c40f6a388d18b6398add17b82d4b980b221a52fef6af1fa7060d1407b2e02fd97941d64690584aeb504c7339c839c9ec85ccf1a8eb7c68c9496e1
DIST jogl-1.1.1a-src.zip 3656870 SHA256 84fa71520fb186ce7a7b2818210a1a3667fcdfb1545e673b3cbe51bac6ba9113 SHA512 6de4273594c3bb4f17a629647a78619ba00d5998fa35cb25ee220e402059647b2c8fd111f1abdada9a78998d1b73052f1b432ed95220d1966e73cb50295b66bf WHIRLPOOL 077abf5829851aa40e5240c59f2f8dbc93fa7e67241109c2e7d435b1043013864788db88a1216ac950e0e80e1393fb8804505fda26a0af1c8ce079ce2644fa45
DIST jogl-2.1.4.tar.gz 32070918 SHA256 528c89643e532c6649f9243dd0cb0ee75800ab13e4f8d9a830163475dd1d5b0e SHA512 9d9f45676f671b1958352fcb7ddb4db539f19fb330db0146df6ce46167bcebf9c4fdc1a09bce72451a4bf2f4632a69cad2b4dd56df61c78f5e26e85a50918a0b WHIRLPOOL be0e9d4bc81b31a22050795b1b8e7f48c17e7c204c32ef0e47eca9175174f2f80a8ee3c0a024e744f692970b871dae0206ffd39e4f7db44a54a11720a54ed5a3
DIST jogl-2.2.4.tar.gz 50214295 SHA256 48f2e11a8ee2dac3f9f34379b8729c0fa379d95bd1233d82a8260ccd81ef0e11 SHA512 79fb054d65e8aa532a75e8c8911f43987d877f7b71584ea24cc0f9152f8aaaddabd4afef7f7504b3df73c4d240bedc123bb8aeb8670d9ae2bd165bd0490e420e WHIRLPOOL d3cfcf38aafe3f0d8f5fe8d4c8b5b19cd4d4137e160575d825d0be1fe3f992608c13eb4bb43ffecd4836083d77afb97caa6725156ad9cfcdd662224aa9439445
DIST jogl-v2.0-rc8.tar.7z 18148821 SHA256 6d2338514b2e6c7ac61c59e0142d95d6b37434eefafecbbc2a8102f23f4f3e93 SHA512 ce335990dac4c868705f9cd041cab2e97050efcd9b6b0a8fa01e070aa7ee2f27162cb96ebbbd5e9f04a1aa9e7661dde6aa0ba1d02565f38fa76a39deeb48a500 WHIRLPOOL e38c1a7d6727f7dd8765d085ce2388afd7070c0625491038e84d26b8e14bb7fdaa5a89e75f742b5c30500cb02a198c5226d5ee743b1347acd31c6e555d281777
+80
View File
@@ -0,0 +1,80 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
WANT_ANT_TASKS="ant-antlr"
JAVA_PKG_IUSE="cg source doc"
inherit eutils java-pkg-2 java-ant-2
DESCRIPTION="Java(TM) Binding fot the OpenGL(TM) API"
HOMEPAGE="https://jogl.dev.java.net/"
SRC_URI="http://download.java.net/media/${PN}/builds/archive/jsr-231-${PV}/${P}-src.zip"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
COMMON_DEPEND="
dev-java/ant-core
>=dev-java/cpptasks-1.0_beta4-r2
dev-java/gluegen:0
virtual/opengl
x11-libs/libX11
x11-libs/libXxf86vm
cg? ( media-gfx/nvidia-cg-toolkit )"
DEPEND="
app-arch/unzip
>=virtual/jdk-1.4
${COMMON_DEPEND}"
RDEPEND="
>=virtual/jre-1.4
${COMMON_DEPEND}"
S="${WORKDIR}/${PN}"
java_prepare() {
epatch "${FILESDIR}/1.1.0/uncouple-gluegen.patch"
cd "${S}/make" || die
mv build.xml build.xml.bak || die
sed 's_/usr/X11R6_/usr_g' build.xml.bak > build.xml || die
sed -i -e 's/suncc/gcc/g' build.xml ../../gluegen/make/gluegen-cpptasks.xml || die
rm -R "${S}/build/gensrc/classes/javax" || die
cd "${WORKDIR}/gluegen/make/lib" || die
rm -v *.jar || die
java-pkg_jar-from cpptasks
}
src_compile() {
cd make/ || die
local antflags="-Dgluegen.prebuild=true"
antflags="${antflags} -Dantlr.jar=$(java-pkg_getjars --build-only antlr)"
local gcp="$(java-pkg_getjars ant-core):$(java-config --tools)"
local gluegen="-Dgluegen.jar=$(java-pkg_getjar gluegen gluegen.jar)"
local gluegenrt="-Dgluegen-rt.jar=$(java-pkg_getjar gluegen gluegen-rt.jar)"
use cg && antflags="${antflags} -Djogl.cg=1 -Dx11.cg.lib=/usr/lib"
# -Dbuild.sysclasspath=ignore fails with missing ant dependencies.
export ANT_OPTS="-Xmx1g"
eant \
-Dgentoo.classpath="${gcp}" \
${antflags} "${gluegen}" "${gluegenrt}" \
all $(use_doc)
}
src_install() {
use source && java-pkg_dosrc src/classes/*
java-pkg_doso build/obj/*.so
java-pkg_dojar build/*.jar
use doc && java-pkg_dojavadoc javadoc_public
}
+96
View File
@@ -0,0 +1,96 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
JAVA_PKG_IUSE="doc source"
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"
LICENSE="BSD"
SLOT="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
=dev-java/gluegen-${PV}:${SLOT}
dev-java/junit:4
dev-java/swt:3.7
x11-libs/libX11
x11-libs/libXxf86vm
virtual/opengl
cg? ( media-gfx/nvidia-cg-toolkit )"
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"
S=${WORKDIR}/${MY_P}
src_unpack() {
default
unpack ./${MY_P}.tar
}
java_prepare() {
find -name '*.jar' -exec rm -v {} + || die
# Empty filesets are never out of date!
sed -i -e 's/<outofdate>/<outofdate force="true">/' make/build*xml || die
}
JAVA_PKG_BSFIX_NAME+=" build-jogl.xml build-nativewindow.xml build-newt.xml build-test.xml"
JAVA_ANT_REWRITE_CLASSPATH="yes"
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
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 source && java-pkg_dosrc src/jogl/classes/*
}
+73
View File
@@ -0,0 +1,73 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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/*
}
+70
View File
@@ -0,0 +1,70 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
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
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.2"
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 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() {
#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/*
}
+15
View File
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
<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>
+1
View File
@@ -0,0 +1 @@
DIST jrosetta-1.0.4-sources.jar 94931 SHA256 23c1631769a8715110af1b8449d0e810f8161d9a609d69fb2fe8546903ebfd9b SHA512 84b613a0dc6e3ca80414aba8f7c8cf044f013d27ed27c0f18fdbea056a6358c849ee193e3ab7320ffa7368fa17f255d4390fc306e8aa2c0ad70de51f36b6e878 WHIRLPOOL aa3243fbcc93bf0ad75388a1f9e9aa86ca0ff30242ecdb345e08e8036e2bbbde6761aaad4033477933fb0c093a1d880194ca15579a2fbd8840517f3771d7a474
+262
View File
@@ -0,0 +1,262 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Any modifications will be overwritten. -->
<!-- -->
<!-- Generated by Maven Ant Plugin on 4/12/12 2:43 PM -->
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<project name="jrosetta-api-from-maven" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="${user.home}/.m2/maven.properties"/>
<property file="maven-build.properties"/>
<property name="maven.build.finalName" value="jrosetta-api-1.0.4"/>
<property name="maven.build.dir" value="target"/>
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
<property name="maven.build.srcDir.0" value="src/main/java"/>
<property name="maven.build.resourceDir.0" value="src/main/resources"/>
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
<property name="maven.build.testDir.0" value="src/test/java"/>
<property name="maven.build.testResourceDir.0" value="src/test/resources"/>
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
<property name="maven.settings.offline" value="true"/>
<property name="maven.settings.interactiveMode" value="true"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath"/>
<path id="build.test.classpath">
<pathelement location="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"/>
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${maven.build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" depends="get-deps" description="Compile the code">
<mkdir dir="${maven.build.outputDir}"/>
<javac destdir="${maven.build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="1.6"
verbose="false"
fork="false"
source="1.6">
<src>
<pathelement location="${maven.build.srcDir.0}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
<copy todir="${maven.build.outputDir}">
<fileset dir="${maven.build.resourceDir.0}"/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="maven.test.skip">
<mkdir dir="${maven.build.testOutputDir}"/>
<javac destdir="${maven.build.testOutputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="1.6"
verbose="false"
fork="false"
source="1.6">
<src>
<pathelement location="${maven.build.testDir.0}"/>
</src>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${maven.build.outputDir}"/>
</classpath>
</javac>
<copy todir="${maven.build.testOutputDir}">
<fileset dir="${maven.build.testResourceDir.0}"/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${maven.build.outputDir}"/>
<pathelement location="${maven.build.testOutputDir}"/>
</classpath>
<batchtest todir="${maven.test.reports}" unless="test">
<fileset dir="${maven.build.testDir.0}">
<include name="**/Test*.java"/>
<include name="**/*Test.java"/>
<include name="**/*TestCase.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
<batchtest todir="${maven.test.reports}" if="test">
<fileset dir="${maven.build.testDir.0}">
<include name="**/${test}.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${maven.test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${maven.test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${maven.build.srcDir.0}"
packagenames="*"
destdir="${maven.reporting.outputDirectory}/apidocs"
access="protected"
old="false"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="false"
breakiterator="false"/>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application">
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
compress="true"
index="false"
basedir="${maven.build.outputDir}"
excludes="**/package.html">
<manifest>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
<!-- ====================================================================== -->
<!-- Download dependencies target -->
<!-- ====================================================================== -->
<target name="test-offline">
<condition property="maven.mode.offline">
<equals arg1="${maven.settings.offline}" arg2="true"/>
</condition>
</target>
<target name="get-deps"
depends="test-offline"
description="Download all dependencies"
unless="maven.mode.offline">
<mkdir dir="${maven.repo.local}"/>
<mkdir dir="${maven.repo.local}/junit/junit/4.10"/>
<get src="http://maven.artenum.com/content/groups/public/junit/junit/4.10/junit-4.10.jar"
dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.jar"
dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/>
<get src="http://maven.artenum.com/content/groups/public/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
</target>
</project>
+74
View File
@@ -0,0 +1,74 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Any modifications will be overwritten. -->
<!-- -->
<!-- Generated by Maven Ant Plugin on 4/12/12 2:43 PM -->
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<project name="jrosetta-from-maven" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<ant antfile="build.xml" dir="modules/jrosetta-api" target="clean"/>
<ant antfile="build.xml" dir="modules/jrosetta-engine" target="clean"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" description="Compile the code">
<ant antfile="build.xml" dir="modules/jrosetta-api" target="compile"/>
<ant antfile="build.xml" dir="modules/jrosetta-engine" target="compile"/>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests" description="Compile the test code">
<ant antfile="build.xml" dir="modules/jrosetta-api" target="compile-tests"/>
<ant antfile="build.xml" dir="modules/jrosetta-engine" target="compile-tests"/>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test" description="Run the test cases">
<ant antfile="build.xml" dir="modules/jrosetta-api" target="test"/>
<ant antfile="build.xml" dir="modules/jrosetta-engine" target="test"/>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<ant antfile="build.xml" dir="modules/jrosetta-api" target="javadoc"/>
<ant antfile="build.xml" dir="modules/jrosetta-engine" target="javadoc"/>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" description="Package the application">
<ant antfile="build.xml" dir="modules/jrosetta-api" target="package"/>
<ant antfile="build.xml" dir="modules/jrosetta-engine" target="package"/>
</target>
</project>
+274
View File
@@ -0,0 +1,274 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- Ant build file (http://ant.apache.org/) for Ant 1.6.2 or above. -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- ===================== - DO NOT EDIT THIS FILE! - ===================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Any modifications will be overwritten. -->
<!-- -->
<!-- Generated by Maven Ant Plugin on 4/12/12 2:43 PM -->
<!-- See: http://maven.apache.org/plugins/maven-ant-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<project name="jrosetta-engine-from-maven" default="package" basedir=".">
<!-- ====================================================================== -->
<!-- Build environment properties -->
<!-- ====================================================================== -->
<property file="${user.home}/.m2/maven.properties"/>
<property file="maven-build.properties"/>
<property name="maven.build.finalName" value="jrosetta-engine-1.0.4"/>
<property name="maven.build.dir" value="target"/>
<property name="maven.build.outputDir" value="${maven.build.dir}/classes"/>
<property name="maven.build.srcDir.0" value="src/main/java"/>
<property name="maven.build.resourceDir.0" value="src/main/resources"/>
<property name="maven.build.testOutputDir" value="${maven.build.dir}/test-classes"/>
<property name="maven.build.testDir.0" value="src/test/java"/>
<property name="maven.build.testResourceDir.0" value="src/test/resources"/>
<property name="maven.test.reports" value="${maven.build.dir}/test-reports"/>
<property name="maven.reporting.outputDirectory" value="${maven.build.dir}/site"/>
<property name="maven.repo.local" value="${user.home}/.m2/repository"/>
<property name="maven.settings.offline" value="true"/>
<property name="maven.settings.interactiveMode" value="true"/>
<!-- ====================================================================== -->
<!-- Defining classpaths -->
<!-- ====================================================================== -->
<path id="build.classpath">
<pathelement location="../jrosetta-api/target/classes"/>
</path>
<path id="build.test.classpath">
<pathelement location="${maven.repo.local}/com/artenum/jrosetta/jrosetta-api/1.0.4/jrosetta-api-1.0.4.jar"/>
<pathelement location="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"/>
<pathelement location="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"/>
</path>
<!-- ====================================================================== -->
<!-- Cleaning up target -->
<!-- ====================================================================== -->
<target name="clean" description="Clean the output directory">
<delete dir="${maven.build.dir}"/>
</target>
<!-- ====================================================================== -->
<!-- Compilation target -->
<!-- ====================================================================== -->
<target name="compile" depends="get-deps" description="Compile the code">
<mkdir dir="${maven.build.outputDir}"/>
<javac destdir="${maven.build.outputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="1.6"
verbose="false"
fork="false"
source="1.6">
<src>
<pathelement location="${maven.build.srcDir.0}"/>
</src>
<classpath refid="build.classpath"/>
</javac>
<copy todir="${maven.build.outputDir}">
<fileset dir="${maven.build.resourceDir.0}"/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Test-compilation target -->
<!-- ====================================================================== -->
<target name="compile-tests"
depends="compile"
description="Compile the test code"
unless="maven.test.skip">
<mkdir dir="${maven.build.testOutputDir}"/>
<javac destdir="${maven.build.testOutputDir}"
nowarn="false"
debug="true"
optimize="false"
deprecation="true"
target="1.6"
verbose="false"
fork="false"
source="1.6">
<src>
<pathelement location="${maven.build.testDir.0}"/>
</src>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${maven.build.outputDir}"/>
</classpath>
</javac>
<copy todir="${maven.build.testOutputDir}">
<fileset dir="${maven.build.testResourceDir.0}"/>
</copy>
</target>
<!-- ====================================================================== -->
<!-- Run all tests -->
<!-- ====================================================================== -->
<target name="test"
depends="compile-tests, junit-missing"
unless="junit.skipped"
description="Run the test cases">
<mkdir dir="${maven.test.reports}"/>
<junit printSummary="yes" haltonerror="true" haltonfailure="true" fork="true" dir=".">
<sysproperty key="basedir" value="."/>
<formatter type="xml"/>
<formatter type="plain" usefile="false"/>
<classpath>
<path refid="build.test.classpath"/>
<pathelement location="${maven.build.outputDir}"/>
<pathelement location="${maven.build.testOutputDir}"/>
</classpath>
<batchtest todir="${maven.test.reports}" unless="test">
<fileset dir="${maven.build.testDir.0}">
<include name="**/Test*.java"/>
<include name="**/*Test.java"/>
<include name="**/*TestCase.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
<batchtest todir="${maven.test.reports}" if="test">
<fileset dir="${maven.build.testDir.0}">
<include name="**/${test}.java"/>
<exclude name="**/*Abstract*Test.java"/>
</fileset>
</batchtest>
</junit>
</target>
<target name="test-junit-present">
<available classname="junit.framework.Test" property="junit.present"/>
</target>
<target name="test-junit-status"
depends="test-junit-present">
<condition property="junit.missing">
<and>
<isfalse value="${junit.present}"/>
<isfalse value="${maven.test.skip}"/>
</and>
</condition>
<condition property="junit.skipped">
<or>
<isfalse value="${junit.present}"/>
<istrue value="${maven.test.skip}"/>
</or>
</condition>
</target>
<target name="junit-missing"
depends="test-junit-status"
if="junit.missing">
<echo>=================================== WARNING ===================================</echo>
<echo> JUnit is not present in your $ANT_HOME/lib directory. Tests not executed.</echo>
<echo>===============================================================================</echo>
</target>
<!-- ====================================================================== -->
<!-- Javadoc target -->
<!-- ====================================================================== -->
<target name="javadoc" description="Generates the Javadoc of the application">
<javadoc sourcepath="${maven.build.srcDir.0}"
packagenames="*"
destdir="${maven.reporting.outputDirectory}/apidocs"
access="protected"
old="false"
verbose="false"
version="true"
use="true"
author="true"
splitindex="false"
nodeprecated="false"
nodeprecatedlist="false"
notree="false"
noindex="false"
nohelp="false"
nonavbar="false"
serialwarn="false"
charset="ISO-8859-1"
linksource="false"
breakiterator="false"/>
</target>
<!-- ====================================================================== -->
<!-- Package target -->
<!-- ====================================================================== -->
<target name="package" depends="compile,test" description="Package the application">
<jar jarfile="${maven.build.dir}/${maven.build.finalName}.jar"
compress="true"
index="false"
basedir="${maven.build.outputDir}"
excludes="**/package.html">
<manifest>
</manifest>
</jar>
</target>
<!-- ====================================================================== -->
<!-- A dummy target for the package named after the type it creates -->
<!-- ====================================================================== -->
<target name="jar" depends="package" description="Builds the jar for the application"/>
<!-- ====================================================================== -->
<!-- Download dependencies target -->
<!-- ====================================================================== -->
<target name="test-offline">
<condition property="maven.mode.offline">
<equals arg1="${maven.settings.offline}" arg2="true"/>
</condition>
</target>
<target name="get-deps"
depends="test-offline"
description="Download all dependencies"
unless="maven.mode.offline">
<mkdir dir="${maven.repo.local}"/>
<mkdir dir="${maven.repo.local}/com/artenum/jrosetta/jrosetta-api/1.0.4"/>
<get src="http://maven.artenum.com/content/groups/public/com/artenum/jrosetta/jrosetta-api/1.0.4/jrosetta-api-1.0.4.jar"
dest="${maven.repo.local}/com/artenum/jrosetta/jrosetta-api/1.0.4/jrosetta-api-1.0.4.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo.maven.apache.org/maven2/com/artenum/jrosetta/jrosetta-api/1.0.4/jrosetta-api-1.0.4.jar"
dest="${maven.repo.local}/com/artenum/jrosetta/jrosetta-api/1.0.4/jrosetta-api-1.0.4.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/junit/junit/4.10"/>
<get src="http://maven.artenum.com/content/groups/public/junit/junit/4.10/junit-4.10.jar"
dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo.maven.apache.org/maven2/junit/junit/4.10/junit-4.10.jar"
dest="${maven.repo.local}/junit/junit/4.10/junit-4.10.jar"
usetimestamp="false"
ignoreerrors="true"/>
<mkdir dir="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1"/>
<get src="http://maven.artenum.com/content/groups/public/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
<get src="http://repo.maven.apache.org/maven2/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
dest="${maven.repo.local}/org/hamcrest/hamcrest-core/1.1/hamcrest-core-1.1.jar"
usetimestamp="false"
ignoreerrors="true"/>
</target>
</project>
+40
View File
@@ -0,0 +1,40 @@
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit java-pkg-2 java-ant-2
DESCRIPTION="Common base for graphical component to build a graphical console"
HOMEPAGE="http://dev.artenum.com/projects/jrosetta"
#currently down
#SRC_URI="http://maven.artenum.com/content/groups/public/com/artenum/${PN}/${PV}/${P}-sources.jar"
SRC_URI="http://pkgs.fedoraproject.org/repo/pkgs/${PN}/${P}-sources.jar/5c3589d4207f71bad6eeefd4857bce50/${P}-sources.jar"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="
>=virtual/jdk-1.5:*
app-arch/unzip"
RDEPEND=">=virtual/jre-1.5:*"
EANT_BUILD_TARGET="compile package"
JAVA_ANT_BSFIX_EXTRA_ARGS="--maven-cleaning"
java_prepare () {
cp "${FILESDIR}/api-build.xml" modules/jrosetta-api/build.xml || die
cp "${FILESDIR}/engine-build.xml" modules/jrosetta-engine/build.xml || die
cp "${FILESDIR}/build.xml" . || die
echo "${PV}" > modules/jrosetta-engine/src/main/resources/version.txt || die
}
src_install () {
java-pkg_newjar "modules/jrosetta-api/target/jrosetta-api-${PV}.jar" \
jrosetta-api.jar
java-pkg_newjar "modules/jrosetta-engine/target/jrosetta-engine-${PV}.jar" \
jrosetta-engine.jar
}
+5
View File
@@ -0,0 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<herd>sci</herd>
</pkgmetadata>