blob: 2b97b6ed3bcf5d736c385eab2bdba67d00f6acad (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
inherit eutils java-pkg-2 versionator
MY_PV=$(replace_version_separator 1 '-')
MY_P="${PN}${MY_PV}"
DESCRIPTION="An interactive, extensible software system for experimenting with matroids"
HOMEPAGE="http://sites.google.com/site/wwwmatroids/"
SRC_URI="
http://sites.google.com/site/wwwmatroids/${MY_P}.tar.gz
doc? ( http://sites.google.com/site/wwwmatroids/${PN}UserManual${MY_PV}.pdf )"
KEYWORDS="~amd64 ~x86"
SLOT="0"
LICENSE="GPL-2"
IUSE="doc"
DEPEND=">=virtual/jdk-1.4:*"
RDEPEND=">=virtual/jre-1.4:*"
# The source uses 'enum' as an identifier, therefore:
JAVA_PKG_WANT_SOURCE="1.4"
src_prepare () {
mkdir classes || die
# change path names
sed -i -e 's:NAME = ":NAME = "/usr/share/Oid/:' MatroidToolkit.java || die
}
src_compile () {
ejavac -d classes @Oid/filelist.unix
ejavac -d classes @filelist
}
src_install () {
jar cef Oid Oid.jar -C classes . || die "Failed to create jar"
java-pkg_dojar Oid.jar
java-pkg_dolauncher
use doc && dodoc "${DISTDIR}"/OidUserManual4-0.pdf
insinto /usr/share/Oid
doins matroid*.txt
}
|