diff options
author | Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com> | 2017-10-19 13:10:47 -0700 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-11-05 22:33:22 +0000 |
commit | b725cdce8aefb3c94f7a951fa47b5dd80389af71 (patch) | |
tree | 4fb62120837643d464f39d5bf0a03bdc8f610559 /meta/recipes-extended/texinfo/texinfo_6.5.bb | |
parent | 1ffaaa2c482badb593ed12dcd9f9e43e19487c49 (diff) | |
download | poky-b725cdce8aefb3c94f7a951fa47b5dd80389af71.tar.gz |
texinfo: upgrade to 6.5
Besides revision change, this version includes the project M4 macros path into
EXTRA_AUTORECONF which avoid the following compilation issue:
In file included from ../../../texinfo-6.5/gnulib/lib/mbrtowc.c:21:0:
./wchar.h:571:6: error: #if with no expression
# if
^
Makefile:1378: recipe for target 'mbrtowc.o' failed
make[4]: *** [mbrtowc.o] Error 1
make[4]: *** Waiting for unfinished jobs....
In file included from ../../../texinfo-6.5/gnulib/lib/mbswidth.c:33:0:
./wchar.h:571:6: error: #if with no expression
# if
^
(From OE-Core rev: 71fae8ac66f0aa3239b3daf5d21cba9bd31d85ad)
Signed-off-by: Leonardo Sandoval <leonardo.sandoval.gonzalez@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/texinfo/texinfo_6.5.bb')
-rw-r--r-- | meta/recipes-extended/texinfo/texinfo_6.5.bb | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/meta/recipes-extended/texinfo/texinfo_6.5.bb b/meta/recipes-extended/texinfo/texinfo_6.5.bb new file mode 100644 index 0000000000..f966457f88 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo_6.5.bb | |||
@@ -0,0 +1,90 @@ | |||
1 | SUMMARY = "Documentation system for on-line information and printed output" | ||
2 | DESCRIPTION = "Texinfo is a documentation system that can produce both \ | ||
3 | online information and printed output from a single source file. The \ | ||
4 | GNU Project uses the Texinfo file format for most of its documentation." | ||
5 | HOMEPAGE = "http://www.gnu.org/software/texinfo/" | ||
6 | SECTION = "console/utils" | ||
7 | LICENSE = "GPLv3+" | ||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
9 | |||
10 | PROVIDES_append_class-native = " texinfo-replacement-native" | ||
11 | |||
12 | def compress_pkg(d): | ||
13 | if bb.data.inherits_class('compress_doc', d): | ||
14 | compress = d.getVar("DOC_COMPRESS") | ||
15 | if compress == "gz": | ||
16 | return "gzip" | ||
17 | elif compress == "bz2": | ||
18 | return "bzip2" | ||
19 | elif compress == "xz": | ||
20 | return "xz" | ||
21 | return "" | ||
22 | |||
23 | RDEPENDS_info += "${@compress_pkg(d)}" | ||
24 | |||
25 | DEPENDS = "zlib ncurses texinfo-replacement-native" | ||
26 | DEPENDS_class-native = "zlib-native ncurses-native" | ||
27 | |||
28 | TARGET_PATCH = "file://use_host_makedoc.patch" | ||
29 | TARGET_PATCH_class-native = "" | ||
30 | |||
31 | SRC_URI = "${GNU_MIRROR}/texinfo/${BP}.tar.gz \ | ||
32 | file://texinfo-4.12-zlib.patch \ | ||
33 | file://disable-native-tools.patch \ | ||
34 | file://link-zip.patch \ | ||
35 | file://dont-depend-on-help2man.patch \ | ||
36 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ | ||
37 | ${TARGET_PATCH} \ | ||
38 | " | ||
39 | |||
40 | SRC_URI[md5sum] = "94e8f7149876793030e5518dd8d6e956" | ||
41 | SRC_URI[sha256sum] = "d34272e4042c46186ddcd66bd5d980c0ca14ff734444686ccf8131f6ec8b1427" | ||
42 | |||
43 | tex_texinfo = "texmf/tex/texinfo" | ||
44 | |||
45 | inherit gettext autotools | ||
46 | |||
47 | EXTRA_AUTORECONF += "-I ${S}/gnulib/m4" | ||
48 | |||
49 | do_configure_prepend () { | ||
50 | # autotools_do_configure updates po/Makefile.in.in, we also need | ||
51 | # update po_document. | ||
52 | cp -f ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po_document/ | ||
53 | } | ||
54 | |||
55 | do_compile_prepend() { | ||
56 | if [ -d tools ];then | ||
57 | oe_runmake -C tools/gnulib/lib | ||
58 | fi | ||
59 | } | ||
60 | |||
61 | do_install_append() { | ||
62 | mkdir -p ${D}${datadir}/${tex_texinfo} | ||
63 | install -p -m644 ${S}/doc/texinfo.tex ${S}/doc/txi-??.tex ${D}${datadir}/${tex_texinfo} | ||
64 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/texi2any ${D}${bindir}/pod2texi | ||
65 | } | ||
66 | |||
67 | do_install_append_class-native() { | ||
68 | install -m 755 info/makedoc ${D}${bindir} | ||
69 | } | ||
70 | |||
71 | PACKAGES += "info info-doc" | ||
72 | |||
73 | FILES_info = "${bindir}/info ${bindir}/infokey ${bindir}/install-info" | ||
74 | FILES_info-doc = "${infodir}/info.info* ${infodir}/dir ${infodir}/info-*.info* \ | ||
75 | ${mandir}/man1/info.1* ${mandir}/man5/info.5* \ | ||
76 | ${mandir}/man1/infokey.1* ${mandir}/man1/install-info.1*" | ||
77 | |||
78 | FILES_${PN} = "${bindir}/makeinfo ${bindir}/texi* ${bindir}/pdftexi2dvi ${bindir}/pod2texi ${datadir}/texinfo" | ||
79 | RDEPENDS_${PN} = "perl" | ||
80 | FILES_${PN}-doc = "${infodir}/texinfo* \ | ||
81 | ${datadir}/${tex_texinfo} \ | ||
82 | ${mandir}/man1 ${mandir}/man5" | ||
83 | |||
84 | # Lie about providing the Locale::gettext_xs module. It is not actually built, | ||
85 | # but the code will test for it and if not found use Locale::gettext_pp instead. | ||
86 | # However, this causes a file dependency on perl(Locale::gettext_xs) to be | ||
87 | # generated, which must be satisfied. | ||
88 | RPROVIDES_${PN} += "perl(Locale::gettext_xs)" | ||
89 | |||
90 | BBCLASSEXTEND = "native nativesdk" | ||