aboutsummaryrefslogtreecommitdiff
blob: af5e73184f067a9dc1731bec6cb5f385436d5821 (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
52
53
54
55
56
57
58
59
60
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit java-pkg-2 java-ant-2

DESCRIPTION="r2cat and treecat, scaffolding tools for ordering and orienting contigs"
HOMEPAGE="http://bibiserv.techfak.uni-bielefeld.de/cgcat"
SRC_URI="http://bibiserv.techfak.uni-bielefeld.de/applications/cgcat/resources/downloads/r2cat.tar.gz"
# SRC_URI="http://bibiserv.techfak.uni-bielefeld.de/applications/cgcat/resources/downloads/r2cat.jar"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""

RDEPEND="${DEPEND}
	>=virtual/jre-1.6:*
	dev-lang/perl
	sci-biology/ncbi-tools"
DEPEND="${RDEPEND}
	>=virtual/jdk-1.6:*
	dev-java/ant-core"

S="${WORKDIR}"/r2cat

src_prepare(){
	sed -e "s#/vol/bioapps#"${D}"/usr#" -e "s#/vol/bibidev/r2cat#"${D}"/usr#" -i Makefile || die
	sed -e "s#/vol/gnu#/usr#" -i de/bielefeld/uni/cebitec/r2cat/blast_to_r2cat.pl || die
}

src_compile(){
	emake r2cat.jar
}

src_install(){
	# emake install dies with:
	# jarsigner -tsa https://timestamp.geotrust.com/tsa -keystore /homes/phuseman/.gnupg/jarsigner_keystore_cg-cat  cg-cat.jar cgcat
	# Enter Passphrase for keystore: jarsigner: you must enter key password
	# Makefile:44: recipe for target 'cg-cat.jar' failed
	mkdir -p "${D}"/usr/share/r2cat
	# emake install_cebitec
	# emake install_bibiserv
	# the blast_to_r2cat.pl script needs bioperl
	dobin de/bielefeld/uni/cebitec/r2cat/blast_to_r2cat.pl
	java-pkg_dojar r2cat.jar || die
	dodoc README.md ReadmeLicenses.txt
	insinto /usr/share/doc/"${PN}"/html
	doins de/bielefeld/uni/cebitec/r2cat/help/*
}

# to start r2cat:
# java -Xmx10240M -jar r2cat.jar de.bielefeld.uni.cebitec.r2cat.R2cat

# to start treecat:
# java -Xmx10240M -cp r2cat.jar de.bielefeld.uni.cebitec.treecat.Treecat -Xmx -d64

# add -d64 on the java commandline if you need more than 4GB of memory and your system can handle it