Gentoo Archives: gentoo-dev

From: Thomas Sachau <tommy@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Default src_install for EAPI-2 or following EAPI
Date: Sat, 20 Sep 2008 11:31:15
Message-Id: 48D4DEF8.10202@gentoo.org
In Reply to: [gentoo-dev] Bugzilla3 and Bugzilla Survey 2008 by "Robin H. Johnson"
1 I see, we have a default src_unpack and a default src_compile but a default src_install is still
2 missing. Here is my suggestion (taken and modified from bug 33544):
3
4 src_install() {
5 if [ -f Makefile -o -f GNUmakefile -o -f makefile ]; then
6 emake DESTDIR=${D} install || die "emake install failed"
7 [[ -n ${DOCS} ]] && dodoc ${DOCS}
8 else
9 einstall || die "einstall failed"
10 [[ -n ${DOCS} ]] && dodoc ${DOCS}
11 fi
12 }
13
14 Any comments?

Attachments

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

Replies

Subject Author
[gentoo-dev] Re: Default src_install for EAPI-2 or following EAPI Steve Long <slong@××××××××××××××××××.uk>
Re: [gentoo-dev] Default src_install for EAPI-2 or following EAPI "Petteri Räty" <betelgeuse@g.o>