Gentoo Archives: gentoo-dev

From: "Petteri Räty" <betelgeuse@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Default src_install for EAPI-2 or following EAPI
Date: Sat, 20 Sep 2008 19:07:52
Message-Id: 48D54A08.7050603@gentoo.org
In Reply to: [gentoo-dev] Default src_install for EAPI-2 or following EAPI by Thomas Sachau
1 Thomas Sachau kirjoitti:
2 > I see, we have a default src_unpack and a default src_compile but a default src_install is still
3 > missing. Here is my suggestion (taken and modified from bug 33544):
4 >
5 > src_install() {
6 > if [ -f Makefile -o -f GNUmakefile -o -f makefile ]; then
7 > emake DESTDIR=${D} install || die "emake install failed"
8 > [[ -n ${DOCS} ]] && dodoc ${DOCS}
9 > else
10 > einstall || die "einstall failed"
11 > [[ -n ${DOCS} ]] && dodoc ${DOCS}
12 > fi
13 > }
14 >
15 > Any comments?
16 >
17
18 einstall uses make so doesn't really make sense.
19
20 Regards,
21 Petteri

Attachments

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

Replies