Gentoo Logo
Gentoo Spaceship

Installation:
Gentoo Handbook
Installation Docs

Documentation:
Home
Listing
About Gentoo
Philosophy
Social Contract

Resources:
Bug Tracker
Developer List
Discussion Forums
Gentoo BitTorrents
Gentoo Linux Enhancement Proposals
IRC Channels
Mailing Lists
Mirrors
Name and Logo Guidelines
Online Package Database
Security Announcements
Staffing Needs
Supporting Vendors
View our CVS

Graphics:
Logos and themes
Icons
ScreenShots

Miscellaneous Resources:
Gentoo Linux Store
Gentoo-hosted projects
IBM dW/Intel article archive




List Archive: gentoo-dev
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-dev@g.o
From: Thomas Sachau <tommy@g.o>
Subject: Re: EAPI 3's default src_install needs bikeshedding
Date: Mon, 30 Mar 2009 18:33:48 +0200
Ciaran McCreesh schrieb:
> So far, we've got this, by agreement of the Council:
> 
> * There will be a default src_install in EAPI 3
> * It will have a DOCS variable, or something along those lines.
> 
> I'd like to suggest the following too:
> 
> * If DOCS is explicitly specified, it is an error if anything in it
>   doesn't exist.
> * If DOCS isn't explicitly specified, it isn't an error if anything in
>   its default, if it has one, doesn't exist.
> 
> We don't have an implementation yet. So I'll start off with this:
> 
>     default_src_install() {
>         emake -j1 DESTDIR="${D}" install

Why do you want to force -j1 here?

And i had this proposal some months ago, which noone argued against any more (the default list may
of course be extended):

from http://archives.gentoo.org/gentoo-dev/msg_be89b62ad12881ce3dfe1d417ae80005.xml :

So what about this funcion for the next EAPI and also implementation in base.eclass?

default_src_install() {
	if [ -f Makefile ] || [ -f GNUmakefile ] || [ -f makefile ]; then
		emake DESTDIR="${D}" install || die "emake install failed"
	fi
	if [ -n "${DOCS}" ]; then
		dodoc ${DOCS} || die "dodoc failed"
	else
		for x in AUTHORS ChangeLog NEWS README; do
			if [ -e ${x} ]; then
				dodoc ${x} || die "dodoc ${x} failed"
			fi
		done
	fi
}


-- 
Thomas Sachau

Gentoo Linux Developer

Attachment:
signature.asc (OpenPGP digital signature)
Replies:
Re: EAPI 3's default src_install needs bikeshedding
-- Robert Buchholz
Re: EAPI 3's default src_install needs bikeshedding
-- Ciaran McCreesh
References:
EAPI 3's default src_install needs bikeshedding
-- Ciaran McCreesh
Navigation:
Lists: gentoo-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
EAPI 3's default src_install needs bikeshedding
Next by thread:
Re: EAPI 3's default src_install needs bikeshedding
Previous by date:
EAPI 3's default src_install needs bikeshedding
Next by date:
Re: EAPI 3's default src_install needs bikeshedding


Updated Jun 17, 2009

Donate to support our development efforts.

Gentoo Centric Hosting: vr.org

VR Hosted

Tek Alchemy

Tek Alchemy

SevenL.net

SevenL.net

php|architect

php|architect

Copyright 2001-2007 Gentoo Foundation, Inc. Questions, Comments? Email www@gentoo.org.