diff options
Diffstat (limited to 'recipes-extended/groff/groff_1.18.1.4.bb')
-rw-r--r-- | recipes-extended/groff/groff_1.18.1.4.bb | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/recipes-extended/groff/groff_1.18.1.4.bb b/recipes-extended/groff/groff_1.18.1.4.bb new file mode 100644 index 0000000..fc7eb44 --- /dev/null +++ b/recipes-extended/groff/groff_1.18.1.4.bb | |||
@@ -0,0 +1,50 @@ | |||
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 = "console/utils" | ||
5 | HOMEPAGE = "http://www.gnu.org/software/groff/" | ||
6 | LICENSE = "GPLv2" | ||
7 | PR = "r1" | ||
8 | |||
9 | LIC_FILES_CHKSUM = "file://COPYING;md5=e43fc16fccd8519fba405f0a0ff6e8a3" | ||
10 | |||
11 | SRC_URI = "${GNU_MIRROR}/${BPN}/old/${BP}.tar.gz \ | ||
12 | file://groff-1.18.1.4-remove-mom.patch;striplevel=1 \ | ||
13 | file://man-local.patch \ | ||
14 | file://mdoc-local.patch \ | ||
15 | file://groff-1.18.1.4-fix-bindir.patch \ | ||
16 | file://fix-narrowing-conversion-error.patch \ | ||
17 | " | ||
18 | |||
19 | inherit autotools texinfo | ||
20 | |||
21 | EXTRA_OECONF="--without-x --prefix=${D} --exec-prefix=${D} --bindir=${D}${bindir} --datadir=${D}${datadir} --mandir=${D}${datadir}/man --infodir=${D}${datadir}info --with-appresdir=${D}${datadir}" | ||
22 | |||
23 | SRC_URI[md5sum] = "ceecb81533936d251ed015f40e5f7287" | ||
24 | SRC_URI[sha256sum] = "ff3c7c3b6cae5e8cc5062a144de5eff0022e8e970e1774529cc2d5dde46ce50d" | ||
25 | PARALLEL_MAKE = "" | ||
26 | |||
27 | do_configure (){ | ||
28 | oe_runconf | ||
29 | } | ||
30 | |||
31 | do_install_append() { | ||
32 | # Some distros have both /bin/perl and /usr/bin/perl, but we set perl location | ||
33 | # for target as /usr/bin/perl, so fix it to /usr/bin/perl. | ||
34 | for i in afmtodit mmroff; do | ||
35 | if [ -f ${D}${bindir}/$i ]; then | ||
36 | sed -i -e '1s,#!.*perl,#! ${USRBINPATH}/env perl,' ${D}${bindir}/$i | ||
37 | fi | ||
38 | done | ||
39 | |||
40 | mkdir -p ${D}${sysconfdir}/groff | ||
41 | cp -rf ${D}${datadir}/groff/site-tmac/* ${D}${sysconfdir}/groff/ | ||
42 | cp -rf ${D}${datadir}/groff/site-tmac/* ${D}${datadir}/groff/${PV}/tmac/ | ||
43 | } | ||
44 | |||
45 | pkg_postinst_${PN}() { | ||
46 | ln -s tbl $D${bindir}/gtbl | ||
47 | echo "export GROFF_FONT_PATH=/usr/share/groff/${PV}/font" >> $D${sysconfdir}/profile | ||
48 | echo "export GROFF_TMAC_PATH=/usr/share/groff/${PV}/tmac" >> $D${sysconfdir}/profile | ||
49 | } | ||
50 | |||