http://bugs.gentoo.org/show_bug.cgi?id=338179
---- easel/esl_getopts.c
-+++ easel/esl_getopts.c
+--- a/easel/esl_getopts.c
++++ b/easel/esl_getopts.c
@@ -1270,7 +1270,7 @@
"Arg looks like option? Use %.24s%.24s if you really mean it.",
g->opt[opti].name, *ret_optarg);
--- /dev/null
+Build system does not respect DESTDIR by default.
+
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -203,9 +203,9 @@
+ # "make install" installs the programs in BINDIR
+ #
+ install:
+- mkdir -p ${BINDIR}
++ mkdir -p $(DESTDIR)${BINDIR}
+ for file in $(PROGS); do\
+- cp src/$$file $(BINDIR)/;\
++ cp src/$$file $(DESTDIR)$(BINDIR)/;\
+ done
+ # if test -d $(RIGFILTERS); then\
+ # for file in $(RFPROGS); do\
-# Copyright 1999-2014 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-EAPI=4
-
-inherit eutils
+EAPI=6
DESCRIPTION="Inference of RNA alignments"
HOMEPAGE="http://infernal.janelia.org/"
IUSE="mpi"
KEYWORDS="amd64 x86"
-DEPEND="mpi? ( virtual/mpi )"
-RDEPEND="${DEPEND}"
+RDEPEND="mpi? ( virtual/mpi )"
+DEPEND="${RDEPEND}"
-src_prepare() {
- epatch \
- "${FILESDIR}"/${P}-parallel-build.patch \
- "${FILESDIR}"/${P}-overflows.patch \
- "${FILESDIR}"/${P}-perl-5.16-2.patch \
- "${FILESDIR}"/${P}-ldflags.patch
-}
+PATCHES=(
+ "${FILESDIR}"/${P}-parallel-build.patch
+ "${FILESDIR}"/${P}-overflows.patch
+ "${FILESDIR}"/${P}-perl-5.16-2.patch
+ "${FILESDIR}"/${P}-ldflags.patch
+ "${FILESDIR}"/${P}-respect-DESTDIR.patch
+)
src_configure() {
- econf \
- --prefix="${D}/usr" \
- $(use_enable mpi)
+ econf $(use_enable mpi)
}
src_install() {
+ DOCS=( 00README* Userguide.pdf documentation/release-notes )
default
- pushd documentation/manpages > /dev/null
- for i in *;
- do newman ${i} ${i/.man/.1}
+ pushd documentation/manpages >/dev/null || die
+ local i
+ for i in *.man; do
+ newman "${i}" "${i/.man/.1}"
done
- popd > /dev/null
+ pushd >/dev/null || die
insinto /usr/share/${PN}
doins -r benchmarks tutorial intro matrices
- dodoc 00README* Userguide.pdf documentation/release-notes/*
}