summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeri Harris <keri@gentoo.org>2011-05-21 04:50:40 +0000
committerKeri Harris <keri@gentoo.org>2011-05-21 04:50:40 +0000
commite27b7fba7960995addcb3c7d35263bc24fd197b2 (patch)
tree3eeb94a515c5b3d7b29d436bca8de5044675517d /dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild
parentppc/ppc64 stable wrt #361917. punt unused (diff)
downloadhistorical-e27b7fba7960995addcb3c7d35263bc24fd197b2.tar.gz
historical-e27b7fba7960995addcb3c7d35263bc24fd197b2.tar.bz2
historical-e27b7fba7960995addcb3c7d35263bc24fd197b2.zip
Version bump
Package-Manager: portage-2.1.9.42/cvs/Linux x86_64
Diffstat (limited to 'dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild')
-rw-r--r--dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild56
1 files changed, 56 insertions, 0 deletions
diff --git a/dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild b/dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild
new file mode 100644
index 000000000000..f4e4ff02bc6c
--- /dev/null
+++ b/dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-lang/tuprolog/tuprolog-2.3.1_beta.ebuild,v 1.1 2011/05/21 04:50:40 keri Exp $
+
+EAPI=2
+
+inherit eutils java-pkg-2 java-ant-2
+
+MY_P="2p-${PV/_beta/}"
+
+DESCRIPTION="tuProlog is a light-weight Prolog for Internet applications and infrastructures"
+HOMEPAGE="http://www.alice.unibo.it/tuProlog/"
+SRC_URI="mirror://sourceforge/tuprolog/${MY_P}.zip"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc"
+
+RDEPEND=">=virtual/jdk-1.5
+ >=dev-java/javassist-3"
+
+DEPEND="${RDEPEND}
+ app-arch/unzip
+ dev-java/ant-core"
+
+S="${WORKDIR}"/2p-deploy
+
+EANT_GENTOO_CLASSPATH="javassist-3"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-javadocs.patch
+
+ cp "${FILESDIR}"/build.xml "${S}" || die
+ sed -i -e "s|test/unit|test|" "${S}"/build.xml \
+ die "sed build.xml failed"
+}
+
+src_compile() {
+ eant jar $(use_doc)
+}
+
+src_test() {
+ cd "${S}"/dist
+ java-pkg_jar-from junit
+ cd "${S}"
+ ANT_TASKS="ant-junit" eant test || die "eant test failed"
+}
+
+src_install() {
+ java-pkg_dojar dist/${PN}.jar
+
+ if use doc ; then
+ java-pkg_dohtml -r docs/* || die
+ fi
+}