diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-11-10 20:26:49 -0500 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-11-10 20:53:23 -0500 |
commit | 2347c6fe886c6b89d93ffac0faf375a613c372b1 (patch) | |
tree | 9ac1ed0abe7e86cbfe62a110a23675af21655134 /dev-python/cvxopt | |
parent | net-libs/mbedtls: version bump to 2.1.3 (diff) | |
download | gentoo-2347c6fe886c6b89d93ffac0faf375a613c372b1.tar.gz gentoo-2347c6fe886c6b89d93ffac0faf375a613c372b1.tar.bz2 gentoo-2347c6fe886c6b89d93ffac0faf375a613c372b1.zip |
avoid using ${var^} and ${var,} as they do not work in bash-3.2
Once these upgrade to EAPI=6, they can use these case modification
features, so leave a reminder note in there.
Diffstat (limited to 'dev-python/cvxopt')
-rw-r--r-- | dev-python/cvxopt/cvxopt-1.1.6-r2.ebuild | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/dev-python/cvxopt/cvxopt-1.1.6-r2.ebuild b/dev-python/cvxopt/cvxopt-1.1.6-r2.ebuild index 256fcd3eb840..150ba1525895 100644 --- a/dev-python/cvxopt/cvxopt-1.1.6-r2.ebuild +++ b/dev-python/cvxopt/cvxopt-1.1.6-r2.ebuild @@ -61,9 +61,13 @@ python_prepare_all(){ } use_cvx() { - if use $1 ; then + local flag=$1 + if use ${flag} ; then + # Switch to ^^ when we switch to EAPI=6. + #local uflag=${flag^^} + local uflag=$(tr '[:lower:]' '[:upper:]' <<<"${flag}") sed -i \ - -e "s/\(BUILD_${1^^} =\) 0/\1 1/" \ + -e "s/\(BUILD_${uflag} =\) 0/\1 1/" \ setup.py || die fi } |