summaryrefslogtreecommitdiff
blob: 5075b38b9bdd85457c9f0af5bf8a763495518297 (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit versionator

MY_PV=$(replace_all_version_separators '-')

DESCRIPTION="Screen DNA sequences for interspersed repeats and low complexity DNA"
HOMEPAGE="http://repeatmasker.org/"
SRC_URI="http://www.repeatmasker.org/RepeatMasker-open-${MY_PV}.tar.gz"

LICENSE="OSL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE=""

DEPEND=""
RDEPEND="sci-biology/phrap
	sci-biology/repeatmasker-libraries"

S="${WORKDIR}/RepeatMasker"

src_compile() {
	sed -i 's/system( "clear" );//' "${S}/configure"
	cat << END | "${S}/configure" || die "configure failed"

/usr/bin
/usr/share/${PN}
1
/usr/bin
Y
4
END
	sed -i '/$REPEATMASKER_DIR/ s|$FindBin::RealBin|/usr/share/'${PN}'|' "${S}/RepeatMaskerConfig.pm" || die "sed failed"
	sed -i 's|use lib $FindBin::RealBin;|use lib "/usr/share/'${PN}'/lib";|' "${S}"/{DateRepeats,ProcessRepeats,RepeatMasker} || die "sed failed"
}

src_install() {
	dobin DateRepeats ProcessRepeats RepeatMasker

	insinto /usr/share/${PN}/lib
	doins "${S}"/*.pm

	insinto /usr/share/${PN}
	doins -r util Matrices
	keepdir /usr/share/${PN}/Libraries

	dodoc README repeatmasker.help daterepeats.help
}