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

EAPI=5

inherit perl-module perl-app

DESCRIPTION="Convert whole CONSED dataset to a GAP4 project"
HOMEPAGE="http://genome.imb-jena.de/software/consed2gap/"
SRC_URI="http://genome.imb-jena.de/software/consed2gap/consed2gap.tgz -> ${P}.tgz"

LICENSE="FLI-Jena"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

DEPEND=""
RDEPEND="${DEPEND}
	dev-lang/perl:=
	sci-libs/io_lib
	sci-biology/caftools
	sci-biology/align_to_scf"

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

src_prepare(){
	sed -i 's#/usr/local/bin/perl#/usr/bin/env perl#' bin/phrap2caf || die
	sed -i 's#/usr/local/bin/perl#/usr/bin/env perl#' bin/badgerGetOpt.pl || die
}

src_install(){
	dobin bin/consed2gap bin/phrap2caf bin/badgerGetOpt.pl
	dodir /usr/share/"${PN}"
	mv example "${ED}"/usr/share/"${PN}"/ || die

	cd bin && perl-module_src_install
}