blob: 8a21f8f367334ffcd092307a15b60b853628247d (
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
|
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="IGS-modified version of the genome annotation tool using Chado database schema"
HOMEPAGE="http://manatee.sourceforge.net/igs" # no https
SRC_URI="https://downloads.sourceforge.net/project/manatee/igs_manatee/${PV}/manatee-${PV}_linux.tgz"
LICENSE="Artistic-Manatee"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="
>=dev-libs/expat-1.95.8
>=media-libs/gd-2.0.34
dev-perl/CGI
dev-perl/Bio-DB-Das-Chado
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/Date-Manip
dev-perl/IO-Tee
dev-perl/MLDBM
dev-perl/JSON
dev-perl/JSON-Any
sci-biology/bioperl"
RDEPEND="${DEPEND}
>=virtual/mysql-5:*
>=www-servers/apache-2.2"
S="${WORKDIR}/manatee-${PV}_linux"
src_prepare(){
default
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_install(){
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 https://sourceforge.net/projects/manatee/files/igs_manatee/"${PV}"/lookups-"${PV}"_linux.tgz"
einfo "You need to update it regularly."
einfo "Also fetch https://sourceforge.net/projects/manatee/files/igs_manatee/"${PV}"/blastdb-"${PV}".tgz (about 2MB in size)"
}
|