blob: af273a150564f2d910af0d75c1d9112c0303ec21 (
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
58
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit java-pkg-2 java-ant-2
MY_P="${PN}$(ver_rs 1- '')"
DESCRIPTION="InterProlog is a Java front-end and enhancement for Prolog"
HOMEPAGE="http://www.declarativa.com/interprolog/"
SRC_URI="http://www.declarativa.com/interprolog/interprolog212.zip"
LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="doc"
RDEPEND=">=virtual/jdk-1.8:*
dev-java/junit:0"
DEPEND="${RDEPEND}
app-arch/unzip
dev-java/ant-core
|| (
dev-lang/xsb
dev-lang/swi-prolog
dev-lang/yap )"
S="${WORKDIR}"/${MY_P}
EANT_GENTOO_CLASSPATH="junit"
src_prepare() {
eapply "${FILESDIR}"/${P}-java1.4.patch
eapply_user
cp "${FILESDIR}"/build.xml "${S}" || die
mkdir "${S}"/src
mv "${S}"/com "${S}"/src
rm interprolog.jar junit.jar
}
src_compile() {
java-pkg_jar-from junit
eant jar $(use_doc)
}
src_install() {
java-pkg_dojar dist/${PN}.jar
if use doc ; then
java-pkg_dohtml -r docs/*
dodoc INSTALL.htm faq.htm prologAPI.htm
dodoc -r images
dodoc PaperEPIA01.doc
fi
}
|