Gentoo Archives: gentoo-dev

From: Greg KH <gregkh@g.o>
To: Christian Faulhammer <opfer@g.o>
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/moreutils: moreutils-0.29.ebuild ChangeLog Manifest
Date: Sun, 11 May 2008 05:11:56
Message-Id: 20080511050537.GA8817@kroah.com
In Reply to: [gentoo-dev] Re: [gentoo-commits] gentoo-x86 commit in sys-apps/moreutils: moreutils-0.29.ebuild ChangeLog Manifest by Christian Faulhammer
1 On Sat, May 10, 2008 at 09:50:24AM +0200, Christian Faulhammer wrote:
2 > "Greg Kroah-Hartman (gregkh)" <gregkh@g.o>:
3 >
4 > > Added: moreutils-0.29.ebuild ChangeLog Manifest
5 > > Log:
6 > > initial ebuild for the moreutils package
7 > > src_unpack() {
8 > > unpack ${A}
9 > > cd "${WORKDIR}/moreutils"
10 > > epatch "${FILESDIR}/docbook-makefile.patch"
11 > > }
12 > >
13 > > src_compile() {
14 > > cd "${WORKDIR}/moreutils"
15 > > emake CFLAGS="${CFLAGS}" || die "emake failed"
16 > > }
17 > >
18 > > src_install() {
19 > > cd "${WORKDIR}/moreutils"
20 > > emake PREFIX="${D}" install || die "install failed"
21 > > }
22 >
23 >
24 > Wouldn't it be easier to set S=${WORKDIR}/${PN} instead of cd'ing
25 > three times worthlessly? The line before epatch is necessary though.
26
27 Didn't realize I could override that, I'll consider it if I can't
28 convince upstream to put the version number in the directory name :)
29
30 thanks,
31
32 greg k-h
33 --
34 gentoo-dev@l.g.o mailing list