blob: 1fc0f40e08d8c0d4fa05006b4a42c21ca9376383 (
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-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
MY_P="MUMmer${PV}"
DESCRIPTION="A rapid whole genome aligner"
HOMEPAGE="http://mummer.sourceforge.net/"
SRC_URI="mirror://sourceforge/mummer/${MY_P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
IUSE="doc"
KEYWORDS="~x86"
DEPEND=""
RDEPEND=""
S=${WORKDIR}/${MY_P}
src_compile() {
emake || die "emake failed"
sed -i -e 's|\($AUX_BIN_DIR = "\).*"|\1/usr/bin"|' \
-e 's|\($BIN_DIR = "\).*"|\1/usr/bin"|' \
-e 's|\($SCRIPT_DIR = "\).*"|\1/usr/share/'${PN}'/lib"|' \
-e 's|\(set bindir = \).*|\1/usr/bin|' \
-e 's|\(set scriptdir = \).*|\1/usr/share/'${PN}'/scripts|' \
-e 's|\(use lib "\).*"|\1/usr/share/'${PN}'/lib"|' \
scripts/* exact-tandems mapview mummerplot nucmer promer run-mummer{1,3} || die "Failed to replace paths"
sed -i 's|$bindir/annotate|$bindir/mummer-annotate|' run-mummer1 scripts/run-mummer1.csh
}
src_install() {
dobin nucmer2xfig show-coords mapview show-snps run-mummer{1,3} \
exact-tandems promer repeat-match show-aligns gaps mummer \
show-tiling mgaps nucmer mummerplot delta-filter combineMUMs aux_bin/*
newbin annotate mummer-annotate
insinto /usr/share/${PN}/scripts
doins scripts/{*.awk,*.csh,*.pl}
insinto /usr/share/${PN}/lib
doins scripts/Foundation.pm
dodoc ACKNOWLEDGEMENTS ChangeLog README
insinto /usr/share/doc/${PF}
use doc && doins -r docs
}
|