1 |
On 05/12/2012 06:50 PM, Samuli Suominen wrote: |
2 |
> Example, |
3 |
> |
4 |
> - Package is using autotools. |
5 |
> - The default phase like below works for the package: |
6 |
> |
7 |
> src_install() { |
8 |
> emake DESTDIR="${D}" install |
9 |
> dodoc README |
10 |
> } |
11 |
> |
12 |
> So when writing a new ebuild you would only add: |
13 |
> |
14 |
> DOCS="README" |
15 |
> |
16 |
> And be done with it. Then the next version of the package needs extra |
17 |
> argument passed to emake install, for example: |
18 |
> |
19 |
> src_install() { |
20 |
> emake DESTDIR="${D}" init_d_path="/usr/share/doc/${PF}/examples" install |
21 |
> dodoc README |
22 |
> } |
23 |
> |
24 |
> So you are /forced/ to write entire src_install() while you only want to |
25 |
> append one argument to emake install. |
26 |
> |
27 |
> The current workaround for this is to use EXTRA_EMAKE from ebuild, but I |
28 |
> find this rather ugly (if not even forbidden by some PMS magic?) |
29 |
> |
30 |
> Can we make econf in src_configure, emake in src_compile, and emake |
31 |
> install in src_install accept arguments "$@" in EAPI=5, please? |
32 |
> |
33 |
> Relavent bug is http://bugs.gentoo.org/364343 |
34 |
> |
35 |
> - Samuli |
36 |
> |
37 |
|
38 |
I find this a good idea and since it's optional it does not add |
39 |
unnecessary complexity. |