/[gentoo-x86]/dev-java/jump/jump-0.5.ebuild
Gentoo

Contents of /dev-java/jump/jump-0.5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.5 - (show annotations) (download)
Sun Aug 10 20:20:25 2014 UTC (3 years, 9 months ago) by slyfox
Branch: MAIN
CVS Tags: HEAD
Changes since 1.4: +3 -3 lines
QA: drop trailing '.' from DESCRIPTION

(Portage version: 2.2.11_p9/cvs/Linux x86_64, signed Manifest commit with key 611FF3AA)

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-java/jump/jump-0.5.ebuild,v 1.4 2007/12/16 02:33:16 betelgeuse Exp $
4
5 JAVA_PKG_IUSE="doc examples source test"
6 inherit java-pkg-2 java-ant-2
7
8 DESCRIPTION="JUMP Ultimate Math Package (JUMP) is a Java-based extensible high-precision math package"
9 SRC_URI="mirror://sourceforge/${PN}-math/${P}.tar.gz"
10 HOMEPAGE="http://jump-math.sourceforge.net/"
11 KEYWORDS="amd64 ~ppc x86"
12 LICENSE="BSD"
13 SLOT="0"
14 DEPEND=">=virtual/jdk-1.4
15 test? ( dev-java/ant-junit =dev-java/junit-3* )"
16 RDEPEND=">=virtual/jre-1.4"
17
18 src_unpack() {
19 unpack ${A}
20 cd "${S}"
21
22 epatch "${FILESDIR}/0.5-test.patch"
23
24 sed -i 's:${java.home}/src::' -i build.xml || die
25 java-ant_rewrite-classpath
26 }
27
28 EANT_BUILD_TARGET="jar"
29 EANT_DOC_TARGET="apidocs"
30
31 src_test() {
32 local cp="$(java-pkg_getjars junit)"
33 ANT_TASKS="ant-junit" eant do-tests -Dgentoo.classpath="${cp}"
34 }
35
36 src_install() {
37 java-pkg_dojar build/${PN}.jar
38
39 use doc && java-pkg_dojavadoc build/apidocs
40 use examples && java-pkg_doexamples src/examples
41 use source && java-pkg_dosrc src/main/org
42 }

  ViewVC Help
Powered by ViewVC 1.1.20