summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-11-09 14:14:49 +0000
committerJustin Lecher <jlec@gentoo.org>2012-11-09 14:14:49 +0000
commit6bd704e8256bfc5724147ff784457a1c5b09d4ff (patch)
treed2cfe9a22a32c0e66abb3a013f3fa24baed06e48 /sci-biology/qrna
parentsci-mathematics/cgal: Addmissing dep on virtual/glu, #438504 (diff)
downloadgentoo-2-6bd704e8256bfc5724147ff784457a1c5b09d4ff.tar.gz
gentoo-2-6bd704e8256bfc5724147ff784457a1c5b09d4ff.tar.bz2
gentoo-2-6bd704e8256bfc5724147ff784457a1c5b09d4ff.zip
sci-biology/qrna: Move to EAPI=4
(Portage version: 2.2.0_alpha142/cvs/Linux x86_64, signed Manifest commit with key 70EB7916)
Diffstat (limited to 'sci-biology/qrna')
-rw-r--r--sci-biology/qrna/ChangeLog7
-rw-r--r--sci-biology/qrna/qrna-2.0.3c-r1.ebuild55
2 files changed, 31 insertions, 31 deletions
diff --git a/sci-biology/qrna/ChangeLog b/sci-biology/qrna/ChangeLog
index 0f5150b086a6..79254c1ce621 100644
--- a/sci-biology/qrna/ChangeLog
+++ b/sci-biology/qrna/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for sci-biology/qrna
-# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/qrna/ChangeLog,v 1.21 2010/03/10 21:13:06 jlec Exp $
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/qrna/ChangeLog,v 1.22 2012/11/09 14:14:49 jlec Exp $
+
+ 09 Nov 2012; Justin Lecher <jlec@gentoo.org> qrna-2.0.3c-r1.ebuild:
+ Move to EAPI=4
*qrna-2.0.3c-r1 (10 Mar 2010)
diff --git a/sci-biology/qrna/qrna-2.0.3c-r1.ebuild b/sci-biology/qrna/qrna-2.0.3c-r1.ebuild
index 257bffd7f3e6..88bd2c9f3fd3 100644
--- a/sci-biology/qrna/qrna-2.0.3c-r1.ebuild
+++ b/sci-biology/qrna/qrna-2.0.3c-r1.ebuild
@@ -1,6 +1,8 @@
-# Copyright 1999-2010 Gentoo Foundation
+# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sci-biology/qrna/qrna-2.0.3c-r1.ebuild,v 1.1 2010/03/10 21:13:06 jlec Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/qrna/qrna-2.0.3c-r1.ebuild,v 1.2 2012/11/09 14:14:49 jlec Exp $
+
+EAPI=4
inherit eutils toolchain-funcs
@@ -13,48 +15,43 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
-RDEPEND="dev-lang/perl
+RDEPEND="
+ dev-lang/perl
sci-biology/hmmer"
DEPEND="${RDEPEND}"
-src_unpack() {
- unpack ${A}
- cd "${S}"
- epatch "${FILESDIR}"/${P}-glibc-2.10.patch
- epatch "${FILESDIR}"/${P}-ldflags.patch
- sed -e "s/^CC.*/CC = $(tc-getCC)/" \
- -e "s/CFLAGS = -O/CFLAGS = ${CFLAGS}/" \
- -i src/Makefile squid/Makefile squid02/Makefile || die
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-glibc-2.10.patch \
+ "${FILESDIR}"/${P}-ldflags.patch
+ sed \
+ -e "s:^CC.*:CC = $(tc-getCC):" \
+ -e "/^AR/s:ar:$(tc-getAR):g" \
+ -e "/^RANLIB/s:ranlib:$(tc-getRANLIB):g" \
+ -e "/CFLAGS/s:=.*$:= ${CFLAGS}:" \
+ -i {src,squid,squid02}/Makefile || die
rm -v squid*/*.a
}
src_compile() {
- cd "${S}"/squid
- emake || die
-
- cd "${S}"/squid02
- emake || die
-
- cd "${S}"/src
- emake || die
+ local dir
+ for dir in squid squid02 src; do
+ emake -C ${dir}
+ done
}
src_install () {
- cd "${S}"/src
- dobin cfgbuild eqrna eqrna_sample main rnamat_main || die
-
- cd "${S}"
- dobin scripts/* || die
+ dobin src/{cfgbuild,eqrna,eqrna_sample,rnamat_main} scripts/*
- newdoc 00README README || die
+ newdoc 00README README
insinto /usr/share/doc/${PF}
- doins documentation/* || die
+ doins documentation/*
insinto /usr/share/${PN}/data
- doins lib/* || die
+ doins lib/*
insinto /usr/share/${PN}/demos
- doins Demos/* || die
+ doins Demos/*
# Sets the path to the QRNA data files.
- doenvd "${FILESDIR}"/26qrna || die
+ doenvd "${FILESDIR}"/26qrna
}