diff options
author | 2012-09-06 17:48:53 +0300 | |
---|---|---|
committer | 2012-09-06 17:48:53 +0300 | |
commit | bf9a5e801623702d12f3722f25cbacf316ad9ffe (patch) | |
tree | 6b82e61ff7cc31e6151c96c5c7a9fd4d8f9cd0d9 | |
parent | add piccolo library copied from java-experimental (diff) | |
download | dmol-bf9a5e801623702d12f3722f25cbacf316ad9ffe.tar.gz dmol-bf9a5e801623702d12f3722f25cbacf316ad9ffe.tar.bz2 dmol-bf9a5e801623702d12f3722f25cbacf316ad9ffe.zip |
add annogen (jam) library
-rw-r--r-- | dev-java/annogen/Manifest | 3 | ||||
-rw-r--r-- | dev-java/annogen/annogen-0.1.0.ebuild | 58 | ||||
-rw-r--r-- | dev-java/annogen/metadata.xml | 7 |
3 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/annogen/Manifest b/dev-java/annogen/Manifest new file mode 100644 index 0000000..5221db1 --- /dev/null +++ b/dev-java/annogen/Manifest @@ -0,0 +1,3 @@ +DIST annogen-0.1.0.zip 1008931 SHA256 60cf2bed2bc90d366b2c8ad9f83cc4f4a8b205298bdf55c85fadcc4cd4e05246 SHA512 f5c4eeb92ef8c87874df6619ef701b99dace01bd3ebc87f201ee3ab523fe612b6d143da2646c280d4831bc8e3051887514aa06b8bad6928b68ddd6cd6357fa16 WHIRLPOOL 02c7bae1a7f06d6348bcf060c1e81896cc6e2861c2066323dd4a0716f8413321d8a4248040ab2b9924ca383022f06d66af79c408596ef19c002becbd9992e802 +EBUILD annogen-0.1.0.ebuild 1274 SHA256 56061bcdd0b410472feaf41e13e74d6d8394ff78a4aab0db106bec0b04fa25c3 SHA512 8d55d276dc0853d1b87afc9c2b76a5aa707486cf564671f0c37f999ea4769f82fa962f5fd19ea76433923c03a2ef7258e1eb5b8257722c6ca1d9b02204ff2f75 WHIRLPOOL af82ccb433fda8e9d3bcddb8757832661cc91cb3ff2e2d1b1cf76c16bf4bbc78d77c4b8726babcb06154b4425ce37e2793d10e02698af1e065a28a86be8c15e0 +MISC metadata.xml 205 SHA256 2ff0740a5424b0e10c7888541a248d1bd363a60911b0921b4cfe5c36590498ce SHA512 e7c77c724739d0af43cc338ded09dcbeee2a710eb0e49f1e656dc4c891bee85bfd6935bf70a191a1c5823f473643e676d64970416e5f1820ea466681016757c5 WHIRLPOOL 5b7f0c2a5243244fa06b072c8f0d9f53e7b6f45c7e1b74a0d945bdcc28b7137fddfd58e85b0d3e721e80963916ceae0d4cca59f48114ba26c47b24a91d6abb27 diff --git a/dev-java/annogen/annogen-0.1.0.ebuild b/dev-java/annogen/annogen-0.1.0.ebuild new file mode 100644 index 0000000..f040313 --- /dev/null +++ b/dev-java/annogen/annogen-0.1.0.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" +JAVA_PKG_IUSE="doc source examples" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Annogen is a tool which helps you work with JSR175 annotations" +HOMEPAGE="http://annogen.codehaus.org/" +SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}.zip" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +IUSE="" + +CDEPEND="java-virtuals/stax-api:0 + dev-java/ant-core:0 + java-virtuals/jdk-with-com-sun:0 + >=dev-java/qdox-1.6" + +RDEPEND=">=virtual/jdk-1.5 + ${CDEPEND}" +DEPEND=">=virtual/jdk-1.5 + app-arch/unzip + ${CDEPEND}" + +S="${WORKDIR}" + +src_unpack() { + default + unzip -o -q "${S}/${PN}-src-${PV}.zip" +} + +java_prepare() { + find -name '*.jar' -exec rm -v {} + +} + +src_compile() { + find org -name "*.java" > "${T}/src.list" + ejavac -d "${S}/classes" \ + -classpath $(java-pkg_getjars stax-api,qdox-1.6,ant-core):$(java-config --tools) \ + "@${T}/src.list" + cd "${S}/classes" + jar -cf "${S}/${PN}.jar" * || die "failed to create jar" +} + +src_install() { + java-pkg_dojar ${PN}.jar + #is it really needed? + #java-pkg_register-ant-task + use doc && java-pkg_dojavadoc docs + use source && java-pkg_dosrc org + use examples && java-pkg_doexamples "examples" +} diff --git a/dev-java/annogen/metadata.xml b/dev-java/annogen/metadata.xml new file mode 100644 index 0000000..80859ae --- /dev/null +++ b/dev-java/annogen/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>the.dmol@gmail.com</email> + </maintainer> +</pkgmetadata> |