|
37 | 37 | # gettext-tools is not optional. If the run dependency on |
38 | 38 | # gettext is optional this can be specified with |
39 | 39 | # NLS_USES=gettext-runtime. |
| 40 | +# gtkdocize Provided by textproc/gtk-doc. Updates gtk-doc related *.m4 |
| 41 | +# files included with the source code and build scripts such as |
| 42 | +# gtk-doc.make. Run by autoreconf if configure.ac contains |
| 43 | +# GTK_DOC_CHECK. The build dependency can be made optional with |
| 44 | +# DOCS option and DOCS_BUILD_DEPENDS+=gtkdocize:textproc/gtk-doc |
| 45 | +# on condition that you remove GTK_DOC_CHECK from configure.ac, |
| 46 | +# for instance using a post-patch-DOCS-off target with the |
| 47 | +# following command: |
| 48 | +# @${REINPLACE_CMD} /^GTK_DOC_CHECK/d ${WRKSRC}/configure.ac |
| 49 | +# It is likely that more patching is needed to eliminate or avoid |
| 50 | +# use of gtk-doc. |
| 51 | +# intltoolize Provided by textproc/intltool. Updates intltool related *.m4 |
| 52 | +# files included with the source code and build scripts such as |
| 53 | +# po/Makefile.in.in. Run by autoreconf if configure.ac contains |
| 54 | +# (AC|IT)_PROG_INTLTOOL. A build dependency on textproc/intltool |
| 55 | +# can be added with USES+=gnome and USE_GNOME+=intltool. |
40 | 56 | # libtoolize Provided by devel/libtool. Updates libtool related *.m4 files |
41 | 57 | # included with the source code and build scripts such as |
42 | 58 | # ltmain.sh. Run by autoreconf if configure.ac (or one of the |
@@ -76,14 +92,20 @@ do-autoreconf: |
76 | 92 | # Don't modify time stamps if the files already exist |
77 | 93 | @test -e ${AUTORECONF_WRKSRC}/${f} || ${TOUCH} ${AUTORECONF_WRKSRC}/${f} |
78 | 94 | . endfor |
79 | | -. if defined(_USE_GNOME) && ${_USE_GNOME:Mintltool} |
80 | 95 | @(cd ${AUTORECONF_WRKSRC} && \ |
81 | 96 | if test -f configure.ac; then configure=configure.ac; \ |
82 | 97 | else configure=configure.in; fi && \ |
| 98 | + if ${GREP} -q '^GTK_DOC_CHECK' $${configure}; \ |
| 99 | + then if ! ${LOCALBASE}/bin/gtkdocize --copy; then \ |
| 100 | + ${ECHO_MSG} '===> Mk/Uses/autoreconf.mk: Error running gtkdocize'; \ |
| 101 | + ${FALSE}; fi; fi && \ |
83 | 102 | if ${EGREP} -q '^(AC|IT)_PROG_INTLTOOL' $${configure}; \ |
84 | | - then ${LOCALBASE}/bin/intltoolize -f -c; fi) |
85 | | -. endif |
86 | | - @(cd ${AUTORECONF_WRKSRC} && ${AUTORECONF} -f -i) |
| 103 | + then if ! ${LOCALBASE}/bin/intltoolize -f -c; then \ |
| 104 | + ${ECHO_MSG} '===> Mk/Uses/autoreconf.mk: Error running intltoolize'; \ |
| 105 | + ${FALSE}; fi; fi) |
| 106 | + @(cd ${AUTORECONF_WRKSRC} && if ! ${AUTORECONF} -f -i; then \ |
| 107 | + ${ECHO_MSG} '===> Mk/Uses/autoreconf.mk: Error running ${AUTORECONF}'; \ |
| 108 | + ${FALSE}; fi) |
87 | 109 | . elif ! ${autoreconf_ARGS:Mbuild} |
88 | 110 | IGNORE= Incorrect 'USES+=autoreconf:${autoreconf_ARGS}' expecting 'USES+=autoreconf[:build]' |
89 | 111 | . endif |
|
0 commit comments