summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPetteri Räty <betelgeuse@gentoo.org>2009-04-05 22:16:07 +0000
committerPetteri Räty <betelgeuse@gentoo.org>2009-04-05 22:16:07 +0000
commitb7af26c6b99bee3fbd4460c6102abd4eb351350d (patch)
tree22998d66d053f22bce4d76c8257a2961d032ca8d /dev-java/antenna/antenna-1.0.2.ebuild
parentx86 stable, bug #251832 (diff)
downloadgentoo-2-b7af26c6b99bee3fbd4460c6102abd4eb351350d.tar.gz
gentoo-2-b7af26c6b99bee3fbd4460c6102abd4eb351350d.tar.bz2
gentoo-2-b7af26c6b99bee3fbd4460c6102abd4eb351350d.zip
Version bump. Fixes bug #264532.
(Portage version: 2.2_rc27/cvs/Linux i686)
Diffstat (limited to 'dev-java/antenna/antenna-1.0.2.ebuild')
-rw-r--r--dev-java/antenna/antenna-1.0.2.ebuild68
1 files changed, 68 insertions, 0 deletions
diff --git a/dev-java/antenna/antenna-1.0.2.ebuild b/dev-java/antenna/antenna-1.0.2.ebuild
new file mode 100644
index 000000000000..1deb38f8cd54
--- /dev/null
+++ b/dev-java/antenna/antenna-1.0.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-java/antenna/antenna-1.0.2.ebuild,v 1.1 2009/04/05 22:16:07 betelgeuse Exp $
+
+EAPI=2
+
+JAVA_PKG_IUSE="doc examples source"
+
+inherit java-pkg-2 java-ant-2 eutils
+
+MY_P=${DISTDIR}/${PN}-src-${PV}.zip
+
+DESCRIPTION="Ant task for J2ME"
+HOMEPAGE="http://antenna.sourceforge.net/"
+SRC_URI="mirror://sourceforge/antenna/${PN}-src-${PV}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+COMMON_DEP="dev-java/ant-core:0
+ dev-java/antlr:0
+ dev-java/servletapi:2.4"
+DEPEND=">=virtual/jdk-1.4
+ app-arch/unzip
+ ${COMMON_DEP}"
+RDEPEND=">=virtual/jre-1.4
+ ${COMMON_DEP}"
+
+S="${WORKDIR}"
+
+JAVA_PKG_BSFIX="off"
+
+src_unpack() {
+ default
+ unzip -n lib/preprocessor-src-1.1.zip
+}
+
+java_prepare() {
+ rm -rf lib
+ java-ant_bsfix_one build.xml
+ java-ant_rewrite-classpath build.xml
+}
+
+src_compile() {
+ local cp="ant-core,antlr,servletapi-2.4"
+ EANT_GENTOO_CLASSPATH="${cp}" \
+ EANT_BUILD_TARGET="init compile package" \
+ EANT_DOC_TARGET="" java-pkg-2_src_compile
+ if use doc; then
+ javadoc -encoding latin1 -d api $(find src -name "*.java") \
+ -classpath $(java-pkg_getjars "${cp}") \
+ || die "javadoc failed"
+ fi
+}
+
+src_install() {
+ java-pkg_newjar dist/${PN}-bin-${PV}.jar
+ java-pkg_register-ant-task
+
+ if use doc; then
+ java-pkg_dohtml doc/*
+ java-pkg_dojavadoc api
+ fi
+ use source && java-pkg_dosrc src/*
+ use examples && java-pkg_doexamples samples
+}