diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-11-16 18:55:17 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-11-16 18:55:17 +0000 |
commit | 1e3939094253168dfdada63e645d674cad69260e (patch) | |
tree | ac694a92b15d94d2e7544b8591123b7b04cf11e9 /app-text/htmldoc/htmldoc-1.9.16.ebuild | |
parent | c98eb096c37a4252dc388920f0b0f8b2441c9b5d (diff) |
gentoo auto-resync : 16:11:2022 - 18:55:17
Diffstat (limited to 'app-text/htmldoc/htmldoc-1.9.16.ebuild')
-rw-r--r-- | app-text/htmldoc/htmldoc-1.9.16.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-text/htmldoc/htmldoc-1.9.16.ebuild b/app-text/htmldoc/htmldoc-1.9.16.ebuild new file mode 100644 index 000000000000..01ef5f97775f --- /dev/null +++ b/app-text/htmldoc/htmldoc-1.9.16.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit autotools toolchain-funcs 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" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="fltk ssl" + +BDEPEND="virtual/pkgconfig" +DEPEND=" + media-libs/libjpeg-turbo:= + >=media-libs/libpng-1.4:0= + sys-libs/zlib + ssl? ( net-libs/gnutls:= ) + fltk? ( x11-libs/fltk:1 ) +" +RDEPEND="${DEPEND}" + +src_prepare() { + default + eautoreconf + + # 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() { + local myeconfargs=( + $(use_with fltk gui) + $(use_enable ssl) + $(use_enable ssl gnutls) + ) + + CC="$(tc-getCC)" CXX="$(tc-getCXX)" econf "${myeconfargs[@]}" +} + +src_install() { + emake STRIPPROG="true" DSTROOT="${ED}" install +} |