diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-java/qdox |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-java/qdox')
-rw-r--r-- | dev-java/qdox/Manifest | 8 | ||||
-rw-r--r-- | dev-java/qdox/files/jflex-1.6.1.patch | 27 | ||||
-rw-r--r-- | dev-java/qdox/metadata.xml | 19 | ||||
-rw-r--r-- | dev-java/qdox/qdox-1.12.1-r1.ebuild | 83 | ||||
-rw-r--r-- | dev-java/qdox/qdox-1.6.3.ebuild | 47 |
5 files changed, 184 insertions, 0 deletions
diff --git a/dev-java/qdox/Manifest b/dev-java/qdox/Manifest new file mode 100644 index 000000000000..cdcbdd02f1a7 --- /dev/null +++ b/dev-java/qdox/Manifest @@ -0,0 +1,8 @@ +AUX jflex-1.6.1.patch 680 SHA256 aa7fc2512460d7b7b46a026a632ba6452b118acea541556628466aee84bba85f SHA512 73e8067a31392a1975877470a2a239c9ca0913f807faa3e5c660bc2487dca9a46c1753ab86526e66581111fcded89229a4e9e3a16fa787ce3669ef6c07a28081 WHIRLPOOL 50dbc986a3018940934a7da5ab681ec110b41a64a7750dde2a9ef447435fe3b03ee68a7efe7eddaa49f67bba5efe8438bd9b0bc13b92ee08c88056d28f73d790 +DIST qdox-1.12.1.tar.gz 519833 SHA256 6c716c013b27d79eff31de59ab69b734d6744c32548549aaf3e6875915172565 SHA512 17ac933854ebd0560921805ea4339c151a7fd095bf8d50d5d71e656afda77ba30efac7926cfcc7543e4a8420b12d1eb75cdd305c50d1c28ad8cd6b0f4d95f5c5 WHIRLPOOL 3e828d430637b18a8c91d273bb26b5ccf26f0f2556639b0af9ed3527eb28bb29de4d2dc8caaf07a0bbadef4001564db67eba63f0440d30e3b83da8f5e209bb41 +DIST qdox-1.6.3-sources.jar 63731 SHA256 7ddb3a75c1ab415c631ae39660679630653bbbed84895e5ed4b4775ce5327846 SHA512 0b05620809e3830c7e12c289cd4765f96d845adabc1f09497993bd9f39852784f454eb4aff1deecb325608a5773e86fbb1f5863e0f25387805472b59b46cf965 WHIRLPOOL a57aecd3ccf7537af450dc54da65eb9b49b87b461b5929e36c49f5f40a5344fd84625afda47f6ea2860d65a200b34b7abc751ba377ad4404de4f9ca8a55bc36d +EBUILD qdox-1.12.1-r1.ebuild 2202 SHA256 060c64921072303cc9d753c6dc2bdc1bf7f9f9cd00b3a947d533fdaf33464b38 SHA512 f1fbaf2e3136f5e96dd5c0721c94116fd66d1e134e4a72fc30d3f354a4ebc7387d7ad90fb58a4e981573cdb43514a68cd9bad892d651c82aebfc290521b7473b WHIRLPOOL abee7525be7afb8bbbbabe508232f00640ec6b068b259f1edb4799b711284c9f055d95d082026169fd342b53f1409685bcdbd2e2c644fc5d4b4719d21619def2 +EBUILD qdox-1.6.3.ebuild 1319 SHA256 d59f8edfa0322b0d1024b9578d97fa8bec7921206c8b896a2b891d8ffc0d0964 SHA512 d3ae1db0c4ccf4df92c3e4bd1fa3175ef8b4a7f0b71dc3e93c5caa604a4dc63d9e1ce40ecbfa008bcf0ffac99a84e21fe7ff02dfc2f33e67490fe7a089fbd8bf WHIRLPOOL 3318a88eaf5ece31ea64ccc1d9b41e789547e09103cbe1e01679ed9f75109929907a41aac99ab8ac66b97686b14a70d57b4653fd5cb302cd1a11dfc182ed3c82 +MISC ChangeLog 4260 SHA256 11dc3dff6207c1498e93ad961d8019e720d7c85327bfc005f556d233e6ca238e SHA512 f184f876676c9fcfb215f923777f461a1c10a055d15a0e93fcdcf22e756fe2e82f81541d25db7b06b5f8ec6707dbbaaaee3ed9603691d0c7051a49a7f5008ea9 WHIRLPOOL 214474cbff0c084591c735e8f43bb29f3eeccf7af0445e2fe701a19abbd905ac9835ff49704e210ab3905e322e04d19d86c170cbe02a21d890223add8e6b1174 +MISC ChangeLog-2015 6331 SHA256 390c056a0f01ce2c54f9a5c5e6077ba703e264c087d82d41c1baf0504a3140d8 SHA512 660417894cd04acd0c38f692ad056fbb01961ae704c79cda9636cce0acb278ab49d1438dfd48eb9bb75ee4bd46958fa84a4e20956566e33aa3f50dc09cde3714 WHIRLPOOL 8f92c9371e5086afae13b7788020857d92c7dcfec3a933c00d4617e2faea78fa1f276256c97c65cbce6ea773bf5bef1b2e29d4f7f5f38f69c24d6e53faf0190f +MISC metadata.xml 606 SHA256 bfce02d4abed2381720afc4ba72fdac177393e3767581f9f9ced7958fc586a12 SHA512 2c6bbf38e605e7a4f854bed151230d6a61d470238dfa54f8b09334ad66090807f72e371aae55286ec75b6cacf6a7ebac60438c4134a22ef090fb2fb8aead0ee5 WHIRLPOOL 51d45c37b4020aa7b2303597ad773a02e848f54fa41a4525657623ab112df3b149f35213fe3f631ff8f7d763e622dde0526eaf9b9310f045da6cea7df4a62172 diff --git a/dev-java/qdox/files/jflex-1.6.1.patch b/dev-java/qdox/files/jflex-1.6.1.patch new file mode 100644 index 000000000000..4e506246f2a2 --- /dev/null +++ b/dev-java/qdox/files/jflex-1.6.1.patch @@ -0,0 +1,27 @@ +https://github.com/jflex-de/jflex/commit/f312d563777d907bbb12d1e2ac79835ba83ca53c + +--- a/src/grammar/skeleton.inner 2012-11-04 16:16:30.000000000 +0000 ++++ b/src/grammar/skeleton.inner 2015-11-02 20:57:37.566057363 +0000 +@@ -407,15 +407,15 @@ + zzMarkedPos = zzMarkedPosL; + --- char count update + +---- actions +- default: +- if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { +- zzAtEOF = true; ++ if (zzInput == YYEOF && zzStartRead == zzCurrentPos) { ++ zzAtEOF = true; + --- eofvalue +- } +- else { ++ } ++ else { ++--- actions ++ default: + --- no match +- } ++ } + } + } + } diff --git a/dev-java/qdox/metadata.xml b/dev-java/qdox/metadata.xml new file mode 100644 index 000000000000..60d5c915d495 --- /dev/null +++ b/dev-java/qdox/metadata.xml @@ -0,0 +1,19 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <maintainer type="project"> + <email>proxy-maint@gentoo.org</email> + <name>Proxy Maintainers</name> + </maintainer> + <longdescription> + High speed, small footprint parser for extracting class/interface/method + definitions from source files complete with JavaDoc @tags. + </longdescription> + <upstream> + <remote-id type="github">codehaus/qdox</remote-id> + </upstream> +</pkgmetadata> diff --git a/dev-java/qdox/qdox-1.12.1-r1.ebuild b/dev-java/qdox/qdox-1.12.1-r1.ebuild new file mode 100644 index 000000000000..55d7edd511d1 --- /dev/null +++ b/dev-java/qdox/qdox-1.12.1-r1.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit eutils java-pkg-2 java-ant-2 + +DESCRIPTION="Parser for extracting class/interface/method definitions" +HOMEPAGE="https://github.com/codehaus/qdox" +SRC_URI="https://github.com/codehaus/qdox/archive/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.12" +KEYWORDS="amd64 ~arm ~arm64 ppc64 x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos" + +S="${WORKDIR}/${PN}-${PN}-${PV}" + +CDEPEND="dev-java/ant-core:0" + +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip:0 + dev-java/byaccj:0 + >=dev-java/jflex-1.6.1:0 + dev-java/jmock:1.0 + test? ( dev-java/junit:0 ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" + +java_prepare() { + epatch "${FILESDIR}"/jflex-1.6.1.patch + + if ! use test ; then + rm src/java/com/thoughtworks/qdox/tools/QDoxTester.java + rm -rf src/java/com/thoughtworks/qdox/junit + rm -rf src/test + fi +} + +src_compile() { + jflex src/grammar/lexer.flex --skel src/grammar/skeleton.inner -d src/java/com/thoughtworks/qdox/parser/impl/ || die + byaccj -v -Jnorun -Jnoconstruct -Jclass=Parser -Jsemantic=Value -Jpackage=com.thoughtworks.qdox.parser.impl src/grammar/parser.y || die + mv Parser.java src/java/com/thoughtworks/qdox/parser/impl/ || die + + # create jar + mkdir -p build/classes || die + + local cp="$(java-pkg_getjars --build-only ant-core,jmock-1.0)" + + if use test ; then + cp="${cp}:$(java-pkg_getjars --build-only junit)" + fi + + ejavac -sourcepath . -d build/classes -classpath "${cp}" \ + $(find . -name "*.java") || die "Cannot compile sources" + + mkdir dist || die + cd build/classes || die + jar -cvf "${S}"/dist/${PN}.jar com || die "Cannot create JAR" + + # generate javadoc + if use doc ; then + cd "${S}" + mkdir javadoc || die + javadoc -d javadoc -sourcepath src/java -subpackages com -classpath "${cp}" + fi +} + +src_test() { + java -cp "${S}"/dist/${PN}.jar:$(java-pkg_getjars --build-only ant-core,junit,jmock-1.0) \ + com.thoughtworks.qdox.tools.QDoxTester src || die "Tests failed!" +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + java-pkg_register-ant-task + + use source && java-pkg_dosrc src/java/com + use doc && java-pkg_dojavadoc javadoc +} diff --git a/dev-java/qdox/qdox-1.6.3.ebuild b/dev-java/qdox/qdox-1.6.3.ebuild new file mode 100644 index 000000000000..595e0e62b25a --- /dev/null +++ b/dev-java/qdox/qdox-1.6.3.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +JAVA_PKG_IUSE="doc source" +inherit java-pkg-2 java-ant-2 +DESCRIPTION="Parser for extracting class/interface/method definitions" +HOMEPAGE="https://github.com/codehaus/qdox" +SRC_URI="http://repository.codehaus.org/com/thoughtworks/${PN}/${PN}/${PV}/${P}-sources.jar" +LICENSE="Apache-2.0" +SLOT="1.6" +KEYWORDS="amd64 ~arm ppc64 x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris" +IUSE="" + +CDEPEND="dev-java/ant-core + =dev-java/junit-3.8*" +DEPEND=">=virtual/jdk-1.4 + app-arch/unzip + ${CDEPEND}" +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" +S=${WORKDIR} + +src_compile() { + # create jar + mkdir -p build/classes + ejavac -sourcepath . -d build/classes -classpath $(java-pkg_getjars ant-core,junit) \ + $(find . -name "*.java") || die "Cannot compile sources" + mkdir dist + cd build/classes + jar -cvf "${S}/dist/${PN}.jar" com || die "Cannot create JAR" + + # generate javadoc + if use doc ; then + cd "${S}" + mkdir javadoc + javadoc -d javadoc -sourcepath . -subpackages com \ + -classpath $(java-pkg_getjars ant-core,junit) + fi +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + java-pkg_register-ant-task + + use source && java-pkg_dosrc com + use doc && java-pkg_dojavadoc javadoc +} |