aboutsummaryrefslogtreecommitdiff
blob: b2f4e39a953b541ed6ddf93994ac9c5949cc582f (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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=3

DESCRIPTION="IGS-modified version of the genome annotation tool that can view, modify and store annotation for prokaryotic and eukaryotic genomes."
HOMEPAGE="http://manatee.sourceforge.net/igs"
SRC_URI="http://sourceforge.net/projects/manatee/files/igs_manatee/"${PV}"/manatee-"${PV}"_linux.tgz
		http://manatee.sourceforge.net/igs/docs/README_Linux.txt"

LICENSE="Artistic-IGS"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND="
		>=dev-libs/expat-1.95.8
		>=media-libs/gd-2.0.34
		virtual/perl-CGI
		dev-perl/DBI
		dev-perl/DBD-mysql
		dev-perl/XML-Parser
		dev-perl/XML-Twig
		dev-perl/XML-Simple
		dev-perl/XML-Writer
		dev-perl/HTML-Template
		dev-perl/Tree-DAG_Node
		virtual/perl-File-Spec
		virtual/perl-Data-Dumper
		dev-perl/GD
		dev-perl/GDTextUtil
		dev-perl/GDGraph
		virtual/perl-Storable
		dev-perl/Log-Log4perl
		dev-perl/Log-Cabin
		dev-perl/DateManip
		dev-perl/IO-Tee
		dev-perl/MLDBM
		dev-perl/JSON
		dev-perl/JSON-Any
		sci-biology/bioperl"
RDEPEND="${DEPEND}
		>=dev-db/mysql-5.0
		>=www-servers/apache-2.2"

S="${WORKDIR}"/manatee-"${PV}"_linux

src_prepare(){
	find "${S}" -name \*.cgi | while read f; do sed -e 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' -i $f; done
	find "${S}" -name \*.pl | while read f; do sed -e 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' -i $f; done
	find "${S}" -name \*.pm | while read f; do sed -e 's|#!/usr/local/bin/perl|#!/usr/bin/perl|' -i $f; done
}

#src_configure(){
#	there used to be manateee-="${PV}".tgz file which contained configure script in the past
#	now the layout is different, temporarily commenting out untill we find the current full sources back again
#	econf HTTPD=/usr/sbin/httpd HTTPD_SCRIPT_HOME=/var/www/cgi-bin HTTPD_DOC_HOME=/var/www/htdocs MYSQLD=/usr/sbin/mysqld || die
#}
#
#src_compile(){
#	emake || die
#}

src_install(){
	dodoc ${DISTDIR}"/README_Linux.txt"
	dodir /var/www/localhost/cgi-bin
	cp -r src/cgi-bin/chado_prok_manatee "${D}"/var/www/localhost/cgi-bin
	dodir /var/www/localhost/htdocs/manatee
	cp -r src/htdocs/tdb "${D}"/var/www/localhost/htdocs/manatee

	einfo "Please read the "${S}"/databases/Makefile.PL and import the databases into your MySQL database"

	einfo "You have to fetch the 1.1 GB large file from http://sourceforge.net/projects/manatee/files/igs_manatee/"${PV}"/lookups-"${PV}"_linux.tgz"
	einfo "You need to update it regularly."
	einfo "Also fetch http://sourceforge.net/projects/manatee/files/igs_manatee/"${PV}"/blastdb-"${PV}".tgz (about 2MB in size)"
}