diff options
Diffstat (limited to 'meta/recipes-extended/groff/groff_1.23.0.bb')
-rw-r--r-- | meta/recipes-extended/groff/groff_1.23.0.bb | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/meta/recipes-extended/groff/groff_1.23.0.bb b/meta/recipes-extended/groff/groff_1.23.0.bb new file mode 100644 index 0000000000..0c2ef61758 --- /dev/null +++ b/meta/recipes-extended/groff/groff_1.23.0.bb | |||
@@ -0,0 +1,81 @@ | |||
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://groff-not-search-fonts-on-build-host.patch \ | ||
12 | file://0001-Make-manpages-mulitlib-identical.patch \ | ||
13 | file://0001-build-Fix-Savannah-64681-webpage.ps-deps.patch \ | ||
14 | file://0001-build-meintro_fr.ps-depends-on-tbl.patch \ | ||
15 | file://0001-hdtbl-Fix-Savannah-66316-missing-grn-dep.patch \ | ||
16 | file://0001-contrib-hdtbl-hdtbl.am-Fix-race-issues-for-parallel-.patch \ | ||
17 | file://0001-getopt-Fix-type-signature-for-getenv.patch \ | ||
18 | " | ||
19 | |||
20 | SRC_URI[sha256sum] = "6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13" | ||
21 | |||
22 | DEPENDS = "bison-native groff-native" | ||
23 | RDEPENDS:${PN} += "perl sed" | ||
24 | |||
25 | inherit autotools-brokensep texinfo multilib_script pkgconfig | ||
26 | |||
27 | MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/grog" | ||
28 | |||
29 | EXTRA_OECONF = "--without-x --with-urw-fonts-dir=/completely/bogus/dir/" | ||
30 | EXTRA_OEMAKE:class-target = "GROFFBIN=groff GROFF_BIN_PATH=${STAGING_BINDIR_NATIVE}" | ||
31 | |||
32 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4" | ||
33 | |||
34 | # Delete these generated files since we depend on bison-native | ||
35 | # and regenerate them. Do it deterministically (always). | ||
36 | do_configure:prepend() { | ||
37 | rm -f ${S}/src/preproc/eqn/eqn.cpp | ||
38 | rm -f ${S}/src/preproc/eqn/eqn.hpp | ||
39 | } | ||
40 | |||
41 | do_install:append() { | ||
42 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
43 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
44 | for i in afmtodit mmroff gropdf pdfmom grog; do | ||
45 | if [ -f ${D}${bindir}/$i ]; then | ||
46 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/$i | ||
47 | fi | ||
48 | done | ||
49 | if [ -e ${D}${libdir}/charset.alias ]; then | ||
50 | rm -rf ${D}${libdir}/charset.alias | ||
51 | fi | ||
52 | |||
53 | # awk is located at /usr/bin/, not /bin/ | ||
54 | SPECIAL_AWK=`find ${D} -name special.awk` | ||
55 | if [ -f ${SPECIAL_AWK} ]; then | ||
56 | sed -i -e 's:#!.*awk:#! ${USRBINPATH}/awk:' ${SPECIAL_AWK} | ||
57 | fi | ||
58 | |||
59 | # not ship /usr/bin/glilypond and its releated files in embedded target system | ||
60 | rm -rf ${D}${bindir}/glilypond | ||
61 | rm -rf ${D}${libdir}/groff/glilypond | ||
62 | rm -rf ${D}${mandir}/man1/glilypond* | ||
63 | |||
64 | # not ship /usr/bin/grap2graph and its releated man files | ||
65 | rm -rf ${D}${bindir}/grap2graph | ||
66 | rm -rf ${D}${mandir}/man1/grap2graph* | ||
67 | |||
68 | # strip hosttool path out of generated files | ||
69 | sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff | ||
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" | ||