mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-11-06 17:47:07 -08:00
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.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
# Copyright 1999-2014 Gentoo Foundation
|
||||
# Copyright 1999-2015 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Id$
|
||||
|
||||
@@ -12,7 +12,9 @@ DESCRIPTION="A simple Python object interface to a MySQL database schema"
|
||||
HOMEPAGE="http://matuson.com/code/schemaobject/"
|
||||
SRC_URI="http://www.matuson.com/code/schemaobject/downloads/${P}.tar.gz"
|
||||
|
||||
pn="${PN,,}"
|
||||
# Switch to ,, when we switch to EAPI=6.
|
||||
#pn="${PN,,}"
|
||||
pn="schemaobject"
|
||||
S="${WORKDIR}/${pn}"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user