1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 MY_PV=$(replace_all_version_separators '-')
9 DESCRIPTION="Screen DNA sequences for interspersed repeats and low complexity DNA"
10 HOMEPAGE="http://repeatmasker.org/"
11 SRC_URI="http://www.repeatmasker.org/RepeatMasker-open-${MY_PV}.tar.gz"
19 RDEPEND="sci-biology/phrap
20 sci-biology/repeatmasker-libraries"
22 S="${WORKDIR}/RepeatMasker"
25 sed -i 's/system( "clear" );//' "${S}/configure"
26 cat << END | "${S}/configure" || die "configure failed"
35 sed -i '/$REPEATMASKER_DIR/ s|$FindBin::RealBin|/usr/share/'${PN}'|' "${S}/RepeatMaskerConfig.pm" || die "sed failed"
36 sed -i 's|use lib $FindBin::RealBin;|use lib "/usr/share/'${PN}'/lib";|' "${S}"/{DateRepeats,ProcessRepeats,RepeatMasker} || die "sed failed"
40 dobin DateRepeats ProcessRepeats RepeatMasker
42 insinto /usr/share/${PN}/lib
45 insinto /usr/share/${PN}
46 doins -r util Matrices
47 keepdir /usr/share/${PN}/Libraries
49 dodoc README repeatmasker.help daterepeats.help