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 1Icisx-00034G-JM for garchives@archives.gentoo.org; Tue, 02 Oct 2007 14:38:08 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.14.1/8.14.0) with SMTP id l92ES1TA031091; Tue, 2 Oct 2007 14:28:01 GMT Received: from mail.marples.name (rsm.demon.co.uk [80.177.111.50]) by robin.gentoo.org (8.14.1/8.14.0) with ESMTP id l92EP5Ep026585 for ; Tue, 2 Oct 2007 14:25:05 GMT Received: from [10.73.1.31] (uberlaptop.marples.name [10.73.1.31]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.marples.name (Postfix) with ESMTP id 8F879190038 for ; Tue, 2 Oct 2007 15:25:04 +0100 (BST) Subject: Re: [gentoo-dev] Re: RFC: sh versionator.eclass From: Roy Marples To: gentoo-dev@lists.gentoo.org In-Reply-To: <1191334716.2189.21.camel@uberlaptop.development.ltl> References: <200710012259.40589.uberlord@gentoo.org> <20071002072922.GC24867@gentoo.org> <1191314887.6284.11.camel@uberlaptop.marples.name> <200710020539.33189.vapier@gentoo.org> <1191334716.2189.21.camel@uberlaptop.development.ltl> Content-Type: multipart/mixed; boundary="=-mTYxD0B0cydb/MOP0oET" Organization: Gentoo Date: Tue, 02 Oct 2007 15:25:03 +0100 Message-Id: <1191335103.2189.22.camel@uberlaptop.development.ltl> 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 Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 X-Archives-Salt: f27a4ab7-af28-49db-980e-32f1e5091744 X-Archives-Hash: a5dbed617a724d9d3dbb62b901ddb01e --=-mTYxD0B0cydb/MOP0oET Content-Type: text/plain Content-Transfer-Encoding: 7bit On Tue, 2007-10-02 at 15:18 +0100, Roy Marples wrote: > Attached is a patch to make it posix sh. And here it is --=-mTYxD0B0cydb/MOP0oET Content-Disposition: attachment; filename=molden-sh.patch Content-Type: text/x-patch; name=molden-sh.patch; charset=utf-8 Content-Transfer-Encoding: 7bit Index: molden-4.6.ebuild =================================================================== RCS file: /var/cvsroot/gentoo-x86/sci-chemistry/molden/molden-4.6.ebuild,v retrieving revision 1.3 diff -u -B -r1.3 molden-4.6.ebuild --- molden-4.6.ebuild 30 Jul 2007 12:22:49 -0000 1.3 +++ molden-4.6.ebuild 2 Oct 2007 14:14:13 -0000 @@ -28,7 +28,7 @@ unpack ${A} cd "${S}" - if [[ "${FORTRANC}" = "gfortran" ]]; then + if [ "${FORTRANC}" = "gfortran" ]; then epatch "${FILESDIR}"/${P}-gfortran.patch fi } @@ -37,18 +37,14 @@ # Use -mieee on alpha, according to the Makefile use alpha && append-flags -mieee - # Honor CC, CFLAGS, FC, and FFLAGS from environment; - # unfortunately a bash bug prevents us from doing typeset and - # assignment on the same line. - typeset -a args - args=( CC="$(tc-getCC) ${CFLAGS}" \ - FC="${FORTRANC}" LDR="${FORTRANC}" FFLAGS="${FFLAGS}" ) + set -- CC="$(tc-getCC) ${CFLAGS}" \ + FC="${FORTRANC}" LDR="${FORTRANC}" FFLAGS="${FFLAGS}" einfo "Building Molden..." - emake -j1 "${args[@]}" || die "molden emake failed" + emake -j1 "$@" || die "molden emake failed" if use opengl ; then einfo "Building Molden OpenGL helper..." - emake -j1 "${args[@]}" moldenogl || die "moldenogl emake failed" + emake -j1 "$@" moldenogl || die "moldenogl emake failed" fi } --=-mTYxD0B0cydb/MOP0oET-- -- gentoo-dev@gentoo.org mailing list