aboutsummaryrefslogtreecommitdiff
blob: 9bf0f47cec2c4688f10390432f576f3537d2d913 (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-biology/generic-genome-browser/generic-genome-browser-1.58.ebuild,v 1.9 2007/07/29 17:07:38 phreak Exp $

EAPI="2"

inherit perl-module webapp

MY_P="Generic-Genome-Browser-${PV}"

DESCRIPTION="The generic genome browser provides a display of genomic annotations on interactive web pages"
HOMEPAGE="http://gmod.org"
SRC_URI="mirror://sourceforge/gmod/${MY_P}.tar.gz"

LICENSE="Artistic"
# webapp ebuilds do not set SLOT
KEYWORDS="~x86 ~amd64"
IUSE="-minimal" # lwp moby scf

S="${WORKDIR}/${MY_P}"

# TODO: dev-perl/MOBY, dev-perl/Bio-SCF, dev-perl/libwww-perl, LWP
DEPEND=">=dev-lang/perl-5.8.8
	>=sci-biology/bioperl-1.6
	>=dev-perl/GD-2.07
	dev-perl/IO-String
	virtual/perl-Digest-MD5
	>=dev-perl/CGI-Session-4.03
	dev-perl/Statistics-Descriptive
	>=dev-perl/Bio-Graphics-1.97"
RDEPEND="${DEPEND}
	>=www-servers/apache-2.0.47
	>=virtual/perl-CGI-2.56
	dev-perl/DBI
	dev-perl/DBD-mysql
	dev-perl/Class-Base
	dev-perl/Text-Shellwords
	!minimal? (
		dev-perl/XML-Parser
		dev-perl/XML-Writer
		dev-perl/XML-Twig
		dev-perl/XML-DOM
		dev-perl/GD-SVG
		dev-perl/Bio-Das
	)"

src_configure() {
	webapp_src_preinst
	perl Makefile.PL \
		HTDOCS="${D}/${MY_HTDOCSDIR}" \
		CGIBIN="${D}/${MY_HTDOCSDIR}/cgi-bin" \
		CONF="${D}/etc" \
		PREFIX="${D}/usr" \
		PACKAGE_DIR="${D}" \
		INSTALLDIRS=vendor \
		GBROWSE_ROOT=gbrowse \
		DESTDIR="${ROOT}" \
		|| die
}

src_install() {
	mydoc="Changes README TODO INSTALL"
	perl-module_src_install

	# TODO: write our own readme
	webapp_postinst_txt en "${S}/INSTALL"
	webapp_src_install
}