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

EAPI=5

PERL_EXPORT_PHASE_FUNCTIONS=no
inherit perl-module

DESCRIPTION="Bioinformatics tools incl. Variant Effect Predictor (VEP)"
HOMEPAGE="http://grch37.ensembl.org/info/docs/tools/vep/script/index.html"
SRC_URI="https://github.com/Ensembl/ensembl-tools/archive/release/${PV}.zip -> ${P}.zip"

LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="" # BUG: needs Bio::EnsEMBL::Registry
IUSE=""

DEPEND=""
#DEPEND="dev-perl/Perl-XS
#	dev-perl/Bio-DB-HTS"
RDEPEND="${DEPEND}"

S="${WORKDIR}/ensembl-tools-release-${PV}"

src_install(){
	perl_set_version
	insinto ${VENDOR_LIB}/${PN}
	cd scripts/variant_effect_predictor || die
	perl INSTALL.pl --DESTDIR="${EPREFIX}"/"${DESTDIR}" --AUTO ac
	newdoc README.txt variant_effect_predictor.txt
	cd ../../scripts/region_reporter || die
	dobin *.pl
	newdoc README.txt region_reporter.txt
	cd ../../scripts/assembly_converter
	dobin *.pl
	insinto ${VENDOR_LIB}/${PN}
	doins *.pm
	newdoc README.txt assembly_converter.txt
	insinto /usr/share/"${PN}"/examples
	doins assemblymapper.in
	cd ../../scripts/id_history_converter
	dobin *.pl
	newdoc README.txt id_history_converter.txt
	insinto /usr/share/"${PN}"/examples
	doins idmapper.in
}