summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Seifert <soap@gentoo.org>2016-10-09 16:52:52 +0200
committerDavid Seifert <soap@gentoo.org>2016-10-09 17:14:23 +0200
commit895b3abfbdacf52dbd7a0e817eb7ebf101ce55a7 (patch)
tree7cafda14d91b81beace2f8dfdbfdcf343e314ce4 /sci-biology/hmmer/hmmer-2.3.2-r4.ebuild
parentsci-biology/hmmer: Version bump to 3.1_beta2 (diff)
downloadgentoo-895b3abfbdacf52dbd7a0e817eb7ebf101ce55a7.tar.gz
gentoo-895b3abfbdacf52dbd7a0e817eb7ebf101ce55a7.tar.bz2
gentoo-895b3abfbdacf52dbd7a0e817eb7ebf101ce55a7.zip
sci-biology/hmmer: Properly SLOT=2 hmmer-2.3.2
Gentoo-bug: 328911, 586960 * EAPI=6 * Introduce SLOT=2 and rename binaries and static libraries Package-Manager: portage-2.3.1
Diffstat (limited to 'sci-biology/hmmer/hmmer-2.3.2-r4.ebuild')
-rw-r--r--sci-biology/hmmer/hmmer-2.3.2-r4.ebuild75
1 files changed, 75 insertions, 0 deletions
diff --git a/sci-biology/hmmer/hmmer-2.3.2-r4.ebuild b/sci-biology/hmmer/hmmer-2.3.2-r4.ebuild
new file mode 100644
index 000000000000..7cecfe624732
--- /dev/null
+++ b/sci-biology/hmmer/hmmer-2.3.2-r4.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=6
+
+DESCRIPTION="Sequence analysis using profile hidden Markov models"
+LICENSE="GPL-2"
+HOMEPAGE="http://hmmer.org/"
+SRC_URI="http://eddylab.org/software/${PN}/${PV}/${P}.tar.gz"
+
+SLOT="2"
+IUSE="altivec test threads"
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DEPEND="test? ( dev-lang/perl )"
+RDEPEND=""
+
+PATCHES=(
+ "${FILESDIR}/${P}-fix-perl-shebangs.patch"
+ "${FILESDIR}/${P}-fix-build-system-destdir.patch"
+)
+
+src_configure() {
+ # prevent stray environmental variable
+ # from causing issues in the test phase
+ unset TMPDIR
+
+ econf \
+ --enable-lfs \
+ $(use_enable altivec) \
+ $(use_enable threads)
+}
+
+src_install() {
+ default
+
+ newlib.a src/libhmmer.a libhmmer2.a
+ insinto /usr/include/hmmer2
+ doins src/*.h
+
+ dobin squid/{afetch,alistat,compalign,compstruct,revcomp,seqstat,seqsplit,sfetch,shuffle,sreformat,sindex,weight,translate}
+ dolib.a squid/libsquid.a
+ insinto /usr/include/hmmer2
+ doins squid/*.h
+
+ dodoc NOTES Userguide.pdf
+ newdoc 00README README
+
+ # rename files due to collisions with hmmer-3
+ # in order to make SLOTing possible
+ local i
+
+ # first rename man pages...
+ pushd "${ED%/}"/usr/share/man/man1/ >/dev/null || die
+ for i in hmm*.1; do
+ mv ${i%.1}{,2}.1 || die
+ done
+ popd >/dev/null || die
+
+ # ... then rename binaries
+ pushd "${ED%/}"/usr/bin/ >/dev/null || die
+ for i in hmm*; do
+ mv ${i}{,2} || die
+ done
+ popd >/dev/null || die
+}
+
+pkg_postinst() {
+ elog "All ${P} binaries have been renamed, in order"
+ elog "to avoid collisions with hmmer-3. For instance"
+ elog
+ elog " hmmalign -> hmmalign2"
+ elog
+}