summaryrefslogtreecommitdiff
blob: c043f057cd02d03e0560ba4176a86f7a456b1c78 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="5"

JAVA_PKG_IUSE="doc source"

inherit base java-pkg-2

MY_PN="Jama"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="A Java Matrix Package"
HOMEPAGE="http://math.nist.gov/javanumerics/jama/"
SRC_URI="http://math.nist.gov/javanumerics/${PN}/${MY_P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~x86"

DEPEND=">=virtual/jdk-1.5"
RDEPEND=">=virtual/jre-1.5"

S="${WORKDIR}"

src_compile() {
	mkdir -p build || die

	ejavac -d build $(find Jama -name '*.java')

	$(java-config -j) cf ${MY_PN}.jar -C build ${MY_PN} || die
}

src_install() {
	java-pkg_dojar ${MY_PN}.jar

	dodoc Jama/ChangeLog

	use doc && java-pkg_dojavadoc Jama/doc
	use source && java-pkg_dosrc Jama
}