diff options
author | Alexander Kanavin <alex.kanavin@gmail.com> | 2023-09-06 18:56:23 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2023-09-07 14:36:30 +0100 |
commit | 6c6643eb4a7cee924acfb5cbffc828b2936e6f50 (patch) | |
tree | e9ecc3f0ef960e3d960d74cbb4678293dc6feaba /meta/recipes-extended/groff/groff_1.22.4.bb | |
parent | 5b18d7a0c04832aa0881272ff53e6e9a69545b1b (diff) | |
download | poky-6c6643eb4a7cee924acfb5cbffc828b2936e6f50.tar.gz |
groff: update 1.22.4 -> 1.23.0
Drop backports.
Rebase
0001-Make-manpages-mulitlib-identical.patch
groff-not-search-fonts-on-build-host.patch
--without-doc has been removed upstream; replace
that with a dependency on groff-native and
substitution of groff executable from that.
Drop serial make; this was introduced in 2010 without
explanation and likely been solved long time ago.
Set urw fonts directory to something bogus to avoid host contamination.
(From OE-Core rev: 8ce301b6f62c3be4bdaf4fd03009e79095163010)
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/groff/groff_1.22.4.bb')
-rw-r--r-- | meta/recipes-extended/groff/groff_1.22.4.bb | 81 |
1 files changed, 0 insertions, 81 deletions
diff --git a/meta/recipes-extended/groff/groff_1.22.4.bb b/meta/recipes-extended/groff/groff_1.22.4.bb deleted file mode 100644 index 244c0e1625..0000000000 --- a/meta/recipes-extended/groff/groff_1.22.4.bb +++ /dev/null | |||
@@ -1,81 +0,0 @@ | |||
1 | SUMMARY = "GNU Troff software" | ||
2 | DESCRIPTION = "The groff (GNU troff) software is a typesetting package which reads plain text mixed with \ | ||
3 | formatting commands and produces formatted output." | ||
4 | SECTION = "base" | ||
5 | HOMEPAGE = "http://www.gnu.org/software/groff/" | ||
6 | LICENSE = "GPL-3.0-only" | ||
7 | |||
8 | LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | ||
9 | |||
10 | SRC_URI = "${GNU_MIRROR}/groff/groff-${PV}.tar.gz \ | ||
11 | file://0001-replace-perl-w-with-use-warnings.patch \ | ||
12 | file://groff-not-search-fonts-on-build-host.patch \ | ||
13 | file://0001-support-musl.patch \ | ||
14 | file://0001-Include-config.h.patch \ | ||
15 | file://0001-Make-manpages-mulitlib-identical.patch \ | ||
16 | file://0001-Fix-code-style-issues.patch \ | ||
17 | " | ||
18 | |||
19 | SRC_URI[md5sum] = "08fb04335e2f5e73f23ea4c3adbf0c5f" | ||
20 | SRC_URI[sha256sum] = "e78e7b4cb7dec310849004fa88847c44701e8d133b5d4c13057d876c1bad0293" | ||
21 | |||
22 | # Remove at the next upgrade | ||
23 | PR = "r1" | ||
24 | |||
25 | DEPENDS = "bison-native" | ||
26 | RDEPENDS:${PN} += "perl sed" | ||
27 | |||
28 | inherit autotools-brokensep texinfo multilib_script pkgconfig | ||
29 | |||
30 | MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/groffer ${PN}:${bindir}/grog" | ||
31 | |||
32 | EXTRA_OECONF = "--without-x --without-doc" | ||
33 | PARALLEL_MAKE = "" | ||
34 | |||
35 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4" | ||
36 | |||
37 | # Delete these generated files since we depend on bison-native | ||
38 | # and regenerate them. Do it deterministically (always). | ||
39 | do_configure:prepend() { | ||
40 | rm -f ${S}/src/preproc/eqn/eqn.cpp | ||
41 | rm -f ${S}/src/preproc/eqn/eqn.hpp | ||
42 | } | ||
43 | |||
44 | do_install:append() { | ||
45 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
46 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
47 | for i in afmtodit mmroff gropdf pdfmom grog; do | ||
48 | if [ -f ${D}${bindir}/$i ]; then | ||
49 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/$i | ||
50 | fi | ||
51 | done | ||
52 | if [ -e ${D}${libdir}/charset.alias ]; then | ||
53 | rm -rf ${D}${libdir}/charset.alias | ||
54 | fi | ||
55 | |||
56 | # awk is located at /usr/bin/, not /bin/ | ||
57 | SPECIAL_AWK=`find ${D} -name special.awk` | ||
58 | if [ -f ${SPECIAL_AWK} ]; then | ||
59 | sed -i -e 's:#!.*awk:#! ${USRBINPATH}/awk:' ${SPECIAL_AWK} | ||
60 | fi | ||
61 | |||
62 | # not ship /usr/bin/glilypond and its releated files in embedded target system | ||
63 | rm -rf ${D}${bindir}/glilypond | ||
64 | rm -rf ${D}${libdir}/groff/glilypond | ||
65 | rm -rf ${D}${mandir}/man1/glilypond* | ||
66 | |||
67 | # not ship /usr/bin/grap2graph and its releated man files | ||
68 | rm -rf ${D}${bindir}/grap2graph | ||
69 | rm -rf ${D}${mandir}/man1/grap2graph* | ||
70 | } | ||
71 | |||
72 | do_install:append:class-native() { | ||
73 | create_cmdline_wrapper ${D}/${bindir}/groff \ | ||
74 | -F${STAGING_DIR_NATIVE}${datadir_native}/groff/${PV}/font \ | ||
75 | -M${STAGING_DIR_NATIVE}${datadir_native}/groff/${PV}/tmac | ||
76 | } | ||
77 | |||
78 | FILES:${PN} += "${libdir}/${BPN}/site-tmac \ | ||
79 | ${libdir}/${BPN}/groffer/" | ||
80 | |||
81 | BBCLASSEXTEND = "native" | ||