diff options
author | Vitus Jensen <vjensen@gmx.de> | 2009-03-24 00:36:42 +0100 |
---|---|---|
committer | Michael 'Mickey' Lauer <mickey@vanille-media.de> | 2010-01-03 14:40:37 +0100 |
commit | 6daa2e3eb38232e7b1c4b9a8b358f70522214052 (patch) | |
tree | 16e5f5a7f198b48afb9529c4ac3f042af3caeccd /recipes/htmldoc | |
parent | 5b314f4d597cfc4e5b304d35816a8b95b6314bde (diff) |
htmldoc: new recipes
HTMLDOC converts HTML input files into indexed HTML, postscript or PDF files. These recipes build version 1.8.27 and 1.9.x-r1571 of htmldoc.
Signed-off-by: Vitus Jensen <vjensen@gmx.de>
Diffstat (limited to 'recipes/htmldoc')
-rw-r--r-- | recipes/htmldoc/files/paths_1.8.27.patch | 109 | ||||
-rw-r--r-- | recipes/htmldoc/files/paths_1.9.x.patch | 109 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc-gui_1.8.27.bb | 24 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc-gui_1.9.x-r1571.bb | 24 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc-native_1.8.27.bb | 34 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc-native_1.9.x-r1571.bb | 34 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc.inc | 6 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc_1.8.27.bb | 22 | ||||
-rw-r--r-- | recipes/htmldoc/htmldoc_1.9.x-r1571.bb | 22 |
9 files changed, 384 insertions, 0 deletions
diff --git a/recipes/htmldoc/files/paths_1.8.27.patch b/recipes/htmldoc/files/paths_1.8.27.patch new file mode 100644 index 0000000000..96cfde6fc9 --- /dev/null +++ b/recipes/htmldoc/files/paths_1.8.27.patch @@ -0,0 +1,109 @@ +diff -Naur a/Makedefs.in b/Makedefs.in +--- a/Makedefs.in 2005-10-28 22:32:59.000000000 +0200 ++++ b/Makedefs.in 2009-03-23 23:40:35.928865178 +0100 +@@ -46,6 +46,7 @@ + # + # Directories... + # ++DESTDIR = @DESTDIR@ + + bindir = @bindir@ + datadir = @datadir@ +diff -Naur a/data/Makefile b/data/Makefile +--- a/data/Makefile 2004-05-10 03:14:53.000000000 +0200 ++++ b/data/Makefile 2009-03-23 23:35:27.850856359 +0100 +@@ -53,11 +53,11 @@ + # + + install: +- if [ ! -d $(datadir)/htmldoc/data ]; then\ +- $(MKDIR) $(datadir)/htmldoc/data;\ ++ if [ ! -d $(DESTDIR)$(datadir)/htmldoc/data ]; then\ ++ $(MKDIR) $(DESTDIR)$(datadir)/htmldoc/data;\ + fi +- $(CP) $(FILES) $(datadir)/htmldoc/data +- $(CHMOD) ugo+r $(datadir)/htmldoc/data/* ++ $(CP) $(FILES) $(DESTDIR)$(datadir)/htmldoc/data ++ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/htmldoc/data/* + + + # +diff -Naur a/doc/Makefile b/doc/Makefile +--- a/doc/Makefile 2005-10-28 22:32:59.000000000 +0200 ++++ b/doc/Makefile 2009-03-23 23:38:19.478865122 +0100 +@@ -42,7 +42,7 @@ + DOCUMENTS = htmldoc.html htmldoc.pdf htmldoc.ps + DOCFILES = help.html htmldoc.pdf + +-HTMLDOC = ../htmldoc/htmldoc$(EXEEXT) --datadir .. --strict --verbose ++HTMLDOC = htmldoc$(EXEEXT) --datadir .. --strict --verbose + + + # +@@ -57,16 +57,16 @@ + # + + install: $(DOCUMENTS) +- if [ ! -d $(datadir)/doc/htmldoc ]; then\ +- $(MKDIR) $(datadir)/doc/htmldoc;\ ++ if [ ! -d $(DESTDIR)$(datadir)/doc/htmldoc ]; then\ ++ $(MKDIR) $(DESTDIR)$(datadir)/doc/htmldoc;\ + fi +- $(CP) $(DOCFILES) $(datadir)/doc/htmldoc +- $(CHMOD) ugo+r $(datadir)/doc/htmldoc/* +- if [ ! -d $(mandir)/man1 ]; then\ +- $(MKDIR) $(mandir)/man1;\ ++ $(CP) $(DOCFILES) $(DESTDIR)$(datadir)/doc/htmldoc ++ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/doc/htmldoc/* ++ if [ ! -d $(DESTDIR)$(mandir)/man1 ]; then\ ++ $(MKDIR) $(DESTDIR)$(mandir)/man1;\ + fi +- $(CP) htmldoc.man $(mandir)/man1/htmldoc.1 +- $(CHMOD) ugo+r $(mandir)/man1/htmldoc.1 ++ $(CP) htmldoc.man $(DESTDIR)$(mandir)/man1/htmldoc.1 ++ $(CHMOD) ugo+r $(DESTDIR)$(mandir)/man1/htmldoc.1 + + + # +diff -Naur a/fonts/Makefile b/fonts/Makefile +--- a/fonts/Makefile 2005-10-28 22:32:59.000000000 +0200 ++++ b/fonts/Makefile 2009-03-23 23:39:07.608863524 +0100 +@@ -75,14 +75,14 @@ + + install: + echo "Installing font files in $(datadir)/htmldoc/fonts..." +- if [ ! -d $(datadir)/htmldoc/fonts ]; then\ +- $(MKDIR) $(datadir)/htmldoc/fonts;\ ++ if [ ! -d $(DESTDIR)$(datadir)/htmldoc/fonts ]; then\ ++ $(MKDIR) $(DESTDIR)$(datadir)/htmldoc/fonts;\ + fi + for font in $(FONTS); do \ +- $(CP) $$font.afm $(datadir)/htmldoc/fonts; \ +- $(CP) $$font.pfa $(datadir)/htmldoc/fonts; \ ++ $(CP) $$font.afm $(DESTDIR)$(datadir)/htmldoc/fonts; \ ++ $(CP) $$font.pfa $(DESTDIR)$(datadir)/htmldoc/fonts; \ + done +- $(CHMOD) ugo+r $(datadir)/htmldoc/fonts/* ++ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/htmldoc/fonts/* + + + # +diff -Naur a/htmldoc/Makefile b/htmldoc/Makefile +--- a/htmldoc/Makefile 2005-10-28 22:32:59.000000000 +0200 ++++ b/htmldoc/Makefile 2009-03-23 23:40:02.078914179 +0100 +@@ -50,11 +50,11 @@ + # + + install: all +- if [ ! -d $(bindir) ]; then\ +- $(MKDIR) $(bindir);\ ++ if [ ! -d $(DESTDIR)$(bindir) ]; then\ ++ $(MKDIR) $(DESTDIR)$(bindir);\ + fi +- cp htmldoc$(EXEEXT) $(bindir) +- chmod ugo+rx $(bindir)/htmldoc$(EXEEXT) ++ cp htmldoc$(EXEEXT) $(DESTDIR)$(bindir) ++ chmod ugo+rx $(DESTDIR)$(bindir)/htmldoc$(EXEEXT) + + + # diff --git a/recipes/htmldoc/files/paths_1.9.x.patch b/recipes/htmldoc/files/paths_1.9.x.patch new file mode 100644 index 0000000000..f05e405631 --- /dev/null +++ b/recipes/htmldoc/files/paths_1.9.x.patch @@ -0,0 +1,109 @@ +diff -Naur a/data/Makefile b/data/Makefile +--- a/data/Makefile 2008-01-06 02:55:59.000000000 +0100 ++++ b/data/Makefile 2008-11-16 20:02:56.000000000 +0100 +@@ -51,11 +51,11 @@ + # + + install: +- if [ ! -d $(datadir)/htmldoc/data ]; then\ +- $(MKDIR) $(datadir)/htmldoc/data;\ ++ if [ ! -d $(DESTDIR)$(datadir)/htmldoc/data ]; then\ ++ $(MKDIR) $(DESTDIR)$(datadir)/htmldoc/data;\ + fi +- $(CP) $(FILES) $(datadir)/htmldoc/data +- $(CHMOD) ugo+r $(datadir)/htmldoc/data/* ++ $(CP) $(FILES) $(DESTDIR)$(datadir)/htmldoc/data ++ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/htmldoc/data/* + + + # +diff -Naur a/doc/Makefile b/doc/Makefile +--- a/doc/Makefile 2008-01-06 02:55:59.000000000 +0100 ++++ b/doc/Makefile 2008-11-16 20:04:06.000000000 +0100 +@@ -57,7 +57,7 @@ + DOCUMENTS = htmldoc.html htmldoc.pdf htmldoc.ps + DOCFILES = htmldoc.pdf + +-HTMLDOC = HTMLDOC_DATA=".." ../htmldoc/htmldoc$(EXEEXT) --strict --verbose ++HTMLDOC = HTMLDOC_DATA=".." htmldoc$(EXEEXT) --strict --verbose + + + # +@@ -72,16 +72,16 @@ + # + + install: $(DOCUMENTS) +- if [ ! -d $(datadir)/doc/htmldoc ]; then\ +- $(MKDIR) $(datadir)/doc/htmldoc;\ ++ if [ ! -d $(DESTDIR)$(datadir)/doc/htmldoc ]; then\ ++ $(MKDIR) $(DESTDIR)$(datadir)/doc/htmldoc;\ + fi +- $(CP) $(DOCFILES) $(datadir)/doc/htmldoc +- $(CHMOD) ugo+r $(datadir)/doc/htmldoc/* +- if [ ! -d $(mandir)/man1 ]; then\ +- $(MKDIR) $(mandir)/man1;\ ++ $(CP) $(DOCFILES) $(DESTDIR)$(datadir)/doc/htmldoc ++ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/doc/htmldoc/* ++ if [ ! -d $(DESTDIR)$(mandir)/man1 ]; then\ ++ $(MKDIR) $(DESTDIR)$(mandir)/man1;\ + fi +- $(CP) htmldoc.man $(mandir)/man1/htmldoc.1 +- $(CHMOD) ugo+r $(mandir)/man1/htmldoc.1 ++ $(CP) htmldoc.man $(DESTDIR)$(mandir)/man1/htmldoc.1 ++ $(CHMOD) ugo+r $(DESTDIR)$(mandir)/man1/htmldoc.1 + + + # +diff -Naur a/fonts/Makefile b/fonts/Makefile +--- a/fonts/Makefile 2008-01-06 02:55:59.000000000 +0100 ++++ b/fonts/Makefile 2008-11-16 20:04:08.000000000 +0100 +@@ -73,14 +73,14 @@ + + install: + echo "Installing font files in $(datadir)/htmldoc/fonts..." +- if test ! -d $(datadir)/htmldoc/fonts; then\ +- $(MKDIR) $(datadir)/htmldoc/fonts;\ ++ if test ! -d $(DESTDIR)$(datadir)/htmldoc/fonts; then\ ++ $(MKDIR) $(DESTDIR)$(datadir)/htmldoc/fonts;\ + fi + for font in $(FONTS); do \ +- $(CP) $$font.afm $(datadir)/htmldoc/fonts; \ +- $(CP) $$font.pfa $(datadir)/htmldoc/fonts; \ ++ $(CP) $$font.afm $(DESTDIR)$(datadir)/htmldoc/fonts; \ ++ $(CP) $$font.pfa $(DESTDIR)$(datadir)/htmldoc/fonts; \ + done +- $(CHMOD) ugo+r $(datadir)/htmldoc/fonts/* ++ $(CHMOD) ugo+r $(DESTDIR)$(datadir)/htmldoc/fonts/* + + + # +diff -Naur a/htmldoc/Makefile b/htmldoc/Makefile +--- a/htmldoc/Makefile 2008-03-01 19:18:52.000000000 +0100 ++++ b/htmldoc/Makefile 2008-11-16 20:05:12.000000000 +0100 +@@ -104,11 +104,11 @@ + # + + install: all +- if [ ! -d $(bindir) ]; then\ +- $(MKDIR) $(bindir);\ ++ if [ ! -d $(DESTDIR)$(bindir) ]; then\ ++ $(MKDIR) $(DESTDIR)$(bindir);\ + fi +- cp htmldoc$(EXEEXT) $(bindir) +- chmod ugo+rx $(bindir)/htmldoc$(EXEEXT) ++ cp htmldoc$(EXEEXT) $(DESTDIR)$(bindir) ++ chmod ugo+rx $(DESTDIR)$(bindir)/htmldoc$(EXEEXT) + + + # +diff -Naur a/Makedefs.in b/Makedefs.in +--- a/Makedefs.in 2008-03-01 19:18:52.000000000 +0100 ++++ b/Makedefs.in 2008-11-16 20:00:34.000000000 +0100 +@@ -45,6 +45,7 @@ + # + # Directories... + # ++DESTDIR = @DESTDIR@ + + bindir = @bindir@ + datadir = @datadir@ diff --git a/recipes/htmldoc/htmldoc-gui_1.8.27.bb b/recipes/htmldoc/htmldoc-gui_1.8.27.bb new file mode 100644 index 0000000000..339c484f57 --- /dev/null +++ b/recipes/htmldoc/htmldoc-gui_1.8.27.bb @@ -0,0 +1,24 @@ +require htmldoc.inc +DEPENDS += "htmldoc-native fltk" +PR = "r2" + + +SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/${PV}/htmldoc-${PV}-source.tar.bz2 \ +file://paths_1.8.27.patch;patch=1" + + +S = "${WORKDIR}/htmldoc-${PV}" + +inherit autotools pkgconfig + +EXTRA_AUTORECONF += "--exclude=autoheader" +EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \ + --with-gui=yes" + +FILES_${PN} += "${datadir}/htmldoc/fonts" +FILES_${PN} += "${datadir}/htmldoc/data" + + +do_install() { + oe_runmake 'DESTDIR=${D}' install +} diff --git a/recipes/htmldoc/htmldoc-gui_1.9.x-r1571.bb b/recipes/htmldoc/htmldoc-gui_1.9.x-r1571.bb new file mode 100644 index 0000000000..f2315c585c --- /dev/null +++ b/recipes/htmldoc/htmldoc-gui_1.9.x-r1571.bb @@ -0,0 +1,24 @@ +require htmldoc.inc +DEPENDS += "htmldoc-native fltk" +PR = "r2" + + +SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/snapshots/htmldoc-${PV}.tar.bz2 \ +file://paths_1.9.x.patch;patch=1" + + +S = "${WORKDIR}/htmldoc-${PV}" + +inherit autotools pkgconfig + +EXTRA_AUTORECONF += "--exclude=autoheader" +EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \ + --with-gui=yes" + +FILES_${PN} += "${datadir}/htmldoc/fonts" +FILES_${PN} += "${datadir}/htmldoc/data" + + +do_install() { + oe_runmake 'DESTDIR=${D}' install +} diff --git a/recipes/htmldoc/htmldoc-native_1.8.27.bb b/recipes/htmldoc/htmldoc-native_1.8.27.bb new file mode 100644 index 0000000000..b1cd62fd12 --- /dev/null +++ b/recipes/htmldoc/htmldoc-native_1.8.27.bb @@ -0,0 +1,34 @@ +require htmldoc.inc +PR = "r2" + + +SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/${PV}/htmldoc-${PV}-source.tar.bz2 \ +file://paths_1.8.27.patch;patch=1" + + +inherit autotools native + +EXTRA_AUTORECONF += "--exclude=autoheader" +EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \ + --with-gui=no" + + +do_compile() { + cd htmldoc && oe_runmake all ; cd ${S} +} + + +do_stage () { + install -d ${STAGING_DATADIR}/htmldoc/fonts + install -m 0644 ${S}/fonts/*.afm ${STAGING_DATADIR}/htmldoc/fonts/ + install -m 0644 ${S}/fonts/*.pfa ${STAGING_DATADIR}/htmldoc/fonts/ + + install -d ${STAGING_DATADIR}/htmldoc/data + install -m 0644 ${S}/data/* ${STAGING_DATADIR}/htmldoc/data/ + + install -d ${STAGING_DIR_HOST}${layout_mandir}/man1 + install -m 0644 ${S}/doc/htmldoc.man ${STAGING_DIR_HOST}${layout_mandir}/man1/ + + install -d ${STAGING_BINDIR} + install -m 0755 ${S}/htmldoc/htmldoc ${STAGING_BINDIR}/ +} diff --git a/recipes/htmldoc/htmldoc-native_1.9.x-r1571.bb b/recipes/htmldoc/htmldoc-native_1.9.x-r1571.bb new file mode 100644 index 0000000000..ee2ffd909b --- /dev/null +++ b/recipes/htmldoc/htmldoc-native_1.9.x-r1571.bb @@ -0,0 +1,34 @@ +require htmldoc.inc +PR = "r2" + + +SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/snapshots/htmldoc-${PV}.tar.bz2 \ +file://paths_1.9.x.patch;patch=1" + + +inherit autotools native + +EXTRA_AUTORECONF += "--exclude=autoheader" +EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \ + --with-gui=no" + + +do_compile() { + cd htmldoc && oe_runmake all ; cd ${S} +} + + +do_stage () { + install -d ${STAGING_DATADIR}/htmldoc/fonts + install -m 0644 ${S}/fonts/*.afm ${STAGING_DATADIR}/htmldoc/fonts/ + install -m 0644 ${S}/fonts/*.pfa ${STAGING_DATADIR}/htmldoc/fonts/ + + install -d ${STAGING_DATADIR}/htmldoc/data + install -m 0644 ${S}/data/* ${STAGING_DATADIR}/htmldoc/data/ + + install -d ${STAGING_DIR_HOST}${layout_mandir}/man1 + install -m 0644 ${S}/doc/htmldoc.man ${STAGING_DIR_HOST}${layout_mandir}/man1/ + + install -d ${STAGING_BINDIR} + install -m 0755 ${S}/htmldoc/htmldoc ${STAGING_BINDIR}/ +} diff --git a/recipes/htmldoc/htmldoc.inc b/recipes/htmldoc/htmldoc.inc new file mode 100644 index 0000000000..0a9a5400ce --- /dev/null +++ b/recipes/htmldoc/htmldoc.inc @@ -0,0 +1,6 @@ +DESCRIPTION = "HTMLDOC converts HTML input files into indexed HTML, postscript or PDF files" +HOMEPAGE = "http://www.htmldoc.org/" +SECTION = "console/utils" +PRIORITY = "optional" +LICENSE = "GPL" +DEPENDS = "openssl libpng jpeg zlib" diff --git a/recipes/htmldoc/htmldoc_1.8.27.bb b/recipes/htmldoc/htmldoc_1.8.27.bb new file mode 100644 index 0000000000..d211c76346 --- /dev/null +++ b/recipes/htmldoc/htmldoc_1.8.27.bb @@ -0,0 +1,22 @@ +require htmldoc.inc +DEPENDS += "htmldoc-native" +PR = "r2" + + +SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/${PV}/htmldoc-${PV}-source.tar.bz2 \ +file://paths_1.8.27.patch;patch=1" + + +inherit autotools pkgconfig + +EXTRA_AUTORECONF += "--exclude=autoheader" +EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \ + --with-gui=no" + +FILES_${PN} += "${datadir}/htmldoc/fonts" +FILES_${PN} += "${datadir}/htmldoc/data" + + +do_install() { + oe_runmake 'DESTDIR=${D}' install +} diff --git a/recipes/htmldoc/htmldoc_1.9.x-r1571.bb b/recipes/htmldoc/htmldoc_1.9.x-r1571.bb new file mode 100644 index 0000000000..fe78fb4eb1 --- /dev/null +++ b/recipes/htmldoc/htmldoc_1.9.x-r1571.bb @@ -0,0 +1,22 @@ +require htmldoc.inc +DEPENDS += "htmldoc-native" +PR = "r2" + + +SRC_URI = "http://ftp.rz.tu-bs.de/pub/mirror/ftp.easysw.com/ftp/pub/htmldoc/snapshots/htmldoc-${PV}.tar.bz2 \ +file://paths_1.9.x.patch;patch=1" + + +inherit autotools pkgconfig + +EXTRA_AUTORECONF += "--exclude=autoheader" +EXTRA_OECONF += "--disable-localpng --disable-localjpeg --disable-localzlib \ + --with-gui=no" + +FILES_${PN} += "${datadir}/htmldoc/fonts" +FILES_${PN} += "${datadir}/htmldoc/data" + + +do_install() { + oe_runmake 'DESTDIR=${D}' install +} |