Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/libimagequant/
Date: Thu, 30 May 2019 19:15:06
Message-Id: 1559243689.29d5754c05aea192ec9636e2b8874596e98a98ea.whissi@gentoo
1 commit: 29d5754c05aea192ec9636e2b8874596e98a98ea
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Thu May 30 19:13:20 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Thu May 30 19:14:49 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=29d5754c
7
8 media-gfx/libimagequant: bump to v2.12.3
9
10 Closes: https://bugs.gentoo.org/686612
11 Closes: https://bugs.gentoo.org/685078
12 Package-Manager: Portage-2.3.67, Repoman-2.3.13
13 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
14
15 media-gfx/libimagequant/Manifest | 1 +
16 .../libimagequant/libimagequant-2.12.3.ebuild | 55 ++++++++++++++++++++++
17 2 files changed, 56 insertions(+)
18
19 diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest
20 index 539afb1f3c9..e540bad6592 100644
21 --- a/media-gfx/libimagequant/Manifest
22 +++ b/media-gfx/libimagequant/Manifest
23 @@ -1,2 +1,3 @@
24 DIST libimagequant-2.11.7.tar.gz 74311 BLAKE2B 204fbe794014c11d767991a03e729b234978fb1edb1fdffcb7d332461ccaa1a536a1e9dbc7b44a8838db61cc76fdbc1eb75087b480f4fc42bf791fea913639a2 SHA512 8816811c06eec27232e39725c581e382b7076f3bc23b017810de0e92236e6e4eb480def7b50347c9b75f7d792245669398c39a17359eb81077badf12e6f0a172
25 DIST libimagequant-2.12.2.tar.gz 75611 BLAKE2B 23f5d3666fd21696d4f4dab9db3669642a9e3f6ca971804b914e845018df538136c3db900419ac35230be9fd487b48e0ab672b653e2ee82387c19569b49d6cfc SHA512 7e7bfcffd163d8b73a46d523dc441e4a4726f5dde804f306f13900f74afae6f6e7cf780bf157b5823a71c790bcdd0e9c9c34cf43f84a21289e470fc78835d8d8
26 +DIST libimagequant-2.12.3.tar.gz 75866 BLAKE2B 857a0e3f0187251e37e0c7f4f5f5cbf49266e4eb9f684118705778d9469330cf95780ea11b83d19e28251f047a7e9b8e7ac32ac4d9554cb5d9e1b3230d39e796 SHA512 4818b00b6f154407f3e402d56f4891c2d7594c8056fada0402d7fa0024ae50127340dd8295da5f5dca13fe1829670a3fa8793aa528f3e74a2294c9a7e37b7257
27
28 diff --git a/media-gfx/libimagequant/libimagequant-2.12.3.ebuild b/media-gfx/libimagequant/libimagequant-2.12.3.ebuild
29 new file mode 100644
30 index 00000000000..a68ab9c18f0
31 --- /dev/null
32 +++ b/media-gfx/libimagequant/libimagequant-2.12.3.ebuild
33 @@ -0,0 +1,55 @@
34 +# Copyright 1999-2019 Gentoo Authors
35 +# Distributed under the terms of the GNU General Public License v2
36 +
37 +EAPI="7"
38 +
39 +inherit toolchain-funcs
40 +
41 +DESCRIPTION="Palette quantization library that powers pngquant and other PNG optimizers"
42 +HOMEPAGE="https://pngquant.org/lib/"
43 +SRC_URI="https://github.com/ImageOptim/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
44 +
45 +LICENSE="GPL-3"
46 +SLOT="0/0"
47 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux"
48 +IUSE="cpu_flags_x86_sse2 debug openmp static-libs"
49 +
50 +DEPEND=""
51 +RDEPEND="${DEPEND}"
52 +
53 +PATCHES=(
54 + "${FILESDIR}"/libimagequant-2.12.2-respect-CFLAGS.patch
55 + "${FILESDIR}"/libimagequant-2.12.2-fix-pkgconfig.patch
56 +)
57 +
58 +pkg_pretend() {
59 + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
60 +}
61 +
62 +src_configure() {
63 + tc-export AR CC
64 + # Hand rolled configure script, so not all flags are supported.
65 + ./configure \
66 + --prefix="${EPREFIX%/}/usr" \
67 + --libdir="${EPREFIX%/}/usr/$(get_libdir)" \
68 + $(use debug && echo --enable-debug) \
69 + $(use_enable cpu_flags_x86_sse2 sse) \
70 + $(use_with openmp) \
71 + CFLAGS="${CFLAGS} ${CPPFLAGS}" \
72 + LDFLAGS="${LDFLAGS}"
73 +}
74 +
75 +src_compile() {
76 + emake shared imagequant.pc || die "make failed"
77 + use static-libs && (emake static || die "make failed")
78 +}
79 +
80 +src_install() {
81 + dolib.so libimagequant.so
82 + dolib.so libimagequant.so.*
83 + use static-libs && dolib.a libimagequant.a
84 + doheader libimagequant.h
85 + einstalldocs
86 + insinto /usr/$(get_libdir)/pkgconfig
87 + doins imagequant.pc
88 +}