diff --git a/app-text/htmldoc/Manifest b/app-text/htmldoc/Manifest index aec7812896838..956dfc57ed152 100644 --- a/app-text/htmldoc/Manifest +++ b/app-text/htmldoc/Manifest @@ -1 +1,3 @@ DIST htmldoc-1.9.16-source.tar.gz 3389563 BLAKE2B 1c83e37313fb0a1196d4db3ddca47d4a418ab7aeb8f910c9a27178312a1b0239beddaf81f322b24dcf75dff7e838278fcfa0eed17b5aa493790de2393bcddebf SHA512 c901ed259ef8c0520ed03e314149e7a2fc3b5bffa9c8e9c6c3b023a8c9de1e37b7fa72d224fa7d072f3a5d4b379635d7cfaa016df672da296be8395b49fa935b +DIST htmldoc-1.9.24-source.tar.gz 3287797 BLAKE2B 071186d421cbbc41722491e7788eb28e5df5688daa27707479ff3f688dcf12396a04fb1ba32dfeced91fa08ce029f495f952296711ee870695e02779a3436f96 SHA512 4f25fef0ae72eaa871cdf69e56614e9a3505eec06ddfde5883a594c0ac37bd9cee003327d57068cdae438e0a851a4bc7420bfd7df9b2a75cdd0693ccafda4615 +DIST htmldoc-1.9.24-source.tar.gz.sig 566 BLAKE2B 0ec0696f20546903a11b7a096fec8aedc3ccc5af9971eb81a9575d3ea4c68ff524fd456f4e2d5b143358673a3cc58c5f5e7d67486a070e2a10fb6542e1f4abf3 SHA512 92af7ec88e2c3ba450bf7557c492afb7e46716b7ff9b754e8398739e13ac58d947a749f8d2f2f6d8d0d5b1a91f05f2944c4ce993f46478dfda55cf13442d1d2f diff --git a/app-text/htmldoc/htmldoc-1.9.24.ebuild b/app-text/htmldoc/htmldoc-1.9.24.ebuild new file mode 100644 index 0000000000000..29655ba3b1b69 --- /dev/null +++ b/app-text/htmldoc/htmldoc-1.9.24.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/michaelrsweet.asc +inherit autotools flag-o-matic toolchain-funcs verify-sig xdg + +DESCRIPTION="Convert HTML pages into a PDF document" +HOMEPAGE="https://www.msweet.org/htmldoc/" +SRC_URI=" + https://github.com/michaelrsweet/${PN}/releases/download/v${PV}/${P}-source.tar.gz + verify-sig? ( https://github.com/michaelrsweet/${PN}/releases/download/v${PV}/${P}-source.tar.gz.sig ) +" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="fltk http" + +BDEPEND=" + virtual/pkgconfig + verify-sig? ( sec-keys/openpgp-keys-michaelrsweet ) +" +DEPEND=" + http? ( >=net-print/cups-2.2 ) + media-libs/libjpeg-turbo:= + >=media-libs/libpng-1.6:0= + virtual/zlib:= + fltk? ( >=x11-libs/fltk-1.3:1= ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + eautoreconf + + # Build verbosely + sed -i -e '/.SILENT:/d' Makedefs.in || die + + # Respect CFLAGS + sed -i -e 's:-Os -g::' configure.ac configure || die + + # We already default to _F_S in Gentoo + sed -i -e 's: -D_FORTIFY_SOURCE=3::' configure.ac configure || die + + # Fix the documentation path in a few places. Some Makefiles aren't + # autotoolized =( + for file in configure doc/Makefile doc/htmldoc.man; do + sed -i "${file}" \ + -e "s:/doc/htmldoc:/doc/${PF}/html:g" \ + || die "failed to fix documentation path in ${file}" + done +} + +src_configure() { + # ODR (link_t) + filter-lto + + local myeconfargs=( + $(use_with http) + $(use_with fltk gui) + ) + + CC="$(tc-getCC)" CXX="$(tc-getCXX)" econf "${myeconfargs[@]}" +} + +src_install() { + emake STRIPPROG="true" DSTROOT="${ED}" install +} diff --git a/app-text/htmldoc/metadata.xml b/app-text/htmldoc/metadata.xml index 8eab97c666e9f..919495253ffe7 100644 --- a/app-text/htmldoc/metadata.xml +++ b/app-text/htmldoc/metadata.xml @@ -2,6 +2,12 @@ + + + Use net-print/cups to support CGI mode, HTTP/HTTPS, + and "data:" URI support. + + michaelrsweet/htmldoc