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

EAPI=5

AUTOTOOLS_AUTORECONF=yes

inherit flag-o-matic eutils perl-module webapp

DESCRIPTION="Analyze Restriction enzyme data, draw gen. maps, population genomics (RAD-seq Illumina sequencing)"
HOMEPAGE="http://creskolab.uoregon.edu/stacks"
SRC_URI="http://creskolab.uoregon.edu/stacks/source/${P}.tar.gz"

LICENSE="GPL-3"
# SLOT="0" # webapp ebuilds do not set SLOT
KEYWORDS=""
IUSE=""

# sys-cluster/openmpi
DEPEND="
	dev-cpp/sparsehash
	sci-biology/samtools
	sci-biology/bamtools"
RDEPEND="${DEPEND}
	dev-lang/perl
	>=dev-lang/php-5
	dev-perl/DBD-mysql"

src_configure() {
	econf --enable-bam --enable-sparsehash
	webapp_src_preinst
	sed -i 's#/usr/lib/libbam.a#-lbam#' Makefile || die
}

src_compile(){
	emake DESTDIR="${D}"
}

src_install() {
	emake install DESTDIR="${D}"
	mydoc="Changes README TODO INSTALL"
	perl-module_src_install DESTDIR="${D}"
	webapp_src_install || die "Failed running webapp_src_install"
}

pkg_postinst() {
	webapp_pkg_postinst || die "webapp_pkg_postinst failed"
}