1 |
Hi! |
2 |
|
3 |
El lun, 11-04-2016 a las 22:04 -0400, NP-Hardass escribió: |
4 |
> [...] |
5 |
> # @FUNCTION: ematedocize |
6 |
> # @DESCRIPTION: A wrapper around mate-doc-common |
7 |
> ematedocize() { |
8 |
> ebegin "Running mate-doc-common --copy" |
9 |
> mate-doc-common --copy || die |
10 |
> eend $? |
11 |
> } |
12 |
> |
13 |
|
14 |
Have you think in reporting this to autotools.eclass maintainers to add |
15 |
the needed logic to autotools.eclass as done for all the other stuff |
16 |
like gnome-doc, intltool... |
17 |
|
18 |
> # @FUNCTION: mate_src_prepare |
19 |
> # @DESCRIPTION: |
20 |
> # Call gnome2_src_prepare to handle environment setup and patching, |
21 |
> then |
22 |
> # call eautoreconf if necessary |
23 |
> mate_src_prepare() { |
24 |
> debug-print-function ${FUNCNAME} "$@" |
25 |
> |
26 |
> local force_autoreconf=${FORCE_AUTORECONF:-false} |
27 |
> [[ ${PV} == 9999 ]] && force_autoreconf=true |
28 |
> |
29 |
> gen_chksum() { |
30 |
> find '(' -name 'Makefile.am' \ |
31 |
> -o -name 'configure.ac' \ |
32 |
> -o -name 'configure.in' ')' \ |
33 |
> -exec cksum + | sort -k2 |
34 |
> } |
35 |
> |
36 |
> local chksum=$(gen_chksum) |
37 |
> |
38 |
> gnome2_src_prepare |
39 |
> |
40 |
> if ${force_autoreconf} || [[ ${chksum} != $(gen_chksum) ]]; |
41 |
> then |
42 |
> eautoreconf |
43 |
> ematedocize |
44 |
> fi |
45 |
> } |
46 |
> |
47 |
|
48 |
I wonder if maybe this handling of "automatic eautoreconf" should be |
49 |
moved to a more general eclass as there are some consumers that are |
50 |
reimplementing this different times :/ |
51 |
|
52 |
In the past we could rely on autotools-utils.eclass for this, but now, |
53 |
it looks like it needs to be redone in several other eclasses (for |
54 |
example, xorg one) |
55 |
|
56 |
But it's only a question/opinion, I am not blocking your change or |
57 |
similar ;) |