summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Mokrejš <mmokrejs@fold.natur.cuni.cz>2017-04-14 11:52:36 +0200
committerJustin Lecher <jlec@gentoo.org>2017-04-22 17:09:51 +0100
commit3cc49dd6ca6d216bfc03f0d4629d806670530d7b (patch)
treefe3f06f1887a8df3a3e73a9ae72d9212599a0309 /sci-biology/velvet/velvet-1.2.10.ebuild
parentsci-biology/velvet: expose additional variables as described in manual and ne... (diff)
downloadgentoo-3cc49dd6ca6d216bfc03f0d4629d806670530d7b.tar.gz
gentoo-3cc49dd6ca6d216bfc03f0d4629d806670530d7b.tar.bz2
gentoo-3cc49dd6ca6d216bfc03f0d4629d806670530d7b.zip
sci-biology/velvet: simplify tests in ebuild
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/velvet/velvet-1.2.10.ebuild')
-rw-r--r--sci-biology/velvet/velvet-1.2.10.ebuild12
1 files changed, 6 insertions, 6 deletions
diff --git a/sci-biology/velvet/velvet-1.2.10.ebuild b/sci-biology/velvet/velvet-1.2.10.ebuild
index 53f5dd644f91..31560aee1886 100644
--- a/sci-biology/velvet/velvet-1.2.10.ebuild
+++ b/sci-biology/velvet/velvet-1.2.10.ebuild
@@ -26,7 +26,7 @@ src_prepare() {
if ! use doc; then
sed -i -e '/default :/ s/doc//' "${S}"/Makefile || die
fi
- elog "Upstream recommendes using -O3 in CFLAGS"
+ elog "Upstream recommends using -O3 in CFLAGS"
echo
elog "To adjust the MAXKMERLENGTH, CATEGORIES, BIGASSEMBLY, LONGSEQUENCES parameters"
elog "as described in the PDF manual, please set the variables by prepending VELVET_ in"
@@ -53,11 +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
+ use openmp && MAKE_XOPTS+=( OPENMP=1 )
+ test "${VELVET_MAXKMERLENGTH}" != "" && MAKE_XOPTS+=( MAXKMERLENGTH=${VELVET_MAXKMERLENGTH} )
+ test "${VELVET_CATEGORIES}" != "" && MAKE_XOPTS+=( CATEGORIES=${VELVET_CATEGORIES} )
+ test "${VELVET_BIGASSEMBLY}" != "" && MAKE_XOPTS+=( BIGASSEMBLY=${VELVET_BIGASSEMBLY} )
+ test "${VELVET_LONGSEQUENCES}" != "" && MAKE_XOPTS+=( LONGSEQUENCES=${VELVET_LONGSEQUENCES} )
}
src_compile() {