sci-biology/allpathslg: Sanitize ebuild
authorDavid Seifert <soap@gentoo.org>
Sun, 24 Dec 2017 17:59:40 +0000 (18:59 +0100)
committerDavid Seifert <soap@gentoo.org>
Sun, 24 Dec 2017 18:00:27 +0000 (19:00 +0100)
Package-Manager: Portage-2.3.19, Repoman-2.3.6

sci-biology/allpathslg/allpathslg-52488-r2.ebuild

index 391575f4f0576a61b007d49812397dccea571469..964904d66551d2161c58aa6d818545eaf2733aea 100644 (file)
@@ -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() {