gentoo-ebuilds/app-text/htmldoc/htmldoc-1.9.16-r1.ebuild
Michał Górny 6a3644bf2f
*/*: Add := to virtual/zlib deps, part 1
Done via:

```
git grep -l virtual/zlib$ | xargs sed -i -e 's@virtual/zlib$@&:=@'
```

Signed-off-by: Michał Górny <mgorny@gentoo.org>
2025-11-04 10:36:27 +01:00

52 lines
1.2 KiB
Bash

# Copyright 1999-2025 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=
virtual/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
}