summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sci-biology/samtools/samtools-0.1.20-r2.ebuild (renamed from sci-biology/samtools/samtools-0.1.20-r1.ebuild)12
1 files changed, 11 insertions, 1 deletions
diff --git a/sci-biology/samtools/samtools-0.1.20-r1.ebuild b/sci-biology/samtools/samtools-0.1.20-r2.ebuild
index 744d15ff5771..e30ed26ca09f 100644
--- a/sci-biology/samtools/samtools-0.1.20-r1.ebuild
+++ b/sci-biology/samtools/samtools-0.1.20-r2.ebuild
@@ -20,7 +20,6 @@ IUSE="examples"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="sys-libs/ncurses:0=
- dev-lang/lua:0
dev-lang/perl"
DEPEND="${RDEPEND}
virtual/pkgconfig"
@@ -50,6 +49,17 @@ src_install() {
mv "${ED}"/usr/bin/${PN}-${SLOT}/varfilter{,-${SLOT}}.py || die
python_replicate_script "${ED}"/usr/bin/${PN}-${SLOT}/varfilter-${SLOT}.py
+ # fix perl shebangs
+ pushd "${ED}"usr/bin/"${PN}-${SLOT}"/ >> /dev/null
+ local i
+ for i in plot-bamcheck *.pl; do
+ sed -e '1s:.*:#!/usr/bin/env perl:' -i "${i}" || die
+ done
+
+ # remove lua scripts
+ rm -f r2plot.lua vcfutils.lua || die
+ popd >> /dev/null
+
dolib.so libbam-${SLOT}$(get_libname 1)
dosym libbam-${SLOT}$(get_libname 1) /usr/$(get_libdir)/libbam-${SLOT}$(get_libname)