From 0a60440cebabf0eb166cda75b330387932116ca0 Mon Sep 17 00:00:00 2001 From: Alexander Kanavin Date: Wed, 13 Mar 2024 18:33:34 +0100 Subject: texinfo: update 7.0.3 -> 7.1 Drop texinfo/link-zip.patch (no longer necessary) Add texinfo_cv_sys_iconv_converts_euc_cn=yes as otherwise it's determined via building and running a helper binary. (From OE-Core rev: eb13b936347b01dd92190713439e0ced6329337d) Signed-off-by: Alexander Kanavin Signed-off-by: Richard Purdie --- ...eral-changes-to-build-without-zlib-and-nc.patch | 55 +++++++++++++ .../texinfo/0002-dont-depend-on-help2man.patch | 68 ++++++++++++++++ .../texinfo/0003-texinfo-Update-to-5.1.patch | 28 +++++++ .../texinfo/texinfo/disable-native-tools.patch | 52 ------------- .../texinfo/texinfo/dont-depend-on-help2man.patch | 66 ---------------- .../texinfo/texinfo/link-zip.patch | 23 ------ .../texinfo/texinfo/use_host_makedoc.patch | 26 ------- meta/recipes-extended/texinfo/texinfo_7.0.3.bb | 90 ---------------------- meta/recipes-extended/texinfo/texinfo_7.1.bb | 90 ++++++++++++++++++++++ 9 files changed, 241 insertions(+), 257 deletions(-) create mode 100644 meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch create mode 100644 meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch create mode 100644 meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch delete mode 100644 meta/recipes-extended/texinfo/texinfo/disable-native-tools.patch delete mode 100644 meta/recipes-extended/texinfo/texinfo/dont-depend-on-help2man.patch delete mode 100644 meta/recipes-extended/texinfo/texinfo/link-zip.patch delete mode 100644 meta/recipes-extended/texinfo/texinfo/use_host_makedoc.patch delete mode 100644 meta/recipes-extended/texinfo/texinfo_7.0.3.bb create mode 100644 meta/recipes-extended/texinfo/texinfo_7.1.bb (limited to 'meta') diff --git a/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch b/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch new file mode 100644 index 0000000000..b43a115b23 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo/0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch @@ -0,0 +1,55 @@ +From ee9d23373b488c4a499c561d71e6b6ba7ca1bd31 Mon Sep 17 00:00:00 2001 +From: Joshua Lock +Date: Fri, 16 Sep 2011 15:35:48 -0700 +Subject: [PATCH 1/3] texinfo: several changes to build without zlib and + ncurses + +We already DEPEND on the native texinfo being present before building so +there isn't any need to try and build the required native texinfo binaries +before cross-compiling. This simplifies the recipe somewhat! + +Upstream-Status: Inappropriate oe specific + +Signed-off-by: Joshua Lock +--- + configure.ac | 24 +----------------------- + 1 file changed, 1 insertion(+), 23 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 8094498..5b72fc1 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -247,29 +247,7 @@ AC_CANONICAL_BUILD + # $native_tools is also added to SUBDIRS in the main Makefile.am, + # so that make compiles the native tools first. + # +-if test "$cross_compiling" = no; then +- native_tools= +-else +- native_tools=tools +- test -d "$native_tools" || mkdir "$native_tools" +- confdir=`(cd "$srcdir";pwd)` +- # Make sure the secondary configure won't fail with +- # "error: source directory already configured". +- rm -f config.status +- AC_MSG_NOTICE([[Doing configure of native tools (${build}).]]) +- cd "$native_tools" || exit 1 +- # Run secondary configure in alternate environment or +- # it gets the wrong CC etc. +- # env -i gives this build host configure a clean environment; +- # consequently, we have to re-initialize $PATH. +- env -i CC="$BUILD_CC" AR="$BUILD_AR" RANLIB="$BUILD_RANLIB" \ +- PATH="$PATH" \ +- tools_only=1 \ +- ${confdir}/configure --build=${build} --host=${build} \ +- --disable-rpath --disable-nls +- cd .. || exit 1 +- AC_MSG_NOTICE([[Continuing with main configure (${host}).]]) +-fi ++native_tools= + AC_SUBST(native_tools) + AM_CONDITIONAL(TOOLS_ONLY, [[test "x$tools_only" = x1]]) + +-- +2.39.2 + diff --git a/meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch b/meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch new file mode 100644 index 0000000000..f3b6827d58 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo/0002-dont-depend-on-help2man.patch @@ -0,0 +1,68 @@ +From e02be81fa68ddc7f939abd99de4e42759a0d5d8c Mon Sep 17 00:00:00 2001 +From: Edwin Plauchu +Date: Tue, 29 Nov 2016 13:43:24 -0600 +Subject: [PATCH 2/3] dont-depend-on-help2man + +Upstream-Status: Inappropriate + +Signed-off-by: Marko Lindqvist +Signed-off-by: Edwin Plauchu +--- + doc/Makefile.am | 2 +- + man/Makefile.am | 12 ++++++------ + 2 files changed, 7 insertions(+), 7 deletions(-) + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index e9e6298..f1b9895 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -63,7 +63,7 @@ refcard/txirefcard.pdf refcard/txirefcard-a4.pdf: refcard/txirefcard.tex + # Include our texinfo.tex, not Automake's. + EXTRA_DIST = epsf.tex texinfo.tex \ + fdl.texi \ +- $(man_MANS) $(TXI_XLATE) \ ++ $(TXI_XLATE) \ + $(refcard_files) \ + texinfo-tex-test.texi texinfo-tex-test.WIDOWs \ + texinfo-ja.tex short-sample-ja.texi \ +diff --git a/man/Makefile.am b/man/Makefile.am +index f2c703f..61caeeb 100644 +--- a/man/Makefile.am ++++ b/man/Makefile.am +@@ -11,27 +11,27 @@ + # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + + # These are generated using help2man. +-man_MANS = install-info.1 makeinfo.1 texindex.1 texi2dvi.1 ++#man_MANS = install-info.1 makeinfo.1 texindex.1 texi2dvi.1 + + # These require the build in info/, thus can't do if we failed to find a + # terminal library. + if HAVE_TERMLIBS +-man_MANS += info.1 ++#man_MANS += info.1 + endif + + # These are hand-written. +-man_MANS += info.5 texinfo.5 ++#man_MANS += info.5 texinfo.5 + +-man_MANS += pod2texi.1 ++#man_MANS += pod2texi.1 + + pod2texi.1: $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl + $(POD2MAN) $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl >"$@" + + + # These are just .so's to the common program. +-man_MANS += texi2any.1 texi2pdf.1 pdftexi2dvi.1 ++#man_MANS += texi2any.1 texi2pdf.1 pdftexi2dvi.1 + +-EXTRA_DIST = $(man_MANS) ginfo.h2m ++EXTRA_DIST = ginfo.h2m + + # Maintainers should be able to regenerate. + MAINTAINERCLEANFILES = $(man_MANS) +-- +2.39.2 + diff --git a/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch b/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch new file mode 100644 index 0000000000..f99f8b87d5 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo/0003-texinfo-Update-to-5.1.patch @@ -0,0 +1,28 @@ +From 33b85a3928895b812b37dc759c6de711802db45f Mon Sep 17 00:00:00 2001 +From: Saul Wold +Date: Mon, 29 Jul 2013 15:02:34 -0700 +Subject: [PATCH 3/3] texinfo: Update to 5.1 + +Upstream-Status: Inappropriate [cross build specific] + +Signed-off-by: Saul Wold +--- + info/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/info/Makefile.am b/info/Makefile.am +index f57b341..a019aa7 100644 +--- a/info/Makefile.am ++++ b/info/Makefile.am +@@ -77,7 +77,7 @@ cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \ + # more than once. + funs.h: makedoc$(EXEEXT) $(cmd_sources) + rm -f $(generated_sources) +- $(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources) ++ makedoc $(cmd_sources) + + # The following hack is necessary to hint make before the automatic + # dependencies are built. +-- +2.39.2 + diff --git a/meta/recipes-extended/texinfo/texinfo/disable-native-tools.patch b/meta/recipes-extended/texinfo/texinfo/disable-native-tools.patch deleted file mode 100644 index 3801d73883..0000000000 --- a/meta/recipes-extended/texinfo/texinfo/disable-native-tools.patch +++ /dev/null @@ -1,52 +0,0 @@ -From e5d8f6d4a7652ea95c8d069ce9333494f2db868c Mon Sep 17 00:00:00 2001 -From: Joshua Lock -Date: Fri, 16 Sep 2011 15:35:48 -0700 -Subject: [PATCH] texinfo: several changes to build without zlib and ncurses - -We already DEPEND on the native texinfo being present before building so -there isn't any need to try and build the required native texinfo binaries -before cross-compiling. This simplifies the recipe somewhat! - -Upstream-Status: Inappropriate oe specific - -Signed-off-by: Joshua Lock - ---- - configure.ac | 24 +----------------------- - 1 file changed, 1 insertion(+), 23 deletions(-) - -diff --git a/configure.ac b/configure.ac -index 6fcd3a0..c108df7 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -180,29 +180,7 @@ AC_CANONICAL_BUILD - # $native_tools is also added to SUBDIRS in the main Makefile.am, - # so that make compiles the native tools first. - # --if test "$cross_compiling" = no; then -- native_tools= --else -- native_tools=tools -- test -d "$native_tools" || mkdir "$native_tools" -- confdir=`(cd "$srcdir";pwd)` -- # Make sure the secondary configure won't fail with -- # "error: source directory already configured". -- rm -f config.status -- AC_MSG_NOTICE([[Doing configure of native tools (${build}).]]) -- cd "$native_tools" || exit 1 -- # Run secondary configure in alternate environment or -- # it gets the wrong CC etc. -- # env -i gives this build host configure a clean environment; -- # consequently, we have to re-initialize $PATH. -- env -i CC="$BUILD_CC" AR="$BUILD_AR" RANLIB="$BUILD_RANLIB" \ -- PATH="$PATH" \ -- tools_only=1 \ -- ${confdir}/configure --build=${build} --host=${build} \ -- --disable-rpath --disable-nls -- cd .. || exit 1 -- AC_MSG_NOTICE([[Continuing with main configure (${host}).]]) --fi -+native_tools= - AC_SUBST(native_tools) - AM_CONDITIONAL(TOOLS_ONLY, [[test "x$tools_only" = x1]]) - diff --git a/meta/recipes-extended/texinfo/texinfo/dont-depend-on-help2man.patch b/meta/recipes-extended/texinfo/texinfo/dont-depend-on-help2man.patch deleted file mode 100644 index 825887cc2e..0000000000 --- a/meta/recipes-extended/texinfo/texinfo/dont-depend-on-help2man.patch +++ /dev/null @@ -1,66 +0,0 @@ -From 451a9b9c3874872d575693fc7733fae02690a7d3 Mon Sep 17 00:00:00 2001 -From: Edwin Plauchu -Date: Tue, 29 Nov 2016 13:43:24 -0600 -Subject: [PATCH] dont-depend-on-help2man - -Upstream-Status: Inappropriate - -Signed-off-by: Marko Lindqvist -Signed-off-by: Edwin Plauchu - ---- - doc/Makefile.am | 2 +- - man/Makefile.am | 12 ++++++------ - 2 files changed, 7 insertions(+), 7 deletions(-) - -diff --git a/doc/Makefile.am b/doc/Makefile.am -index 407a38c..6b5ff3e 100644 ---- a/doc/Makefile.am -+++ b/doc/Makefile.am -@@ -55,7 +55,7 @@ refcard_files = refcard/Makefile refcard/txicmdcheck \ - # Include our texinfo.tex, not Automake's. - EXTRA_DIST = epsf.tex texinfo.tex \ - fdl.texi \ -- $(man_MANS) $(TXI_XLATE) \ -+ $(TXI_XLATE) \ - $(refcard_files) \ - gendocs.chapter/gendocs_template \ - texinfo-tex-test.texi texinfo-tex-test.WIDOWs \ -diff --git a/man/Makefile.am b/man/Makefile.am -index d0cd72c..a19e52a 100644 ---- a/man/Makefile.am -+++ b/man/Makefile.am -@@ -11,27 +11,27 @@ - # implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - - # These are generated using help2man. --man_MANS = install-info.1 makeinfo.1 texindex.1 texi2dvi.1 -+#man_MANS = install-info.1 makeinfo.1 texindex.1 texi2dvi.1 - - # These require the build in info/, thus can't do if we failed to find a - # terminal library. - if HAVE_TERMLIBS --man_MANS += info.1 -+#man_MANS += info.1 - endif - - # These are hand-written. --man_MANS += info.5 texinfo.5 -+#man_MANS += info.5 texinfo.5 - --man_MANS += pod2texi.1 -+#man_MANS += pod2texi.1 - - pod2texi.1: $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl - $(POD2MAN) $(top_srcdir)/Pod-Simple-Texinfo/pod2texi.pl >"$@" - - - # These are just .so's to the common program. --man_MANS += texi2any.1 texi2pdf.1 pdftexi2dvi.1 -+#man_MANS += texi2any.1 texi2pdf.1 pdftexi2dvi.1 - --EXTRA_DIST = $(man_MANS) ginfo.h2m -+EXTRA_DIST = ginfo.h2m - - # Maintainers should be able to regenerate. - MAINTAINERCLEANFILES = $(man_MANS) diff --git a/meta/recipes-extended/texinfo/texinfo/link-zip.patch b/meta/recipes-extended/texinfo/texinfo/link-zip.patch deleted file mode 100644 index 72d7067aa9..0000000000 --- a/meta/recipes-extended/texinfo/texinfo/link-zip.patch +++ /dev/null @@ -1,23 +0,0 @@ -From c5050ac84c8a3cc3ff8c7e558f8c2fdb57f410d9 Mon Sep 17 00:00:00 2001 -From: Joshua Lock -Date: Mon, 29 Jul 2013 15:02:34 -0700 -Subject: [PATCH] install-info uses symbols from zlib so must link against it. - -Upstream-Status: Pending - -Signed-off-by: Joshua Lock - ---- - install-info/Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/install-info/Makefile.am b/install-info/Makefile.am -index 9bcff71..68247f9 100644 ---- a/install-info/Makefile.am -+++ b/install-info/Makefile.am -@@ -33,4 +33,4 @@ AM_CPPFLAGS = \ - -I$(top_srcdir)/gnulib/lib \ - -I$(top_builddir)/gnulib/lib \ - -DLOCALEDIR=\"$(localedir)\" --LDADD = $(top_builddir)/gnulib/lib/libgnu.a $(LIBINTL) $(LIBTHREAD) -+LDADD = $(top_builddir)/gnulib/lib/libgnu.a $(LIBINTL) $(LIBTHREAD) -lz diff --git a/meta/recipes-extended/texinfo/texinfo/use_host_makedoc.patch b/meta/recipes-extended/texinfo/texinfo/use_host_makedoc.patch deleted file mode 100644 index c6c9952c9e..0000000000 --- a/meta/recipes-extended/texinfo/texinfo/use_host_makedoc.patch +++ /dev/null @@ -1,26 +0,0 @@ -From 81ccd162b869c20e450073fa834b5cabbea8e3d4 Mon Sep 17 00:00:00 2001 -From: Saul Wold -Date: Mon, 29 Jul 2013 15:02:34 -0700 -Subject: [PATCH] texinfo: Update to 5.1 - -Upstream-Status: Inappropriate [cross build specific] - -Signed-off-by: Saul Wold - ---- - info/Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/info/Makefile.am b/info/Makefile.am -index 35596b1..cae1421 100644 ---- a/info/Makefile.am -+++ b/info/Makefile.am -@@ -69,7 +69,7 @@ cmd_sources = $(srcdir)/session.c $(srcdir)/echo-area.c $(srcdir)/infodoc.c \ - # more than once. - funs.h: makedoc$(EXEEXT) $(cmd_sources) - rm -f $(generated_sources) -- $(top_builddir)/$(native_tools)/info/makedoc $(cmd_sources) -+ makedoc $(cmd_sources) - - # The following hack is necessary to hint make before the automatic - # dependencies are built. diff --git a/meta/recipes-extended/texinfo/texinfo_7.0.3.bb b/meta/recipes-extended/texinfo/texinfo_7.0.3.bb deleted file mode 100644 index b149177b72..0000000000 --- a/meta/recipes-extended/texinfo/texinfo_7.0.3.bb +++ /dev/null @@ -1,90 +0,0 @@ -SUMMARY = "Documentation system for on-line information and printed output" -DESCRIPTION = "Texinfo is a documentation system that can produce both \ -online information and printed output from a single source file. The \ -GNU Project uses the Texinfo file format for most of its documentation." -HOMEPAGE = "http://www.gnu.org/software/texinfo/" -SECTION = "console/utils" -LICENSE = "GPL-3.0-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" - -PROVIDES:append:class-native = " texinfo-replacement-native" - -def compress_pkg(d): - if bb.data.inherits_class('compress_doc', d): - compress = d.getVar("DOC_COMPRESS") - if compress == "gz": - return "gzip" - elif compress == "bz2": - return "bzip2" - elif compress == "xz": - return "xz" - return "" - -RDEPENDS:info += "${@compress_pkg(d)}" - -DEPENDS = "zlib ncurses texinfo-replacement-native" -DEPENDS:class-native = "zlib-native ncurses-native" - -TARGET_PATCH = "file://use_host_makedoc.patch" -TARGET_PATCH:class-native = "" - -SRC_URI = "${GNU_MIRROR}/texinfo/${BP}.tar.gz \ - file://disable-native-tools.patch \ - file://link-zip.patch \ - file://dont-depend-on-help2man.patch \ - ${TARGET_PATCH} \ - " - -SRC_URI[sha256sum] = "3cc5706fb086b895e1dc2b407aade9f95a3a233ff856273e2b659b089f117683" - -tex_texinfo = "texmf/tex/texinfo" - -inherit gettext autotools multilib_script - -MULTILIB_SCRIPTS = "${PN}:${bindir}/texi2any" - -EXTRA_AUTORECONF += "-I ${S}/gnulib/m4" - -do_configure:prepend () { - # autotools_do_configure updates po/Makefile.in.in, we also need - # update po_document. - cp -f ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po_document/ -} - -do_compile:prepend() { - if [ -d tools ];then - oe_runmake -C tools/gnulib/lib - fi -} - -do_install:append() { - mkdir -p ${D}${datadir}/${tex_texinfo} - install -p -m644 ${S}/doc/texinfo.tex ${S}/doc/txi-??.tex ${D}${datadir}/${tex_texinfo} - sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/texi2any ${D}${bindir}/pod2texi - sed -i -e 's,${HOSTTOOLS_DIR},,' ${D}${bindir}/texindex -} - -do_install:append:class-native() { - install -m 755 info/makedoc ${D}${bindir} -} - -PACKAGES += "info info-doc" - -FILES:info = "${bindir}/info ${bindir}/infokey ${bindir}/install-info" -FILES:info-doc = "${infodir}/info.info* ${infodir}/dir ${infodir}/info-*.info* \ - ${mandir}/man1/info.1* ${mandir}/man5/info.5* \ - ${mandir}/man1/infokey.1* ${mandir}/man1/install-info.1*" - -FILES:${PN} = "${bindir}/makeinfo ${bindir}/texi* ${bindir}/pdftexi2dvi ${bindir}/pod2texi ${datadir}/texinfo" -RDEPENDS:${PN} = "perl" -FILES:${PN}-doc = "${infodir}/texi* \ - ${datadir}/${tex_texinfo} \ - ${mandir}/man1 ${mandir}/man5" - -# Lie about providing the Locale::gettext_xs module. It is not actually built, -# but the code will test for it and if not found use Locale::gettext_pp instead. -# However, this causes a file dependency on perl(Locale::gettext_xs) to be -# generated, which must be satisfied. -RPROVIDES:${PN} += "perl(Locale::gettext_xs)" - -BBCLASSEXTEND = "native nativesdk" diff --git a/meta/recipes-extended/texinfo/texinfo_7.1.bb b/meta/recipes-extended/texinfo/texinfo_7.1.bb new file mode 100644 index 0000000000..65d8252fb9 --- /dev/null +++ b/meta/recipes-extended/texinfo/texinfo_7.1.bb @@ -0,0 +1,90 @@ +SUMMARY = "Documentation system for on-line information and printed output" +DESCRIPTION = "Texinfo is a documentation system that can produce both \ +online information and printed output from a single source file. The \ +GNU Project uses the Texinfo file format for most of its documentation." +HOMEPAGE = "http://www.gnu.org/software/texinfo/" +SECTION = "console/utils" +LICENSE = "GPL-3.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=1ebbd3e34237af26da5dc08a4e440464" + +PROVIDES:append:class-native = " texinfo-replacement-native" + +def compress_pkg(d): + if bb.data.inherits_class('compress_doc', d): + compress = d.getVar("DOC_COMPRESS") + if compress == "gz": + return "gzip" + elif compress == "bz2": + return "bzip2" + elif compress == "xz": + return "xz" + return "" + +RDEPENDS:info += "${@compress_pkg(d)}" + +DEPENDS = "zlib ncurses texinfo-replacement-native" +DEPENDS:class-native = "zlib-native ncurses-native" + +TARGET_PATCH = "file://0003-texinfo-Update-to-5.1.patch" +TARGET_PATCH:class-native = "" + +SRC_URI = "${GNU_MIRROR}/texinfo/${BP}.tar.gz \ + file://0001-texinfo-several-changes-to-build-without-zlib-and-nc.patch \ + file://0002-dont-depend-on-help2man.patch \ + ${TARGET_PATCH} \ + " + +SRC_URI[sha256sum] = "dd5710b3a53ac002644677a06145748e260592a35be182dc830ebebb79c5d5a0" + +tex_texinfo = "texmf/tex/texinfo" + +inherit gettext autotools multilib_script + +MULTILIB_SCRIPTS = "${PN}:${bindir}/texi2any" + +EXTRA_AUTORECONF += "-I ${S}/gnulib/m4" +CACHED_CONFIGUREVARS += "texinfo_cv_sys_iconv_converts_euc_cn=yes" + +do_configure:prepend () { + # autotools_do_configure updates po/Makefile.in.in, we also need + # update po_document. + cp -f ${STAGING_DATADIR_NATIVE}/gettext/po/Makefile.in.in ${S}/po_document/ +} + +do_compile:prepend() { + if [ -d tools ];then + oe_runmake -C tools/gnulib/lib + fi +} + +do_install:append() { + mkdir -p ${D}${datadir}/${tex_texinfo} + install -p -m644 ${S}/doc/texinfo.tex ${S}/doc/txi-??.tex ${D}${datadir}/${tex_texinfo} + sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/texi2any ${D}${bindir}/pod2texi + sed -i -e 's,${HOSTTOOLS_DIR},,' ${D}${bindir}/texindex +} + +do_install:append:class-native() { + install -m 755 info/makedoc ${D}${bindir} +} + +PACKAGES += "info info-doc" + +FILES:info = "${bindir}/info ${bindir}/infokey ${bindir}/install-info" +FILES:info-doc = "${infodir}/info.info* ${infodir}/dir ${infodir}/info-*.info* \ + ${mandir}/man1/info.1* ${mandir}/man5/info.5* \ + ${mandir}/man1/infokey.1* ${mandir}/man1/install-info.1*" + +FILES:${PN} = "${bindir}/makeinfo ${bindir}/texi* ${bindir}/pdftexi2dvi ${bindir}/pod2texi ${datadir}/texinfo" +RDEPENDS:${PN} = "perl" +FILES:${PN}-doc = "${infodir}/texi* \ + ${datadir}/${tex_texinfo} \ + ${mandir}/man1 ${mandir}/man5" + +# Lie about providing the Locale::gettext_xs module. It is not actually built, +# but the code will test for it and if not found use Locale::gettext_pp instead. +# However, this causes a file dependency on perl(Locale::gettext_xs) to be +# generated, which must be satisfied. +RPROVIDES:${PN} += "perl(Locale::gettext_xs)" + +BBCLASSEXTEND = "native nativesdk" -- cgit v1.2.3-54-g00ecf