diff options
| author | Ionen Wolkens <ionen@gentoo.org> | 2024-12-26 01:34:56 -0500 |
|---|---|---|
| committer | Ionen Wolkens <ionen@gentoo.org> | 2024-12-26 12:48:29 -0500 |
| commit | 2a1eb2ed7a492be2478a50ba318d9483b1ae2e45 (patch) | |
| tree | 9224fd49c278bb9602da2c9ba3d3f698f5ba1958 /app-text/htmldoc/htmldoc-1.9.16-r1.ebuild | |
| parent | fb67aa178817cbe706f36348f1e1709bbc851c28 (diff) | |
| download | gentoo-2a1eb2ed7a492be2478a50ba318d9483b1ae2e45.tar.gz gentoo-2a1eb2ed7a492be2478a50ba318d9483b1ae2e45.tar.bz2 gentoo-2a1eb2ed7a492be2478a50ba318d9483b1ae2e45.zip | |
app-text/htmldoc: add binding := to fltk, soname changed
Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
Diffstat (limited to 'app-text/htmldoc/htmldoc-1.9.16-r1.ebuild')
| -rw-r--r-- | app-text/htmldoc/htmldoc-1.9.16-r1.ebuild | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/app-text/htmldoc/htmldoc-1.9.16-r1.ebuild b/app-text/htmldoc/htmldoc-1.9.16-r1.ebuild new file mode 100644 index 000000000000..b8b0c0252702 --- /dev/null +++ b/app-text/htmldoc/htmldoc-1.9.16-r1.ebuild @@ -0,0 +1,52 @@ +# Copyright 1999-2024 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 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 +} |
