From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1J84L1-0008Ta-9N for garchives@archives.gentoo.org; Fri, 28 Dec 2007 01:48:39 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.2/8.14.0) with SMTP id lBS1lm3a021044; Fri, 28 Dec 2007 01:47:48 GMT Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.172]) by robin.gentoo.org (8.14.2/8.14.0) with ESMTP id lBS1jwbY018932 for ; Fri, 28 Dec 2007 01:45:58 GMT Received: by ug-out-1314.google.com with SMTP id j3so1954607ugf.49 for ; Thu, 27 Dec 2007 17:45:58 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:received:subject:from:to:references:in-reply-to:date:message-id:user-agent:content-type; bh=UmTAcmSyuvLHc9Lmya1wbqAYgqMB5aDkZJahDvaq1xc=; b=lBqBhOK6VPi3yj7+uxOj7rbaukr+pPeoZYtwzXkNmSdXORB7VIQ240nzz8v0aJpmpGQgM2dtNxSfhLNPnZnZi8CBOYQRHi+paixaEXR1yw3+tnb1FkkwtH+wL5pAXXEC5lQwL1oeSKQeUQ5dYofvW6FMPvJwJiXiWg4KUV7qlAg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:references:in-reply-to:date:message-id:user-agent:content-type; b=LPZiWwkaa7utglI+l8CFQP2/qRCfHghfgBbidFRvwDm3TdZBitd8g6DC2QkD0PHQVg4znaWO8wZq3NPJZl/pvme4JhivkZS4+Qe+KIdsTKnlvSOojhKwwSD8HoOzLkVQYPqtmL+AqilDFNPDuaM/le9sCzmfh8iRhhZZ5d6/xjE= Received: by 10.66.241.13 with SMTP id o13mr7517269ugh.57.1198806357943; Thu, 27 Dec 2007 17:45:57 -0800 (PST) Received: from indigo.ivh.com ( [83.101.12.90]) by mx.google.com with ESMTPS id 5sm10260710ugc.25.2007.12.27.17.45.54 (version=TLSv1/SSLv3 cipher=OTHER); Thu, 27 Dec 2007 17:45:55 -0800 (PST) Received: by indigo.ivh.com (Postfix, from userid 1000) id 1B6927994C; Fri, 9 Nov 2007 03:46:15 +0100 (CET) Subject: Re: [gentoo-dev] Re: New eclass: cmake-utils.eclass From: Ingmar Vanhassel To: gentoo-dev References: <200709092115.17423.philantrop@gentoo.org> <47333764.2020503@necoro.eu> <47339BAF.30409@necoro.eu> In-Reply-To: <47339BAF.30409@necoro.eu> Date: Fri, 09 Nov 2007 03:46:15 +0100 Message-Id: <1194576034-sup-8763@indigo> User-Agent: Sup/0.2 Content-Type: text/plain; charset=utf-8 Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Archives-Salt: 1e8cde79-379d-46c6-90a6-446794acc928 X-Archives-Hash: 5eed93630a4ff8f19ba0ba5f2c0a987d Excerpts from René 'Necoro' Neumann's message of Fri Nov 09 00:28:47 +0100 2007: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Steve Long schrieb: > > René 'Necoro' Neumann wrote: > >> cmake-utils_src_enable python => -DENABLE_python=... > >> > >> Wanted would be that it returned -DENABLE_PYTHON=... > >> > >> I'm not into bash scripting that much, so I do not know a way to do so - > >> but I guess someone else is ;) > >> > > Unfortunately BASH doesn't support ksh93 or zsh style casting to uppercase. > > The best way really is via tr: > > alias toUpper='tr [[:lower:]] [[:upper:]]' > > alias toLower='tr [[:upper:]] [[:lower:]]' > > > > (er aliases don't normally work in scripts, but you get the idea.) Bear in > > mind that tr reads stdin and writes to stdout. It has the advantage of > > being locale-safe. Every other method I've looked at is much slower and > > only works with ASCII. > > > > A function wouldn't be too hard: > > toUpper() { > > for i; do > > echo "$i" |tr [[:lower:]] [[:upper:]] > > done > > } > > > > Usage depends on the parameters you pass. > > var=$(toUpper $var) # for single vars with no newlines in > > This is right the version I've chosen ... so with the help of Steve: a > small patch ;) > > Regards, > Necoro > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.4.7 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iD4DBQFHM5uv4UOg/zhYFuARAuELAJjnlDCFDMm3e2mJqYuyT4nkFoaaAJ4go9qp > Qca9r8Y7LpD0YSSylUh2BQ== > =517n > -----END PGP SIGNATURE----- Hi Necoro, It looks like you want to use 'cmake-utils_use_enable python PYTHON' It's mentioned in the cmake-utils.eclass manpage (app-portage/eclass-manpages), as well as in the patch you just sent: cmake-utils_use_enable [flag name] :-) Regards, Ingmar Vanhassel -- gentoo-dev@gentoo.org mailing list