aboutsummaryrefslogtreecommitdiff
blob: 365c534bf1dcd4e61dbe85d350f6b3dcc7ce2652 (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
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5

PERL_EXPORT_PHASE_FUNCTIONS=no
inherit java-pkg-2 java-ant-2 eutils perl-module

S="${WORKDIR}"/TreeView-1.1.6r4-bin

DESCRIPTION="Viewer for Microarray Data in PCL or CDT formats"
HOMEPAGE="http://jtreeview.sourceforge.net/"
SRC_URI="
	http://sourceforge.net/projects/jtreeview/files/jtreeview/1.1.6r4/TreeView-1.1.6r4-bin.tar.gz
	http://sourceforge.net/projects/jtreeview/files/helper-scripts/0.0.2/helper-scripts-0.0.2.tar.gz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="" # src_install is wrong somehow, TreeView.jar does not start
IUSE=""

DEPEND="
	>virtual/jdk-1.5:*
	!sci-biology/jtreeview"
RDEPEND="${DEPEND}
	>=virtual/jre-1.5:*"

# TODO: use xltproc to create docs following TreeView-1.1.6r4-src/doc/README

src_install(){
	java-pkg_dojar TreeView.jar
	java-pkg_dolauncher ${PN} TreeView.jar
	insinto /usr/share/"${PN}"/lib/plugins
	doins plugins/*.jar
	cd ../helper-scripts-0.0.2 || die
	perl_set_version
	insinto "${VENDOR_LIB}"
	doins *.pm
	dobin *.pl
	insinto /usr/share/"${PN}"/examples
	doins blues.color
	newdoc README README.helper-scripts
}