blob: 556d0c83474e2663cdaebb25ec9a18622f8ba842 (
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
|
# Copyright 2016-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-pkg-simple
DESCRIPTION="GNU Prolog for Java is an implementation of ISO Prolog as a Java library"
HOMEPAGE="https://www.gnu.org/software/gnuprologjava/"
SRC_URI="mirror://gnu/gnuprologjava/${P}-src.zip"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
BDEPEND="app-arch/unzip"
CP_DEPEND="dev-java/java-getopt:1"
DEPEND="${CP_DEPEND}
>=virtual/jdk-1.8:*
doc? ( sys-apps/texinfo )"
RDEPEND="${CP_DEPEND}
>=virtual/jre-1.8:*"
DOCS=( NEWS.txt docs/readme.txt )
PATCHES=( "${FILESDIR}/${P}-manual.patch" )
JAVA_RESOURCE_DIRS="res"
JAVA_SRC_DIR="src"
src_prepare() {
default #780585
java-pkg-2_src_prepare
rm -r src/gnu/getopt || die
mkdir res || die
pushd src > /dev/null || die
find -type f \
! -name '*.java' \
| xargs cp --parent -t ../res || die
popd > /dev/null || die
if use doc; then
mkdir manual || die
makeinfo --html docs/manual.texinfo --output=manual
fi
}
src_install() {
java-pkg-simple_src_install
if use doc; then
docinto html
dodoc -r manual || die
fi
}
|