diff options
author | Martin Mokrejš <mmokrejs@fold.natur.cuni.cz> | 2017-04-14 09:42:19 +0200 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2017-04-22 17:09:51 +0100 |
commit | 6b672731c97e773142cbc7ee9a5a09cf2c4c5d60 (patch) | |
tree | 98646d21dbe8eef267b53588589d23f472a2eadf /sci-biology | |
parent | fix license (diff) | |
download | gentoo-6b672731c97e773142cbc7ee9a5a09cf2c4c5d60.tar.gz gentoo-6b672731c97e773142cbc7ee9a5a09cf2c4c5d60.tar.bz2 gentoo-6b672731c97e773142cbc7ee9a5a09cf2c4c5d60.zip |
sci-biology/velvet: expose additional variables as described in manual and needed at compile time
Package-Manager: Portage-2.3.5, Repoman-2.3.2
Closes: https://github.com/gentoo/gentoo/pull/4421
Signed-off-by: Justin Lecher <jlec@gentoo.org>
Diffstat (limited to 'sci-biology')
-rw-r--r-- | sci-biology/velvet/velvet-1.2.10.ebuild | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/sci-biology/velvet/velvet-1.2.10.ebuild b/sci-biology/velvet/velvet-1.2.10.ebuild index c6c841be3e47..53f5dd644f91 100644 --- a/sci-biology/velvet/velvet-1.2.10.ebuild +++ b/sci-biology/velvet/velvet-1.2.10.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2013 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 @@ -28,9 +28,11 @@ src_prepare() { fi elog "Upstream recommendes using -O3 in CFLAGS" echo - elog "To adjust the MAXKMERLENGTH or CATEGORIES parameters as described in the manual," - elog "please set the variables VELVET_MAXKMERLENGTH or VELVET_CATEGORIES in your" - elog "environment or /etc/make.conf, then re-emerge the package. For example:" + elog "To adjust the MAXKMERLENGTH, CATEGORIES, BIGASSEMBLY, LONGSEQUENCES parameters" + elog "as described in the PDF manual, please set the variables by prepending VELVET_ in" + elog "front of it. For example VELVET_MAXKMERLENGTH, VELVET_CATEGORIES, ..." + elog "Set them either in your environment or in /etc/portage/make.conf, then re-emerge" + elog "the package. For example:" elog " VELVET_MAXKMERLENGTH=NN emerge [options] velvet" MAKEOPTS+=" -j1" @@ -51,8 +53,11 @@ src_prepare() { CFLAGS="${CFLAGS}" OPT="${CFLAGS}" ) + if use openmp; then MAKE_XOPTS+=( OPENMP=1 ); fi if [[ ${VELVET_MAXKMERLENGTH} != "" ]]; then MAKE_XOPTS+=( MAXKMERLENGTH=${VELVET_MAXKMERLENGTH} ); fi if [[ ${VELVET_CATEGORIES} != "" ]]; then MAKE_XOPTS+=( CATEGORIES=${VELVET_CATEGORIES} ); fi + if [[ ${VELVET_BIGASSEMBLY} != "" ]]; then MAKE_XOPTS+=( BIGASSEMBLY=${VELVET_BIGASSEMBLY} ); fi + if [[ ${VELVET_LONGSEQUENCES} != "" ]]; then MAKE_XOPTS+=( LONGSEQUENCES=${VELVET_LONGSEQUENCES} ); fi } src_compile() { |