/[gentoo-x86]/dev-lang/tuprolog/tuprolog-2.7.2.ebuild
Gentoo

Contents of /dev-lang/tuprolog/tuprolog-2.7.2.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sun Nov 9 17:38:09 2014 UTC (3 years, 3 months ago) by keri
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -2 lines
tuprolog-2.7.2.ebuild

(Portage version: 2.2.8-r2/cvs/Linux x86_64, signed Manifest commit with key A138F5ED)

1 # Copyright 1999-2014 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-lang/tuprolog/tuprolog-2.7.2.ebuild,v 1.1 2013/07/15 12:12:45 keri Exp $
4
5 EAPI=3
6
7 inherit eutils java-pkg-2 java-ant-2
8
9 DESCRIPTION="tuProlog is a light-weight Prolog for Internet applications and infrastructures"
10 HOMEPAGE="http://tuprolog.unibo.it/"
11 SRC_URI="mirror://gentoo/${P}.tar.gz"
12
13 LICENSE="LGPL-3"
14 SLOT="0"
15 KEYWORDS="~amd64 ~x86"
16 IUSE="doc test"
17
18 RDEPEND=">=virtual/jdk-1.7
19 >=dev-java/javassist-3"
20
21 DEPEND="${RDEPEND}
22 dev-java/ant-core
23 test? (
24 dev-java/ant-junit4
25 dev-java/hamcrest-core
26 )"
27
28 S="${WORKDIR}"/${P}
29
30 EANT_GENTOO_CLASSPATH="javassist-3"
31
32 src_prepare() {
33 epatch "${FILESDIR}"/${P}-javadocs.patch
34 epatch "${FILESDIR}"/${P}-no-ikvm.patch
35
36 cp "${FILESDIR}"/build.xml "${S}" || die
37 sed -i -e "s|test/unit|test|" "${S}"/build.xml \
38 || die "sed build.xml failed"
39 }
40
41 src_compile() {
42 eant jar $(use_doc)
43 }
44
45 src_test() {
46 cd "${S}"/dist
47 java-pkg_jar-from junit-4
48 java-pkg_jar-from hamcrest-core
49 cd "${S}"
50 ANT_TASKS="ant-junit4" eant -Djunit.jar=junit.jar test \
51 || die "eant test failed"
52 }
53
54 src_install() {
55 java-pkg_dojar dist/${PN}.jar
56
57 if use doc ; then
58 java-pkg_dohtml -r docs/* || die
59 fi
60 }

  ViewVC Help
Powered by ViewVC 1.1.20