Gentoo Archives: gentoo-devhelp

From: Michael Orlitzky <michael@××××××××.com>
To: gentoo-devhelp@l.g.o
Subject: Re: [gentoo-devhelp] Trouble with package.env files
Date: Mon, 28 May 2012 16:25:41
Message-Id: 4FC3A6EF.4070000@orlitzky.com
In Reply to: [gentoo-devhelp] Trouble with package.env files by Nikos Chantziaras
1 On 05/27/2012 04:21 PM, Nikos Chantziaras wrote:
2 > I have this in /etc/portage/package.env:
3 >
4 > app-emulation/emul-linux-x86-soundlibs soundlibs-delete-jack.conf
5 >
6 > and this in /etc/portage/env/soundlibs-delete-jack.conf:
7 >
8 > if [ "${EBUILD_PHASE}" == "src_prepare"] ;
9 > then
10 > rm -rf "${S}"/usr/lib32/jack
11 > rm -f $(find "${S}" -name 'libjack*')
12 > fi
13 >
14
15 You already figured out how to get it working, but for posterity, this
16 is a stupid shell relic:
17
18 if [ 1 == 1 ]; then
19 # Works
20 fi
21
22 if [ 1 == 1]; then
23 # Crashes
24 fi