diff options
author | Xiaofeng Yan <xiaofeng.yan@windriver.com> | 2010-09-02 16:47:02 +0800 |
---|---|---|
committer | Saul Wold <Saul.Wold@intel.com> | 2010-09-08 16:36:53 -0700 |
commit | ef8d4dc7d5c169eea8b3c117aaab01c4e297f0c0 (patch) | |
tree | 615b1495cdae5b99ff1378f5f85065fcfaa6f75a /meta/recipes-extended/groff | |
parent | 3f71edc3ef4672ea2bbe3d2f604ada121b3870ab (diff) | |
download | poky-ef8d4dc7d5c169eea8b3c117aaab01c4e297f0c0.tar.gz |
groff:Add new groff package
groff allows for a short reference for the GNU roff language
Signed-off-by: Xiaofeng Yan <xiaofeng.yan@windriver.com>
Diffstat (limited to 'meta/recipes-extended/groff')
4 files changed, 144 insertions, 0 deletions
diff --git a/meta/recipes-extended/groff/groff-1.18.1.4/groff-1.18.1.4-remove-mom.patch b/meta/recipes-extended/groff/groff-1.18.1.4/groff-1.18.1.4-remove-mom.patch new file mode 100644 index 0000000000..90ad8e3423 --- /dev/null +++ b/meta/recipes-extended/groff/groff-1.18.1.4/groff-1.18.1.4-remove-mom.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | --- | ||
2 | groff-1.18.1.4/Makefile.in | 7 +------ | ||
3 | 1 file changed, 1 insertion(+), 6 deletions(-) | ||
4 | |||
5 | --- a/Makefile.in | ||
6 | +++ b/Makefile.in | ||
7 | @@ -460,27 +460,22 @@ OTHERDIRS=\ | ||
8 | src/roff/grog \ | ||
9 | src/roff/nroff \ | ||
10 | contrib/mm \ | ||
11 | contrib/pic2graph \ | ||
12 | contrib/eqn2graph \ | ||
13 | - contrib/groffer \ | ||
14 | - contrib/mom \ | ||
15 | - doc | ||
16 | + contrib/groffer | ||
17 | ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) \ | ||
18 | $(DEVDIRS) $(OTHERDEVDIRS) $(TTYDEVDIRS) $(OTHERDIRS) | ||
19 | EXTRADIRS=\ | ||
20 | font/devps/generate \ | ||
21 | font/devdvi/generate \ | ||
22 | font/devlj4/generate \ | ||
23 | - src/xditview \ | ||
24 | doc | ||
25 | NOMAKEDIRS=\ | ||
26 | arch/djgpp \ | ||
27 | contrib/mm/examples \ | ||
28 | contrib/mm/mm \ | ||
29 | - contrib/mom/examples \ | ||
30 | - contrib/mom/momdoc \ | ||
31 | src/libs/snprintf | ||
32 | DISTDIRS=\ | ||
33 | $(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDEVDIRS) \ | ||
34 | $(ALLTTYDEVDIRS) $(OTHERDIRS) $(EXTRADIRS) $(NOMAKEDIRS) | ||
35 | TARGETS=all install install_bin install_data clean distclean mostlyclean \ | ||
diff --git a/meta/recipes-extended/groff/groff-1.18.1.4/man-local.patch b/meta/recipes-extended/groff/groff-1.18.1.4/man-local.patch new file mode 100644 index 0000000000..34b4248da5 --- /dev/null +++ b/meta/recipes-extended/groff/groff-1.18.1.4/man-local.patch | |||
@@ -0,0 +1,32 @@ | |||
1 | Index: groff-1.18.1.4/tmac/man.local | ||
2 | =================================================================== | ||
3 | --- groff-1.18.1.4.orig/tmac/man.local 2000-10-26 22:15:17.000000000 +0800 | ||
4 | +++ groff-1.18.1.4/tmac/man.local 2010-08-24 14:17:52.070006664 +0800 | ||
5 | @@ -1,2 +1,27 @@ | ||
6 | .\" This file is loaded after an-old.tmac. | ||
7 | .\" Put any local modifications to an-old.tmac here. | ||
8 | +. | ||
9 | +.if n \{\ | ||
10 | +. \" Debian: Map \(oq to ' rather than ` in nroff mode for devices other | ||
11 | +. \" than utf8. | ||
12 | +. if !'\*[.T]'utf8' \ | ||
13 | +. tr \[oq]' | ||
14 | +. | ||
15 | +. \" Debian: Disable the use of SGR (ANSI colour) escape sequences by | ||
16 | +. \" grotty. | ||
17 | +. if '\V[GROFF_SGR]'' \ | ||
18 | +. output x X tty: sgr 0 | ||
19 | +. | ||
20 | +. \" Debian: Map \- to the Unicode HYPHEN-MINUS character, to make | ||
21 | +. \" searching in man pages easier. | ||
22 | +. if '\*[.T]'utf8' \ | ||
23 | +. char \- \N'45' | ||
24 | +. | ||
25 | +. \" Debian: Many UTF-8 man pages use "-" instead of "\-" for dashes such | ||
26 | +. \" as those in command-line options. This is a bug in those pages, but | ||
27 | +. \" too many fonts are missing the Unicode HYPHEN character, so we render | ||
28 | +. \" this as the ASCII-compatible HYPHEN-MINUS instead. | ||
29 | +. if '\*[.T]'utf8' \ | ||
30 | +. char - \N'45' | ||
31 | +.\} | ||
32 | + | ||
diff --git a/meta/recipes-extended/groff/groff-1.18.1.4/mdoc-local.patch b/meta/recipes-extended/groff/groff-1.18.1.4/mdoc-local.patch new file mode 100644 index 0000000000..140a544af3 --- /dev/null +++ b/meta/recipes-extended/groff/groff-1.18.1.4/mdoc-local.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | Index: groff-1.18.1.4/tmac/mdoc.local | ||
2 | =================================================================== | ||
3 | --- groff-1.18.1.4.orig/tmac/mdoc.local 2001-03-23 08:17:51.000000000 +0800 | ||
4 | +++ groff-1.18.1.4/tmac/mdoc.local 2010-08-24 14:20:22.014006846 +0800 | ||
5 | @@ -1,2 +1,26 @@ | ||
6 | .\" This file is loaded after doc.tmac. | ||
7 | .\" Put any local modifications to doc.tmac here. | ||
8 | +. | ||
9 | +.if n \{\ | ||
10 | +. \" Debian: Map \(oq to ' rather than ` in nroff mode for devices other | ||
11 | +. \" than utf8. | ||
12 | +. if !'\*[.T]'utf8' \ | ||
13 | +. tr \[oq]' | ||
14 | +. | ||
15 | +. \" Debian: Disable the use of SGR (ANSI colour) escape sequences by | ||
16 | +. \" grotty. | ||
17 | +. if '\V[GROFF_SGR]'' \ | ||
18 | +. output x X tty: sgr 0 | ||
19 | +. | ||
20 | +. \" Debian: Map \- to the Unicode HYPHEN-MINUS character, to make | ||
21 | +. \" searching in man pages easier. | ||
22 | +. if '\*[.T]'utf8' \ | ||
23 | +. char \- \N'45' | ||
24 | +. | ||
25 | +. \" Debian: Many UTF-8 man pages use "-" instead of "\-" for dashes such | ||
26 | +. \" as those in command-line options. This is a bug in those pages, but | ||
27 | +. \" too many fonts are missing the Unicode HYPHEN character, so we render | ||
28 | +. \" this as the ASCII-compatible HYPHEN-MINUS instead. | ||
29 | +. if '\*[.T]'utf8' \ | ||
30 | +. char - \N'45' | ||
31 | +.\} | ||
diff --git a/meta/recipes-extended/groff/groff_1.18.1.4.bb b/meta/recipes-extended/groff/groff_1.18.1.4.bb new file mode 100644 index 0000000000..a215745ce4 --- /dev/null +++ b/meta/recipes-extended/groff/groff_1.18.1.4.bb | |||
@@ -0,0 +1,46 @@ | |||
1 | DESCRIPTION = "groff-a short reference for the GNU roff language " | ||
2 | SECTION = "console/utils" | ||
3 | PRIORITY = "required" | ||
4 | HOMEPAGE = "ftp://ftp.gnu.org/gnu/groff/" | ||
5 | LICENSE = "GPLv2" | ||
6 | PR = "r0" | ||
7 | |||
8 | LIC_FILE_CHKSUM = "file://CORYING;md5=e43fc16fccd8519fba405f0a0ff6e8a3" | ||
9 | |||
10 | SRC_URI = "ftp://ftp.gnu.org/gnu/groff/groff-1.18.1.4.tar.gz \ | ||
11 | file://groff-1.18.1.4-remove-mom.patch;striplevel=1 \ | ||
12 | file://man-local.patch;patch=1 \ | ||
13 | file://mdoc-local.patch;patch=1" | ||
14 | |||
15 | inherit autotools | ||
16 | |||
17 | EXTRA_OEMAKE =+ "-f Makefile mandir=${D}${mandir}" | ||
18 | |||
19 | localdir=/usr/local/ | ||
20 | do_configure (){ | ||
21 | mkdir -p ${D}/usr/local | ||
22 | ${S}/configure --prefix=${D}/usr/local | ||
23 | } | ||
24 | |||
25 | |||
26 | fakeroot do_install(){ | ||
27 | mkdir -p ${D}/usr/local/man/man1 | ||
28 | mkdir -p ${D}/usr/local/man/man5 | ||
29 | mkdir -p ${D}/usr/local/man/man7 | ||
30 | oe_runmake install DESTDIR=${D} | ||
31 | } | ||
32 | |||
33 | do_install_append() { | ||
34 | mv ${D}/usr/local/bin ${D}/usr | ||
35 | mkdir -p ${D}${sysconfdir}/groff | ||
36 | cp -rf ${D}/usr/local/share/groff/site-tmac/* ${D}/usr/local/share/groff/1.18.1.4/tmac/ | ||
37 | cp -rf ${D}/usr/local/share/groff/site-tmac/* ${D}${sysconfdir}/groff/ | ||
38 | } | ||
39 | |||
40 | pkg_postinst_${PN}() { | ||
41 | ln -s ${bindir}/tbl ${bindir}/gtbl | ||
42 | echo "export GROFF_FONT_PATH=/usr/local/share/groff/1.18.1.4/font" >> ${sysconfdir}/profile | ||
43 | echo "export GROFF_TMAC_PATH=/usr/local/share/groff/1.18.1.4/tmac" >> ${sysconfdir}/profile | ||
44 | } | ||
45 | |||
46 | FILES_${PN} += "${localdir}/" | ||