aboutsummaryrefslogtreecommitdiff
blob: 81da9cba240c16c8d28aed72c2aa3528fa072fd4 (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
61
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=5

inherit java-pkg-2 java-ant-2 git-r3

DESCRIPTION="DNA sequence viewer/annotation (Artemis) and comparison (ACT) tool"
HOMEPAGE="http://www.sanger.ac.uk/resources/software/artemis"
SRC_URI="ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/artemis.pdf"
EGIT_REPO_URI="https://github.com/sanger-pathogens/Artemis"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE=""

# uses its own BamView
RDEPEND="
	sci-biology/samtools
	>=virtual/jre-1.6:*"
DEPEND="${RDEPEND}
	!sci-biology/artemis-bin
	dev-java/ant-core
	>=virtual/jdk-1.6:*
	dev-java/log4j
	dev-java/jdbc-postgresql
	dev-java/jakarta-regexp
	dev-java/batik
	dev-java/j2ssh
	sci-biology/picard
	dev-java/biojava"
# some more dependencies extracted from /usr/bin/act
# JacORB.jar, jemAlign.jar, macos.jar, chado-14-interface.jar, iBatis, biojava.jar, 
#

# http://www.mail-archive.com/artemis-users@sanger.ac.uk/msg00551.html
# http://www.mail-archive.com/artemis-users@sanger.ac.uk/msg00561.html
# http://gmod.org/wiki/Artemis-Chado_Integration_Tutorial

# BamView is at http://bamview.sourceforge.net/

src_compile(){
	ant || die
}

src_install(){
	dobin act act.command art dnaplotter gff2embl
	java-pkg_dojar ant-build/artemis.jar
	dodoc "${DISTDIR}"/artemis.pdf README
}

# artemis_compiled_v16.0.11.tar.gz contains compiled binaries but also java *.class files
# artemis_v16.0.11.jar and sartemis_v16.0.11.jar
#   ftp://ftp.sanger.ac.uk/pub/resources/software/artemis/v16/v16.0.11/

pkg_postinst(){
	einfo "For BAM file support please install sci-biology/BamView"
	einfo "		from http://bamview.sourceforge.net"
}