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

EAPI=5

PYTHON_COMPAT=( python2_7 )

inherit java-pkg-2 java-ant-2 python-r1

# [ "$PV" == "9999" ] && inherit subversion
inherit subversion

DESCRIPTION="Viewer of next generation sequence assemblies and alignments"
HOMEPAGE="http://bioinf.scri.ac.uk/tablet/"
if [ "$PV" == "9999" ]; then
	ESVN_REPO_URI="http://ics.hutton.ac.uk/svn/tablet/trunk/"
	KEYWORDS=""
else
	ESVN_REPO_URI="http://ics.hutton.ac.uk/svn/tablet/tags/${PV}"
	KEYWORDS="~amd64 ~x86"
fi

LICENSE="Tablet"
SLOT="0"
IUSE=""

REQUIRED_USE="${PYTHON_REQUIRED_USE}"

DEPEND="${PYTHON_DEPS}
	>=virtual/jdk-1.8:*"
RDEPEND="${PYTHON_DEPS}
	>=virtual/jre-1.8:*"
# contains bundled sqlite-jdbc-3.8.6.jar, samtools-linux64.jar, picard.jar
# sqlite-jdbc-3.8.6.jar is not dev-db/sqlite:3 and samtools-linux64.jar is not sci-biology/samtools either
# replacing picard.jar with a symlink to picard.jar from sci-biology.picard does not help either

S="${WORKDIR}"

src_install() {
	java-pkg_dojar lib/tablet.jar
	java-pkg_dolauncher ${PN}
	java-pkg_dojar lib/tablet-resources.jar
	java-pkg_dojar lib/flamingo.jar
	java-pkg_dojar lib/scri-commons.jar
	java-pkg_dojar lib/samtools*.jar
	java-pkg_dojar lib/picard*.jar
	java-pkg_dojar lib/sqlite-jdbc*.jar

	echo "PATH=${EPREFIX}/usr/share/${PN}/" > 99Tablet
	doenvd 99Tablet
}