gentoo-ebuilds/media-gfx/imageworsener/imageworsener-1.3.5.ebuild
Michał Górny 7215a6a587
*/*: Add := to virtual/zlib deps
Done via:

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

with some manual reverts.

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

50 lines
1.1 KiB
Bash

# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
MY_P=${PN}-src-${PV}
MY_PN=imagew
DESCRIPTION="Utility for image scaling and processing"
HOMEPAGE="https://entropymine.com/imageworsener/"
SRC_URI="https://entropymine.com/${PN}/${P}.tar.gz"
LICENSE="MIT"
SLOT="0/3" # because of libimageworsener.so.3.*.*
KEYWORDS="amd64 x86"
IUSE="jpeg png static-libs test webp zlib"
DEPEND="png? ( media-libs/libpng:0 )
jpeg? ( media-libs/libjpeg-turbo )
webp? ( >=media-libs/libwebp-0.1.3 )
zlib? ( virtual/zlib:= )"
RDEPEND="${DEPEND}"
REQUIRED_USE="test? ( jpeg png webp zlib )"
RESTRICT="test"
PATCHES=( "${FILESDIR}/${PN}-1.3.5-runtest-exit-code.patch" )
src_configure() {
local switch=''
use test && switch=test
econf \
$(use_enable static-libs static) \
$(use_with ${switch} jpeg) \
$(use_with ${switch} png) \
$(use_with ${switch} webp) \
$(use_with ${switch} zlib)
}
src_install() {
default
dodoc {changelog,readme,technical}.txt
find "${D}" -name '*.la' -delete || die
}
src_test() {
cd "${S}"/tests || die
./runtest "${S}"/${MY_PN} || die
}