blob: 90ccbd85c855aae8f96e133d40f4771d1fa2616b (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=5
JAVA_PKG_IUSE="doc source"
inherit java-pkg-2 java-ant-2
DESCRIPTION="A rendering library based on JoGL"
SRC_URI="http://forge.scilab.org/index.php/p/${PN}/downloads/get/${P}.tar.gz"
HOMEPAGE="http://forge.scilab.org/index.php/p/scirenderer/"
IUSE="doc source"
DEPEND=">=virtual/jdk-1.5
=dev-java/jogl-2.0_rc8-r1:2
dev-java/jlatexmath:1"
RDEPEND=">=virtual/jre-1.5"
LICENSE="GPL-2"
SLOT="1"
KEYWORDS="~amd64 ~x86"
EANT_DOC_TARGET="doc"
java_prepare() {
sed -i \
-e "s|jogl2.jar =.*|jogl2.jar =$(java-pkg_getjar jogl-2 jogl.all.jar)|" \
-e "s|gluegen2-rt.jar =.*|gluegen2-rt.jar =$(java-pkg_getjar gluegen-2 \
gluegen-rt.jar)|" \
-e "s|jlatexmath.jar =.*|jlatexmath.jar = $(java-pkg_getjars jlatexmath-1)|" \
scirenderer-libs.properties
}
src_install() {
java-pkg_newjar jar/${P}.jar ${PN}.jar
use doc && dodoc -r docs/
use source && java-pkg_dosrc src/org
}
|