summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin Lecher <jlec@gentoo.org>2012-10-18 18:00:45 +0000
committerJustin Lecher <jlec@gentoo.org>2012-10-18 18:00:45 +0000
commit98cf655c4ad6185416665c2ba02269dc3bbc985a (patch)
tree550786c6b73528afefebafd506872d0f172117db /sci-biology/shrimp/shrimp-2.0.1.ebuild
parentstable ppc, bug #429226 (diff)
downloadhistorical-98cf655c4ad6185416665c2ba02269dc3bbc985a.tar.gz
historical-98cf655c4ad6185416665c2ba02269dc3bbc985a.tar.bz2
historical-98cf655c4ad6185416665c2ba02269dc3bbc985a.zip
sci-biology/shrimp: Do not install elf in usr/share, #438652
Package-Manager: portage-2.2.0_alpha141/cvs/Linux x86_64 Manifest-Sign-Key: 0x70EB7916
Diffstat (limited to 'sci-biology/shrimp/shrimp-2.0.1.ebuild')
-rw-r--r--sci-biology/shrimp/shrimp-2.0.1.ebuild29
1 files changed, 15 insertions, 14 deletions
diff --git a/sci-biology/shrimp/shrimp-2.0.1.ebuild b/sci-biology/shrimp/shrimp-2.0.1.ebuild
index c8d8c0072874..81f1bb11185d 100644
--- a/sci-biology/shrimp/shrimp-2.0.1.ebuild
+++ b/sci-biology/shrimp/shrimp-2.0.1.ebuild
@@ -1,8 +1,8 @@
-# Copyright 1999-2011 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/shrimp/shrimp-2.0.1.ebuild,v 1.5 2011/03/07 15:33:02 tomka Exp $
+# $Header: /var/cvsroot/gentoo-x86/sci-biology/shrimp/shrimp-2.0.1.ebuild,v 1.6 2012/10/18 18:00:44 jlec Exp $
-EAPI="2"
+EAPI=4
inherit flag-o-matic toolchain-funcs
@@ -14,20 +14,20 @@ SRC_URI="http://compbio.cs.toronto.edu/shrimp/releases/SHRiMP_${MY_PV}.src.tar.g
LICENSE="as-is"
SLOT="0"
-IUSE=""
KEYWORDS="amd64 x86"
-
-DEPEND=">=sys-devel/gcc-4.3[openmp]"
-RDEPEND="${DEPEND}" # -lgomp
+IUSE="custom-cflags"
S=${WORKDIR}/SHRiMP_${MY_PV}
pkg_setup() {
- tc-has-openmp || die "At least gcc-4.3 is required for openmp support."
+ if [[ ${CC} == *gcc* ]] && ! tc-has-openmp; then
+ elog "Please set CC to an OPENMP capable compiler (e.g. gcc[openmp] or icc"
+ die "C compiler lacks OPENMP support"
+ fi
}
src_prepare() {
- sed -i -e '1 a #include <stdint.h>' common/dag_glue.cpp || die #294811
+ sed -e '1 a #include <stdint.h>' -i common/dag_glue.cpp || die
# respect LDFLAGS wrt 331823
sed -i -e "s/LDFLAGS/LIBS/" -e "s/\$(LD)/& \$(LDFLAGS)/" \
-e 's/-static//' Makefile || die
@@ -35,14 +35,15 @@ src_prepare() {
src_compile() {
append-flags -fopenmp
+ use custom-cflags || append-flags -O3 # per instructions in BUILDING
tc-export CXX
- emake CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}" || die
+ emake CXXFLAGS="${CXXFLAGS}" LDFLAGS="${LDFLAGS}"
}
src_install() {
- rm bin/README || die
- dobin bin/* || die
+ rm bin/README
+ dobin bin/*
insinto /usr/share/${PN}
- doins -r utils || die
- dodoc HISTORY README TODO SPLITTING_AND_MERGING || die
+ doins -r utils
+ dodoc HISTORY README TODO SPLITTING_AND_MERGING
}