groff: ported 1.19.2
authorFrans Meulenbroeks <fransmeulenbroeks@yahoo.com>
Sat, 3 Dec 2005 17:59:18 +0000 (17:59 +0000)
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>
Sat, 3 Dec 2005 17:59:18 +0000 (17:59 +0000)
added patch for Makefile.in to exclude contrib/groffer and the html doc
groffer did not build and html lead to package errors
added patch for src/include/Makefile.in:
    fontpath and tmacpath pointed to the path in the crossbuild env
    this gave a wrong src/include/defs.h
  Changed this somewhat crude by replacing with a hardcoded path
(in /usr/share)

packages/groff/groff/Makefile.in.patch [new file with mode: 0644]
packages/groff/groff/Makefile.sub.patch [new file with mode: 0644]
packages/groff/groff_1.19.2.bb [new file with mode: 0644]

diff --git a/packages/groff/groff/Makefile.in.patch b/packages/groff/groff/Makefile.in.patch
new file mode 100644 (file)
index 0000000..30aac8c
--- /dev/null
@@ -0,0 +1,31 @@
+*** groff-1.19.2/Makefile.in.orig      Sun Aug  7 10:03:33 2005
+--- groff-1.19.2/Makefile.in   Sat Dec  3 16:44:50 2005
+***************
+*** 242,249 ****
+  
+  # The configure script checks whether all necessary utility programs for
+  # grohtml are available -- only then we can build the HTML documentation.
+! make_html=@make_html@
+! make_install_html=@make_install_html@
+  
+  # The configure script also checks whether all necessary utility programs
+  # for pdfroff are available -- only then we can build PDF documentation.
+--- 242,249 ----
+  
+  # The configure script checks whether all necessary utility programs for
+  # grohtml are available -- only then we can build the HTML documentation.
+! make_html=
+! make_install_html=
+  
+  # The configure script also checks whether all necessary utility programs
+  # for pdfroff are available -- only then we can build PDF documentation.
+***************
+*** 549,555 ****
+    contrib/pic2graph \
+    contrib/eqn2graph \
+    contrib/grap2graph \
+-   contrib/groffer \
+    contrib/mom \
+    contrib/pdfmark \
+    contrib/gdiffmk
+--- 549,554 ----
diff --git a/packages/groff/groff/Makefile.sub.patch b/packages/groff/groff/Makefile.sub.patch
new file mode 100644 (file)
index 0000000..1b5a7df
--- /dev/null
@@ -0,0 +1,21 @@
+*** groff-1.19.2/src/include/Makefile.sub.orig Thu Jun 23 13:27:53 2005
+--- groff-1.19.2/src/include/Makefile.sub      Sat Dec  3 18:35:40 2005
+***************
+*** 39,46 ****
+       "DEVICE=\"$(DEVICE)\"" \
+       "INSTALLPATH=\"$(prefix)\"" \
+       "BINPATH=\"$(bindir)\"" \
+!      "FONTPATH=\"$(fontpath)\"" \
+!      "MACROPATH=\"$(tmacpath)\"" \
+       "INDEX_SUFFIX=\"$(indexext)\"" \
+       "COMMON_WORDS_FILE=\"$(common_words_file)\"" \
+       "DEFAULT_INDEX_DIR=\"$(indexdir)\"" \
+--- 39,46 ----
+       "DEVICE=\"$(DEVICE)\"" \
+       "INSTALLPATH=\"$(prefix)\"" \
+       "BINPATH=\"$(bindir)\"" \
+!      "FONTPATH=\"/usr/share/groff/site-font:/usr/share/groff/1.19.2/font:/usr/lib/font\"" \
+!      "MACROPATH=\"/usr/lib/groff/site-tmac:/usr/share/groff/site-tmac:/usr/share/groff/1.19.2/tmac\"" \
+       "INDEX_SUFFIX=\"$(indexext)\"" \
+       "COMMON_WORDS_FILE=\"$(common_words_file)\"" \
+       "DEFAULT_INDEX_DIR=\"$(indexdir)\"" \
diff --git a/packages/groff/groff_1.19.2.bb b/packages/groff/groff_1.19.2.bb
new file mode 100644 (file)
index 0000000..7381bb3
--- /dev/null
@@ -0,0 +1,23 @@
+LICENSE = "GPL"
+SECTION = "base"
+DESCRIPTION = "GNU roff"
+RDEPENDS="libstdc++6"
+MAINTAINER = "Inge Arnesen <inge.arnesen@gmail.com>"
+SRC_URI = "http://ftp.gnu.org/gnu/groff/groff-${PV}.tar.gz \
+                  file://Makefile.in.patch;patch=1 \
+                  file://Makefile.sub.patch;patch=1 \
+                  file://groff.patch;patch=1"
+
+# prefix and exec-prefix are broken and the .in file is broken too 
+# and can't be autoreconf'ed, so specify every dir
+EXTRA_OECONF="--prefix=${D} --exec-prefix=${D} --bindir=${D}/usr/bin --datadir=${D}/usr/share --mandir=${D}/usr/man --infodir=${D}/usr/share/info"
+inherit autotools
+
+do_configure () {
+       oe_runconf
+}
+
+#do_install() {
+#      oe_runmake 'PREFIX=${D}' install
+#}
+