public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* [gentoo-dev] Proposal of accepting arguments to `default` in src_install (and more?) phases in EAPI=5 (for the next council meeting?)
@ 2012-05-12 16:50 99% Samuli Suominen
  0 siblings, 0 replies; 1+ results
From: Samuli Suominen @ 2012-05-12 16:50 UTC (permalink / raw
  To: gentoo-dev

Example,

- Package is using autotools.
- The default phase like below works for the package:

src_install() {
emake DESTDIR="${D}" install
dodoc README
}

So when writing a new ebuild you would only add:

DOCS="README"

And be done with it. Then the next version of the package needs extra 
argument passed to emake install, for example:

src_install() {
emake DESTDIR="${D}" init_d_path="/usr/share/doc/${PF}/examples" install
dodoc README
}

So you are /forced/ to write entire src_install() while you only want to 
append one argument to emake install.

The current workaround for this is to use EXTRA_EMAKE from ebuild, but I 
find this rather ugly (if not even forbidden by some PMS magic?)

Can we make econf in src_configure, emake in src_compile, and emake 
install in src_install accept arguments "$@" in EAPI=5, please?

Relavent bug is http://bugs.gentoo.org/364343

- Samuli



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2012-05-12 16:50 99% [gentoo-dev] Proposal of accepting arguments to `default` in src_install (and more?) phases in EAPI=5 (for the next council meeting?) Samuli Suominen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox