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 | 78 |
1 files changed, 78 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..0fc4f831d8 --- /dev/null +++ b/meta/recipes-extended/groff/groff_1.23.0.bb | |||
@@ -0,0 +1,78 @@ | |||
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 | " | ||
16 | |||
17 | SRC_URI[sha256sum] = "6b9757f592b7518b4902eb6af7e54570bdccba37a871fddb2d30ae3863511c13" | ||
18 | |||
19 | DEPENDS = "bison-native groff-native" | ||
20 | RDEPENDS:${PN} += "perl sed" | ||
21 | |||
22 | inherit autotools-brokensep texinfo multilib_script pkgconfig | ||
23 | |||
24 | MULTILIB_SCRIPTS = "${PN}:${bindir}/gpinyin ${PN}:${bindir}/grog" | ||
25 | |||
26 | EXTRA_OECONF = "--without-x --with-urw-fonts-dir=/completely/bogus/dir/" | ||
27 | EXTRA_OEMAKE:class-target = "GROFFBIN=groff GROFF_BIN_PATH=${STAGING_BINDIR_NATIVE}" | ||
28 | |||
29 | CACHED_CONFIGUREVARS += "ac_cv_path_PERL='/usr/bin/env perl' ac_cv_path_BASH_PROG='no' PAGE=A4" | ||
30 | |||
31 | # Delete these generated files since we depend on bison-native | ||
32 | # and regenerate them. Do it deterministically (always). | ||
33 | do_configure:prepend() { | ||
34 | rm -f ${S}/src/preproc/eqn/eqn.cpp | ||
35 | rm -f ${S}/src/preproc/eqn/eqn.hpp | ||
36 | } | ||
37 | |||
38 | do_install:append() { | ||
39 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
40 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
41 | for i in afmtodit mmroff gropdf pdfmom grog; do | ||
42 | if [ -f ${D}${bindir}/$i ]; then | ||
43 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/$i | ||
44 | fi | ||
45 | done | ||
46 | if [ -e ${D}${libdir}/charset.alias ]; then | ||
47 | rm -rf ${D}${libdir}/charset.alias | ||
48 | fi | ||
49 | |||
50 | # awk is located at /usr/bin/, not /bin/ | ||
51 | SPECIAL_AWK=`find ${D} -name special.awk` | ||
52 | if [ -f ${SPECIAL_AWK} ]; then | ||
53 | sed -i -e 's:#!.*awk:#! ${USRBINPATH}/awk:' ${SPECIAL_AWK} | ||
54 | fi | ||
55 | |||
56 | # not ship /usr/bin/glilypond and its releated files in embedded target system | ||
57 | rm -rf ${D}${bindir}/glilypond | ||
58 | rm -rf ${D}${libdir}/groff/glilypond | ||
59 | rm -rf ${D}${mandir}/man1/glilypond* | ||
60 | |||
61 | # not ship /usr/bin/grap2graph and its releated man files | ||
62 | rm -rf ${D}${bindir}/grap2graph | ||
63 | rm -rf ${D}${mandir}/man1/grap2graph* | ||
64 | |||
65 | # strip hosttool path out of generated files | ||
66 | sed -i -e 's:${HOSTTOOLS_DIR}/::g' ${D}${docdir}/${BP}/examples/hdtbl/*.roff | ||
67 | } | ||
68 | |||
69 | do_install:append:class-native() { | ||
70 | create_cmdline_wrapper ${D}/${bindir}/groff \ | ||
71 | -F${STAGING_DIR_NATIVE}${datadir_native}/groff/${PV}/font \ | ||
72 | -M${STAGING_DIR_NATIVE}${datadir_native}/groff/${PV}/tmac | ||
73 | } | ||
74 | |||
75 | FILES:${PN} += "${libdir}/${BPN}/site-tmac \ | ||
76 | ${libdir}/${BPN}/groffer/" | ||
77 | |||
78 | BBCLASSEXTEND = "native" | ||