diff options
author | 2015-08-07 23:26:13 +0000 | |
---|---|---|
committer | 2015-08-07 23:26:13 +0000 | |
commit | 26181dcfbe36f2d52b04db22136ead979e7c6a7f (patch) | |
tree | c2a60d958f4c8d14754ddfcc512493ddb85b646a /dev-java | |
parent | dev-java/qdox: Fix file removal path (bug #503918) (diff) | |
download | gentoo-2-26181dcfbe36f2d52b04db22136ead979e7c6a7f.tar.gz gentoo-2-26181dcfbe36f2d52b04db22136ead979e7c6a7f.tar.bz2 gentoo-2-26181dcfbe36f2d52b04db22136ead979e7c6a7f.zip |
dev-java/qdox: 1.12.1 (bug #503918)
(Portage version: 2.2.20/cvs/Linux x86_64, signed Manifest commit with key 0x401A1600)
Diffstat (limited to 'dev-java')
-rw-r--r-- | dev-java/qdox/ChangeLog | 7 | ||||
-rw-r--r-- | dev-java/qdox/qdox-1.12.1.ebuild | 82 |
2 files changed, 88 insertions, 1 deletions
diff --git a/dev-java/qdox/ChangeLog b/dev-java/qdox/ChangeLog index 468b149fc56a..071c1255d0c1 100644 --- a/dev-java/qdox/ChangeLog +++ b/dev-java/qdox/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-java/qdox # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-java/qdox/ChangeLog,v 1.49 2015/08/07 23:12:51 sping Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-java/qdox/ChangeLog,v 1.50 2015/08/07 23:26:13 sping Exp $ + +*qdox-1.12.1 (07 Aug 2015) + + 07 Aug 2015; Sebastian Pipping <sping@gentoo.org> +qdox-1.12.1.ebuild: + Bump to 1.12.1 (bug #503918) 07 Aug 2015; Sebastian Pipping <sping@gentoo.org> qdox-1.12-r1.ebuild: Fix file removal path for USE=-test (bug #503918, reported by Andreas diff --git a/dev-java/qdox/qdox-1.12.1.ebuild b/dev-java/qdox/qdox-1.12.1.ebuild new file mode 100644 index 000000000000..4b43ef368559 --- /dev/null +++ b/dev-java/qdox/qdox-1.12.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/qdox/qdox-1.12.1.ebuild,v 1.1 2015/08/07 23:26:13 sping Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Parser for extracting class/interface/method definitions" +HOMEPAGE="http://qdox.codehaus.org/" +SRC_URI="https://github.com/codehaus/qdox/archive/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="1.12" +KEYWORDS="~amd64 ~ppc ~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.4.3:0 + dev-java/jmock:1.0 + test? ( dev-java/junit:0 ) + ${CDEPEND}" + +RDEPEND=">=virtual/jre-1.4 + ${CDEPEND}" + +java_prepare() { + 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 +} |