From: Michael Olbrich <m.olbrich@pengutronix.de>
To: Roland Hieber <rhi@pengutronix.de>, ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 5/8] htmldoc: new package: HTML-to-PDF/PostScript/EPUB converter
Date: Wed, 17 May 2023 14:29:47 +0200 [thread overview]
Message-ID: <ZGTIu6jeG67gqxbf@pengutronix.de> (raw)
In-Reply-To: <20230515072054.1997217-5-rhi@pengutronix.de>
On Mon, May 15, 2023 at 09:20:51AM +0200, Roland Hieber wrote:
> Signed-off-by: Roland Hieber <rhi@pengutronix.de>
> ---
> ...-build-install-docs-or-desktop-files.patch | 28 ++++++++
> patches/htmldoc-1.9.16/series | 4 ++
> rules/host-htmldoc.in | 6 ++
> rules/host-htmldoc.make | 29 ++++++++
> rules/htmldoc.in | 10 +++
> rules/htmldoc.make | 69 +++++++++++++++++++
> 6 files changed, 146 insertions(+)
> create mode 100644 patches/htmldoc-1.9.16/0001-Makefile-don-t-build-install-docs-or-desktop-files.patch
> create mode 100644 patches/htmldoc-1.9.16/series
> create mode 100644 rules/host-htmldoc.in
> create mode 100644 rules/host-htmldoc.make
> create mode 100644 rules/htmldoc.in
> create mode 100644 rules/htmldoc.make
>
> diff --git a/patches/htmldoc-1.9.16/0001-Makefile-don-t-build-install-docs-or-desktop-files.patch b/patches/htmldoc-1.9.16/0001-Makefile-don-t-build-install-docs-or-desktop-files.patch
> new file mode 100644
> index 000000000000..940a09ceeb1a
> --- /dev/null
> +++ b/patches/htmldoc-1.9.16/0001-Makefile-don-t-build-install-docs-or-desktop-files.patch
> @@ -0,0 +1,28 @@
> +From: Roland Hieber <rhi@pengutronix.de>
> +Date: Sun, 14 May 2023 23:57:58 +0200
> +Subject: [PATCH] Makefile: don't build/install docs or desktop files
> +
> +htmldoc is configured without GUI, so no desktop data is needed.
> +Furthermore it will try to call the built binary to build the docs,
> +which will not work in cross builds.
> +
> +Forwarded: not-needed
> +---
> + Makefile.in | 4 ++--
> + 1 file changed, 2 insertions(+), 2 deletions(-)
> +
> +diff --git a/Makefile.in b/Makefile.in
> +index d846bf7621e5..31211a244b62 100644
> +--- a/Makefile.in
> ++++ b/Makefile.in
> +@@ -19,8 +19,8 @@ include Makedefs
> + # Subdirectories...
> + #
> +
> +-DIRS = htmldoc doc
> +-INSTALLDIRS = fonts data desktop doc htmldoc
> ++DIRS = htmldoc
> ++INSTALLDIRS = fonts data htmldoc
> +
> +
> + #
> diff --git a/patches/htmldoc-1.9.16/series b/patches/htmldoc-1.9.16/series
> new file mode 100644
> index 000000000000..e9d04563df1d
> --- /dev/null
> +++ b/patches/htmldoc-1.9.16/series
> @@ -0,0 +1,4 @@
> +# generated by git-ptx-patches
> +#tag:base --start-number 1
> +0001-Makefile-don-t-build-install-docs-or-desktop-files.patch
> +# fdcadd964bbc6253264d4d6326477667 - git-ptx-patches magic
> diff --git a/rules/host-htmldoc.in b/rules/host-htmldoc.in
> new file mode 100644
> index 000000000000..d7cc6c0e0eed
> --- /dev/null
> +++ b/rules/host-htmldoc.in
> @@ -0,0 +1,6 @@
> +## SECTION=hosttools_noprompt
> +
> +config HOST_HTMLDOC
> + tristate
> + default y if ALLYES
> + select HOST_LIBJPEG
> diff --git a/rules/host-htmldoc.make b/rules/host-htmldoc.make
> new file mode 100644
> index 000000000000..47febcdcabb1
> --- /dev/null
> +++ b/rules/host-htmldoc.make
> @@ -0,0 +1,29 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +HOST_PACKAGES-$(PTXCONF_HOST_HTMLDOC) += host-htmldoc
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +HOST_HTMLDOC_CONF_TOOL := autoconf
> +HOST_HTMLDOC_CONF_OPT := \
> + $(HOST_AUTOCONF) \
> + --disable-ssl \
> + --disable-gnutls \
> + --disable-cdsassl \
No --disable-maintainer here?
> + --without-gui
> +
> +# vim: syntax=make
> diff --git a/rules/htmldoc.in b/rules/htmldoc.in
> new file mode 100644
> index 000000000000..e53178a42bc0
> --- /dev/null
> +++ b/rules/htmldoc.in
> @@ -0,0 +1,10 @@
> +## SECTION=shell_and_console
> +
> +config HTMLDOC
> + tristate
> + select LIBJPEG
> + prompt "htmldoc"
> + help
> + HTMLDOC is a program that reads HTML and Markdown source files
> + and generates corresponding EPUB, HTML, PostScript, or PDF
> + files with an optional table of contents.
> diff --git a/rules/htmldoc.make b/rules/htmldoc.make
> new file mode 100644
> index 000000000000..25478fb78f03
> --- /dev/null
> +++ b/rules/htmldoc.make
> @@ -0,0 +1,69 @@
> +# -*-makefile-*-
> +#
> +# Copyright (C) 2023 by Roland Hieber <rhi@pengutronix.de>
> +#
> +# For further information about the PTXdist project and license conditions
> +# see the README file.
> +#
> +
> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_HTMLDOC) += htmldoc
> +
> +#
> +# Paths and names
> +#
> +HTMLDOC_VERSION := 1.9.16
> +HTMLDOC_MD5 := 9d82dd05321ca44594d9d1841868b2d5
> +HTMLDOC := htmldoc-$(HTMLDOC_VERSION)
> +HTMLDOC_SUFFIX := tar.gz
> +HTMLDOC_URL := https://github.com/michaelrsweet/htmldoc/releases/download/v$(HTMLDOC_VERSION)/$(HTMLDOC)-source.$(HTMLDOC_SUFFIX)
> +HTMLDOC_SOURCE := $(SRCDIR)/$(HTMLDOC).$(HTMLDOC_SUFFIX)
> +HTMLDOC_DIR := $(BUILDDIR)/$(HTMLDOC)
> +HTMLDOC_LICENSE := GPL-2.0-only
> +HTMLDOC_LICENSE_FILES := \
> + file://README.md;startline=123;endline=124;md5=a2aaa1a54649f92a3f27ab9953505863 \
> + file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +HTMLDOC_CONF_TOOL := autoconf
> +HTMLDOC_CONF_OPT := \
> + $(CROSS_AUTOCONF_USR) \
> + --enable-debug \
> + $(GLOBAL_LARGE_FILE_OPTION) \
> + --disable-ssl \
> + --disable-gnutls \
> + --disable-cdsassl \
> + --disable-maintainer \
> + --enable-sanitizer \
> + --without-gui
I'm pretty sure sanitizers should be disabled by default. And probably
debugging as well.
Michael
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/htmldoc.targetinstall:
> + @$(call targetinfo)
> +
> + @$(call install_init, htmldoc)
> + @$(call install_fixup, htmldoc,PRIORITY,optional)
> + @$(call install_fixup, htmldoc,SECTION,base)
> + @$(call install_fixup, htmldoc,AUTHOR,"Roland Hieber <rhi@pengutronix.de>")
> + @$(call install_fixup, htmldoc,DESCRIPTION,missing)
> +
> + @$(call install_copy, htmldoc, 0, 0, 0755, -, /usr/bin/htmldoc)
> + @$(call install_tree, htmldoc, 0, 0, -, /usr/share/htmldoc/fonts)
> + @$(call install_tree, htmldoc, 0, 0, -, /usr/share/htmldoc/data)
> +
> + @$(call install_finish, htmldoc)
> +
> + @$(call touch)
> +
> +# vim: syntax=make
> --
> 2.39.2
>
>
>
--
Pengutronix e.K. | |
Steuerwalder Str. 21 | http://www.pengutronix.de/ |
31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
next prev parent reply other threads:[~2023-05-17 12:29 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-05-15 7:20 [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 2/8] libbson: new package: routines related to BSON documents Roland Hieber
2023-05-15 7:26 ` [ptxdist] [PATCH] fixup! " Roland Hieber
2023-05-17 12:38 ` [ptxdist] [PATCH 2/8] " Michael Olbrich
2023-05-15 7:20 ` [ptxdist] [PATCH 3/8] libconfig: correct license and pin down license files Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 4/8] libevent: amend license and pin down license file Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 5/8] htmldoc: new package: HTML-to-PDF/PostScript/EPUB converter Roland Hieber
2023-05-17 12:29 ` Michael Olbrich [this message]
2023-05-15 7:20 ` [ptxdist] [PATCH 6/8] host-canfestival: add host package Roland Hieber
2023-05-17 12:36 ` Michael Olbrich
2023-05-24 22:04 ` Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 7/8] host-libconfig: " Roland Hieber
2023-05-15 7:20 ` [ptxdist] [PATCH 8/8] host-libevent: " Roland Hieber
2023-05-17 12:27 ` [ptxdist] [PATCH 1/8] cpputest: new package: C++ unit test framework Michael Olbrich
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZGTIu6jeG67gqxbf@pengutronix.de \
--to=m.olbrich@pengutronix.de \
--cc=ptxdist@pengutronix.de \
--cc=rhi@pengutronix.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox