1 # Copyright 1999-2015 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 inherit perl-module webapp
10 DESCRIPTION="Generic Model Organism Database Project - The Generic Genome Browser"
11 HOMEPAGE="http://gmod.org/wiki/GBrowse"
12 KEYWORDS="~amd64 ~x86"
13 IUSE="-minimal mysql postgres +sqlite"
16 WEBAPP_MANUAL_SLOT="yes"
18 CDEPEND="!<sci-biology/GBrowse-2.44-r1
19 >=sci-biology/bioperl-1.6.9
20 >=dev-perl/Bio-Graphics-2.09
22 >=dev-perl/CGI-Session-4.02
26 dev-perl/Statistics-Descriptive
29 >=dev-perl/Bio-SamTools-1.20
33 mysql? ( dev-perl/DBD-mysql )
34 postgres? ( dev-perl/DBD-Pg )
35 sqlite? ( dev-perl/DBD-SQLite )
39 dev-perl/Net-OpenID-Consumer
42 # >=dev-perl/Bio-DB-BigFile-1.00 - requires jklib to compile
43 DEPEND="dev-perl/Module-Build
48 PATCHES=( "${FILESDIR}"/GBrowseInstall.pm-2.39.patch )
53 # myconf="--install_base=${D}/usr" or "--install_base=/opt/gbrowse"
54 myconf="--conf=/etc/gbrowse2"
55 myconf="${myconf} --htdocs=${MY_HTDOCSDIR}"
56 myconf="${myconf} --cgibin=${MY_CGIBINDIR}"
57 myconf="${myconf} --tmp=/var/tmp/gbrowse2"
58 myconf="${myconf} --persistent=/var/db/gbrowse2"
59 myconf="${myconf} --databases=/var/db/gbrowse2/databases"
60 myconf="${myconf} --installconf=no"
61 myconf="${myconf} --installetc=no"
62 perl-module_src_configure
66 dodir /var/tmp/gbrowse2
67 dodir /var/db/gbrowse2/sessions
68 dodir /var/db/gbrowse2/userdata
69 webapp_serverowned -R /var/tmp/gbrowse2 /var/db/gbrowse2
70 perl-module_src_install