Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Re: Default src_install for EAPI-2 or following EAPI
Date: Tue, 30 Sep 2008 17:05:42
Message-Id: 48E25C61.7070805@gentoo.org
In Reply to: Re: [gentoo-dev] Re: Default src_install for EAPI-2 or following EAPI by Nirbheek Chauhan
1 Nirbheek Chauhan kirjoitti:
2 > On Sat, Sep 27, 2008 at 3:47 PM, Thomas Sachau <tommy@g.o> wrote:
3 >> So what about this one?
4 >>
5 >> default_src_install() {
6 >> if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
7 >> emake DESTDIR="${D}" install || die "emake install failed"
8 >> fi
9 >> if [ -n "${DOCS}" ]; then
10 >> dodoc ${DOCS} || die "dodoc failed"
11 >> else
12 >> # No die here because we don't know if any of these exist
13 >> dodoc AUTHORS ChangeLog NEWS README
14 >> fi
15 >> }
16 >
17 > This seems alright fine to me
18 >
19 > Cheers,
20 >
21 > ~Nirbheek Chauhan
22 >
23
24 It's not. If you want to have default DOCS then you should loop through
25 the items and check with [[ -e ]] before trying to install them.
26
27 Regards,
28 Petteri

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies