blob: 972fa967b2553d4d0bc3fe28dee9571f895a762d (
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
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI="2"
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"
SRC_URI="http://sites.google.com/site/wwwmatroids/${MY_P}.tar.gz
doc? ( http://sites.google.com/site/wwwmatroids/${PN}UserManual${MY_PV}.pdf )"
HOMEPAGE="http://sites.google.com/site/wwwmatroids/"
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
# change path names
sed -i -e 's:NAME = ":NAME = "/usr/share/Oid/:' MatroidToolkit.java
}
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
}
|