commit:     ad80f329e6e91c1c6549c8df3c298a4d1d8a6657
Author:     David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Dec 24 17:59:40 2017 +0000
Commit:     David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Dec 24 18:00:27 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad80f329

sci-biology/allpathslg: Sanitize ebuild

Package-Manager: Portage-2.3.19, Repoman-2.3.6

 sci-biology/allpathslg/allpathslg-52488-r2.ebuild | 19 ++-----------------
 1 file changed, 2 insertions(+), 17 deletions(-)

diff --git a/sci-biology/allpathslg/allpathslg-52488-r2.ebuild 
b/sci-biology/allpathslg/allpathslg-52488-r2.ebuild
index 391575f4f05..964904d6655 100644
--- a/sci-biology/allpathslg/allpathslg-52488-r2.ebuild
+++ b/sci-biology/allpathslg/allpathslg-52488-r2.ebuild
@@ -29,26 +29,11 @@ PATCHES=(
 )
 
 pkg_pretend() {
-       # as of release 44849, GCC 4.7.0 (or higher) is required
-       # seems pre gcc-4.7 users must stay with:
-       # 
ftp://ftp.broadinstitute.org/pub/crd/ALLPATHS/Release-LG/latest_source_code/2013/2013-01/allpathslg-44837.tar.gz
-       if [[ ${MERGE_TYPE} != binary ]]; then
-               tc-is-gcc && [[ $(gcc-version) < 4.7 ]] && \
-                       die "You need to use gcc >4.7"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
 }
 
 pkg_setup() {
-       if ! tc-has-openmp; then
-               ewarn "OpenMP is not available in your current selected 
compiler"
-
-               if tc-is-clang; then
-                       ewarn "OpenMP support in sys-devel/clang is provided by 
sys-libs/libomp,"
-                       ewarn "which you will need to build ${CATEGORY}/${PN} 
with USE=\"openmp\""
-               fi
-
-               die "need openmp capable compiler"
-       fi
+       [[ ${MERGE_TYPE} != binary ]] && tc-check-openmp
 }
 
 src_prepare() {

Reply via email to