blob: 04344047f5fe679c52579296a66356143ddbf85a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/tuprolog/tuprolog-2.0.1.ebuild,v 1.4 2007/02/18 08:38:02 keri Exp $
inherit eutils java-pkg-2 java-ant-2
MY_P="2p-${PV}"
MY_SRC_P="src-J2SE-${PV}"
DESCRIPTION="tuProlog is a light-weight Prolog for Internet applications and infrastructures"
HOMEPAGE="http://www.alice.unibo.it:8080/tuProlog/"
SRC_URI="http://www.alice.unibo.it/download/tuprolog/files/core/2p-2.0.1.zip"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE="doc test"
DEPEND=">=virtual/jdk-1.4
app-arch/unzip
dev-java/ant-core
test? ( dev-java/ant-tasks
dev-java/junit )"
RDEPEND=">=virtual/jdk-1.4"
S="${WORKDIR}"
src_unpack() {
unpack ${A}
epatch "${FILESDIR}"/${P}-java1.4.patch
epatch "${FILESDIR}"/${P}-javadocs.patch
cd "${S}"
cp "${FILESDIR}"/build.xml "${S}"
}
src_compile() {
eant jar $(use_doc)
}
src_test() {
cd "${S}"/dist
java-pkg_jar-from junit
cd "${S}"
eant test || die "eant test failed"
}
src_install() {
java-pkg_dojar dist/${PN}.jar
if use doc ; then
java-pkg_dohtml -r docs/*
dodoc doc/*.pdf
fi
dodoc CHANGELOG
}
|