summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Le Cuirot <chewi@gentoo.org>2016-04-24 21:15:34 +0100
committerJames Le Cuirot <chewi@gentoo.org>2016-04-24 21:17:33 +0100
commit08e561398f7a6758f2696047c2cb4c7f623127f9 (patch)
tree03fb3ea636886c91f20900d65fd7351dc6151e80 /dev-java/qdox/qdox-1.12-r1.ebuild
parentdev-java/qdox: 1.12.1-r1 stable on amd64, ppc64, x86 using ALLARCHES (diff)
downloadgentoo-08e561398f7a6758f2696047c2cb4c7f623127f9.tar.gz
gentoo-08e561398f7a6758f2696047c2cb4c7f623127f9.tar.bz2
gentoo-08e561398f7a6758f2696047c2cb4c7f623127f9.zip
dev-java/qdox: Remove old
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-java/qdox/qdox-1.12-r1.ebuild')
-rw-r--r--dev-java/qdox/qdox-1.12-r1.ebuild82
1 files changed, 0 insertions, 82 deletions
diff --git a/dev-java/qdox/qdox-1.12-r1.ebuild b/dev-java/qdox/qdox-1.12-r1.ebuild
deleted file mode 100644
index aa685c7c4e7..00000000000
--- a/dev-java/qdox/qdox-1.12-r1.ebuild
+++ /dev/null
@@ -1,82 +0,0 @@
-# Copyright 1999-2016 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Id$
-
-EAPI="5"
-
-JAVA_PKG_IUSE="doc source test"
-
-inherit java-pkg-2 java-ant-2
-
-DESCRIPTION="Parser for extracting class/interface/method definitions"
-HOMEPAGE="https://github.com/codehaus/qdox"
-SRC_URI="http://snapshots.repository.codehaus.org/com/thoughtworks/qdox/qdox/1.12-SNAPSHOT/qdox-1.12-20100531.205010-5-project.tar.gz "
-
-LICENSE="Apache-2.0"
-SLOT="1.12"
-KEYWORDS="amd64 ppc64 x86 ~amd64-fbsd ~ppc-macos ~x64-macos ~x86-macos"
-
-S="${WORKDIR}/${PN}-${PV}-SNAPSHOT"
-
-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
-}