Gentoo Archives: gentoo-commits

From: "Andreas K. Hüttel" <dilfridge@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/pngquant/
Date: Sat, 05 Mar 2022 23:08:35
Message-Id: 1646521694.08a1c246ac9f9a1a6e4b882a2306bee7f4a56c45.dilfridge@gentoo
1 commit: 08a1c246ac9f9a1a6e4b882a2306bee7f4a56c45
2 Author: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
3 AuthorDate: Sat Mar 5 22:46:15 2022 +0000
4 Commit: Andreas K. Hüttel <dilfridge <AT> gentoo <DOT> org>
5 CommitDate: Sat Mar 5 23:08:14 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=08a1c246
7
8 media-gfx/pngquant: Version bump 2.17.0
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Andreas K. Hüttel <dilfridge <AT> gentoo.org>
12
13 media-gfx/pngquant/Manifest | 1 +
14 media-gfx/pngquant/pngquant-2.17.0.ebuild | 58 +++++++++++++++++++++++++++++++
15 2 files changed, 59 insertions(+)
16
17 diff --git a/media-gfx/pngquant/Manifest b/media-gfx/pngquant/Manifest
18 index 35d6859fa55b..3cf0ca86ad69 100644
19 --- a/media-gfx/pngquant/Manifest
20 +++ b/media-gfx/pngquant/Manifest
21 @@ -1 +1,2 @@
22 DIST pngquant-2.12.6.tar.gz 69074 BLAKE2B 3573d54d94b0085de9ffd4dd34a8fd46c49a1e02d0a6419271c17bc7ac7ab6c05d811336a3a8a8ab21d4dea774c93ee1baae141b42c255838fb1eef9cdb1a871 SHA512 8ffff346df67edf1000c71b6d26371826bc4d236b3f57ef1ec73b3b61668cff9c3ca7d541417c39bc6c89e00176c91eb28867b7a91945ac84292ca0ac54984e9
23 +DIST pngquant-2.17.0.tar.gz 71209 BLAKE2B 0f625b6c27bc621fd5e1d9b4c5d3cbb7eda960a7afa8e6c6813c5d74e6f48055572dfacfcc93c694dc2d3fd8a107064c2a24c0845fc5339c0289b8527056d39a SHA512 7054cb6bdc547a6e00be1ab2363e2fa5367598593359ef23a91f3af8ff210b281e10f8721bc74d86f208f45336cd61292946c17dc5f26d292998eba95978dc0b
24
25 diff --git a/media-gfx/pngquant/pngquant-2.17.0.ebuild b/media-gfx/pngquant/pngquant-2.17.0.ebuild
26 new file mode 100644
27 index 000000000000..dff2d725f4fd
28 --- /dev/null
29 +++ b/media-gfx/pngquant/pngquant-2.17.0.ebuild
30 @@ -0,0 +1,58 @@
31 +# Copyright 1999-2022 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI="7"
35 +
36 +inherit toolchain-funcs
37 +
38 +DESCRIPTION="Command-line utility and library for lossy compression of PNG images"
39 +HOMEPAGE="https://pngquant.org/ https://github.com/kornelski/pngquant"
40 +SRC_URI="https://github.com/kornelski/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-3 HPND rwpng"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86"
45 +
46 +IUSE="cpu_flags_x86_sse2 debug lcms openmp test"
47 +REQUIRED_USE="test? ( lcms )"
48 +
49 +RDEPEND="
50 + media-libs/libpng:0=
51 + media-gfx/libimagequant:=
52 + sys-libs/zlib:=
53 + lcms? ( media-libs/lcms:2 )
54 +"
55 +DEPEND="${RDEPEND}
56 + virtual/pkgconfig
57 +"
58 +
59 +RESTRICT="!test? ( test )"
60 +
61 +PATCHES=( "${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch )
62 +
63 +src_prepare() {
64 + default
65 +
66 + # avoid silent fallback to bundled lib
67 + rm -rv lib || die
68 +}
69 +
70 +src_configure() {
71 + tc-export AR CC
72 + # Hand rolled configure script, so not all flags are supported.
73 + ./configure \
74 + --prefix="${EPREFIX}/usr" \
75 + --with-libimagequant \
76 + $(use debug && echo --enable-debug) \
77 + $(use_enable cpu_flags_x86_sse2 sse) \
78 + $(use openmp && tc-has-openmp && echo --with-openmp) \
79 + $(use_with lcms lcms2) \
80 + CFLAGS="${CFLAGS} ${CPPFLAGS}" \
81 + LDFLAGS="${LDFLAGS}"
82 +}
83 +
84 +src_install() {
85 + dobin ${PN}
86 + doman ${PN}.1
87 + dodoc CHANGELOG README.md
88 +}