FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo Development

 
 
LinkBack Thread Tools
 
Old 05-10-2008, 07:50 AM
Christian Faulhammer
 
Default gentoo-x86 commit in sys-apps/moreutils: moreutils-0.29.ebuild ChangeLog Manifest

"Greg Kroah-Hartman (gregkh)" <gregkh@gentoo.org>:

> Added: moreutils-0.29.ebuild ChangeLog Manifest
> Log:
> initial ebuild for the moreutils package
> src_unpack() {
> unpack ${A}
> cd "${WORKDIR}/moreutils"
> epatch "${FILESDIR}/docbook-makefile.patch"
> }
>
> src_compile() {
> cd "${WORKDIR}/moreutils"
> emake CFLAGS="${CFLAGS}" || die "emake failed"
> }
>
> src_install() {
> cd "${WORKDIR}/moreutils"
> emake PREFIX="${D}" install || die "install failed"
> }


Wouldn't it be easier to set S=${WORKDIR}/${PN} instead of cd'ing
three times worthlessly? The line before epatch is necessary though.

V-Li

--
Christian Faulhammer, Gentoo Lisp project
<URL:http://www.gentoo.org/proj/en/lisp/>, #gentoo-lisp on FreeNode

<URL:http://www.faulhammer.org/>
 

Thread Tools




All times are GMT. The time now is 05:37 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org