From: | Mike Frysinger <vapier@g.o> | ||
---|---|---|---|
To: | gentoo-dev@l.g.o | ||
Cc: | Donnie Berkholz <dberkholz@g.o>, ribosome@g.o | ||
Subject: | Re: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sci-biology/phylip: ChangeLog phylip-3.67.ebuild | ||
Date: | Thu, 20 Sep 2007 02:12:04 | ||
Message-Id: | 200709192157.01868.vapier@gentoo.org | ||
In Reply to: | [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sci-biology/phylip: ChangeLog phylip-3.67.ebuild by Donnie Berkholz |
1 | On Wednesday 19 September 2007, Donnie Berkholz wrote: |
2 | > On 18:32 Wed 19 Sep , Olivier Fisette (ribosome) wrote: |
3 | > > Modified: ChangeLog |
4 | > > Added: phylip-3.67.ebuild |
5 | > > Log: |
6 | > > New upstream version. |
7 | > > (Portage version: 2.1.3.9) |
8 | > > |
9 | > > |
10 | > > file : |
11 | > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/phylip/Change |
12 | > >Log?rev=1.27&view=markup plain: |
13 | > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/phylip/Change |
14 | > >Log?rev=1.27&content-type=text/plain diff : |
15 | > > http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-biology/phylip/Change |
16 | > >Log?r1=1.26&r2=1.27 |
17 | > > |
18 | > > src_compile() { |
19 | > > sed -e "s/CFLAGS = -O3 -fomit-frame-pointer/CFLAGS = ${CFLAGS}/" \ |
20 | > > -e "s/CC = cc/CC = $(tc-getCC)/" \ |
21 | > > -e "s/DC = cc/DC = $(tc-getCC)/" \ |
22 | > > -i Makefile || die "Patching Makefile failed." |
23 | > |
24 | > This sed is pretty fragile, since it relies on upstream not changing the |
25 | > spacing or the default CFLAGS. Better tokens might do something like this: |
26 | > |
27 | > sed -e "s:^\(CFLAGS.*=\).*:\1 ${CFLAGS}:g" |
28 | |
29 | or do a match/replace and let the env accumulate like normal: |
30 | sed -e '/^CFLAGS =/s:=.*:+=:' |
31 | -mike |
File name | MIME type |
---|---|
signature.asc | application/pgp-signature |