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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Jul 4 15:15:33 2013 UTC (5 years, 4 months ago) by keri
Branch: MAIN
CVS Tags: HEAD
Version bump

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

1 # Copyright 1999-2013 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.5.0.ebuild,v 1.1 2012/08/04 11:27:31 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
35 cp "${FILESDIR}"/build.xml "${S}" || die
36 sed -i -e "s|test/unit|test|" "${S}"/build.xml \
37 || die "sed build.xml failed"
38 }
39
40 src_compile() {
41 eant jar $(use_doc)
42 }
43
44 src_test() {
45 cd "${S}"/dist
46 java-pkg_jar-from junit-4
47 java-pkg_jar-from hamcrest-core
48 cd "${S}"
49 ANT_TASKS="ant-junit4" eant -Djunit.jar=junit.jar test \
50 || die "eant test failed"
51 }
52
53 src_install() {
54 java-pkg_dojar dist/${PN}.jar
55
56 if use doc ; then
57 java-pkg_dohtml -r docs/* || die
58 fi
59 }

  ViewVC Help
Powered by ViewVC 1.1.20