From: "Justin Lecher" <jlec@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: sci-biology/estscan/
Date: Thu, 23 Jun 2011 09:31:19 +0000 (UTC) [thread overview]
Message-ID: <19436f14054cdfa74b4b5cbf0b9706ee5ba30338.jlec@gentoo> (raw)
commit: 19436f14054cdfa74b4b5cbf0b9706ee5ba30338
Author: Justin Lecher <jlec <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 23 09:10:47 2011 +0000
Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
CommitDate: Thu Jun 23 09:10:47 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=19436f14
Streamlined fortran-2 eclass usage
(Portage version: 2.2.0_alpha41/git/Linux x86_64, signed Manifest commit with key 70EB7916)
---
sci-biology/estscan/ChangeLog | 4 ++
sci-biology/estscan/estscan-3.0.3.ebuild | 65 +++++++++++++++++------------
sci-biology/estscan/metadata.xml | 3 +-
3 files changed, 43 insertions(+), 29 deletions(-)
diff --git a/sci-biology/estscan/ChangeLog b/sci-biology/estscan/ChangeLog
index 53ccd85..ff0f2e4 100644
--- a/sci-biology/estscan/ChangeLog
+++ b/sci-biology/estscan/ChangeLog
@@ -2,6 +2,10 @@
# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
# $Header: $
+ 23 Jun 2011; Justin Lecher <jlec@gentoo.org> estscan-3.0.3.ebuild,
+ metadata.xml:
+ Streamlined fortran-2 eclass usage
+
21 Jun 2011; Justin Lecher <jlec@gentoo.org> estscan-3.0.3.ebuild,
metadata.xml:
Added fortran-2.eclass support
diff --git a/sci-biology/estscan/estscan-3.0.3.ebuild b/sci-biology/estscan/estscan-3.0.3.ebuild
index 31c1537..d282860 100644
--- a/sci-biology/estscan/estscan-3.0.3.ebuild
+++ b/sci-biology/estscan/estscan-3.0.3.ebuild
@@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI=3
+EAPI=4
-inherit eutils fortran-2 toolchain-funcs perl-module
+inherit eutils fortran-2 perl-module toolchain-funcs
DESCRIPTION="Prediction of coding regions in DNA/RNA sequences"
HOMEPAGE="http://sourceforge.net/projects/estscan/"
@@ -22,28 +22,33 @@ SRC_URI="
SLOT="0"
LICENSE="estscan"
KEYWORDS="~x86 ~amd64"
-IUSE="icc ifc"
+IUSE="intel"
-DEPEND="icc? ( dev-lang/icc )
- ifc? ( dev-lang/ifc )"
-RDEPEND=""
+DEPEND="
+ virtual/fortran
+ intel? (
+ dev-lang/icc
+ dev-lang/ifc )"
+RDEPEND="${DEPEND}"
S="${WORKDIR}"
-src_compile() {
- #
- sed -e 's/\\rm -f/rm -rf/' \
- -e 's/^ LDFLAGS = -lm/LDFLAGS = -lm/' -i "${P}"/Makefile || die "failed to edit Makefile"
+src_prepare() {
+ sed \
+ -e 's/\\rm -f/rm -rf/' \
+ -e 's/^ LDFLAGS = -lm/LDFLAGS = -lm/' \
+ -i "${P}"/Makefile || die "failed to edit Makefile"
# fix hard-coded paths
sed -e 's+/usr/molbio/share/ESTScan+/usr/share/ESTscan+' -i "${P}"/estscan.c || die
sed -e 's+/usr/molbio/share/ESTScan+/usr/share/ESTscan+' -i "${P}"/estscan.spec || die
if ! use icc; then
- sed -e 's/^ CFLAGS = -O2/#CFLAGS = ${CFLAGS}/' \
+ sed \
+ -e 's/^ CFLAGS = -O2/#CFLAGS = ${CFLAGS}/' \
-e 's/^ FFLAGS = -O2/#FFLAGS = ${FFLAGS}/' \
-e "s/^ F77 = g77/F77 = $(tc-getF77)/" -i "${P}"/Makefile \
- || die "blah"
+ || die
else
# FIXME: I would use $(tc-getCC) instead of hard-coded icc but it gives
# me gcc instead, same for $(tc-getF77)
@@ -54,49 +59,55 @@ src_compile() {
# FIXME: below as a dirty hack I force gfortran instead of ifort for
# my testing purposes. Didn't ebuild contain "PROVIDES" line?
# Same for FFLAGS.
- sed -e "s:^# CC = icc:CC = icc:" \
- -e "s:^# CFLAGS = -O3 -ipo -axP:#CFLAGS = -O3 -ipo -axP:" \
+ sed \
+ -e "s:^# CC = icc:CC = icc:" \
+ -e "s:^# CFLAGS = -O3 -ipo -axP:#CFLAGS = -O3 -ipo -axP:" \
-e "s:^# FFLAGS = -O3 -ipo -axP:#FFLAGS = -O3 -ipo -axP:" \
-e "s/^ CFLAGS = -O2/#CFLAGS = -O2/" \
-e "s/^# F77 = ifort/F77 = gfortran/" \
-e "s/^ FFLAGS = -O2/#FFLAGS = -O2/" \
-e "s/^ CC = gcc/# CC = gcc/" \
- -e "s/^ F77 = g77/# F77 = g77/" -i "${P}"/Makefile || die "sed failed to fix CFLAGS, FFLAGS, CC, F77"
+ -e "s/^ F77 = g77/# F77 = g77/" \
+ -i "${P}"/Makefile || die "sed failed to fix CFLAGS, FFLAGS, CC, F77"
fi
- cd "${P}" || die "chdir "${P}" failed"
- emake || die "emake failed"
+}
+
+src_compile() {
+ emake -C ${P}
- cd ../BTLib-0.19 || die "cd ../BTLib-0.19 failed"
+ cd ../BTLib-0.19
perl Makefile.PL || die "perl Makefile.PL failed"
}
src_install() {
# FIXME: Some kind of documentation is in {P}/estscan.spec
- cd "${P}"
- dobin build_model estscan evaluate_model extract_EST extract_UG_EST extract_mRNA makesmat maskred prepare_data winsegshuffle || die "dobin failed"
+ cd ${P}
+ dobin \
+ build_model estscan evaluate_model extract_EST extract_UG_EST \
+ extract_mRNA makesmat maskred prepare_data winsegshuffle
# the file build_model_utils.pl should go into some PERL site-packages dir
# see {P}/estscan.spec
# install the doc (but is not in ${WORKDIR} because src_UNPACK() failed on it
- cd "${WORKDIR}" || die
+ cd "${WORKDIR}"
insinto /usr/share/doc/ESTscan
# grab the file directly from ../distdir/
- doins ../distdir/user_guide_fev_07.pdf || die "failed to install user_guide_fev_07.pdf"
+ doins ../distdir/user_guide_fev_07.pdf
# install the default precomputed matrices
- cd "${WORKDIR}" || die
+ cd "${WORKDIR}"
insinto /usr/share/ESTscan
- doins *.smat || die "Failed to install matrices"
+ doins *.smat
# install BTlib (in perl)
cd BTLib-0.19 || die
- dobin fetch indexer netfetch || die "dobin failed"
+ dobin fetch indexer netfetch
insinto /usr/share/ESTscan/
- doins fetch.conf || die "Failed to install fetch.conf"
+ doins fetch.conf
# FIXME: install the *.pm files from BTLib-0.19
myinst="DESTDIR=${D}"
- perl-module_src_install || die "perl-module_src_install failed"
+ perl-module_src_install
einfo "Please edit /usr/share/ESTscan/fetch.conf to fit your local database layout."
einfo "Also create your own scoring matrices and place them into /usr/share/ESTscan/."
diff --git a/sci-biology/estscan/metadata.xml b/sci-biology/estscan/metadata.xml
index cf485a9..a68ccd8 100644
--- a/sci-biology/estscan/metadata.xml
+++ b/sci-biology/estscan/metadata.xml
@@ -6,6 +6,5 @@
<email>mmokrejs@fold.natur.cuni.cz</email>
<name>Martin Mokrejs</name>
</maintainer>
-<use><flag name='ifc'> Use ifc</flag></use>
-<use><flag name='icc'> Use icc</flag></use>
+<use><flag name='intel'> Use intel compiler</flag></use>
</pkgmetadata>
next reply other threads:[~2011-06-23 9:31 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-06-23 9:31 Justin Lecher [this message]
-- strict thread matches above, loose matches on Subject: below --
2021-01-19 17:09 [gentoo-commits] proj/sci:master commit in: sci-biology/estscan/ Andrew Ammerlaan
2014-09-24 6:45 Justin Lecher
2013-03-03 17:52 Justin Lecher
2011-12-13 9:41 Martin Mokrejs
2011-12-12 12:09 Martin Mokrejs
2011-12-12 11:57 Martin Mokrejs
2011-07-30 11:05 Martin Mokrejs
2011-06-21 11:54 Justin Lecher
2011-02-14 20:52 Martin Mokrejs
2011-02-14 16:40 Martin Mokrejs
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=19436f14054cdfa74b4b5cbf0b9706ee5ba30338.jlec@gentoo \
--to=jlec@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox