public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/libimagequant/
Date: Fri, 26 Aug 2022 10:03:24 +0000 (UTC)	[thread overview]
Message-ID: <1661508076.01175dfb78fea0d8aebe7a87eb242b1d553905fc.sam@gentoo> (raw)

commit:     01175dfb78fea0d8aebe7a87eb242b1d553905fc
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Fri Aug 26 09:34:23 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Fri Aug 26 10:01:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=01175dfb

media-gfx/libimagequant: add 2.17.0

Signed-off-by: Sam James <sam <AT> gentoo.org>

 media-gfx/libimagequant/Manifest                   |  1 +
 .../libimagequant/libimagequant-2.17.0.ebuild      | 56 ++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest
index d949e9cc9aba..439cf313b46a 100644
--- a/media-gfx/libimagequant/Manifest
+++ b/media-gfx/libimagequant/Manifest
@@ -1 +1,2 @@
 DIST libimagequant-2.15.1.tar.gz 98668 BLAKE2B cfa223f0ce8fdaac5d55b951507c040c064759756a5595719d02c0ec6983a70b08ad9d5df0176adb03269a9a1b7d39e9f0f7da884df214bd7994f4647e08a9c1 SHA512 56bc8b73859908774ce0a218cfbec81bfb8432c02ddce83880990b5f5ac89ac253ae64ecde43a9664aab3ac69d309bb9ef8ba2201be6c93aacb731b3214ff4b8
+DIST libimagequant-2.17.0.tar.gz 99343 BLAKE2B 3ffbd60fe438c1b9e604fb74e839cad2aab5fd771f9250f7594a2d6cbc1e1a8a68d46c726298a66ba15a3e40254a36067dd18023ef22c132bd827c319161a6fe SHA512 12b111f8293c0e37bd75481457b6c96b547a1e3bc1d33bc7a6bbbde6ada284d835c7f5958ef41af7a5a8d3e6fb2d1aa2f641b7d6f2fe2782202f3c760792f394

diff --git a/media-gfx/libimagequant/libimagequant-2.17.0.ebuild b/media-gfx/libimagequant/libimagequant-2.17.0.ebuild
new file mode 100644
index 000000000000..ee030f795c0b
--- /dev/null
+++ b/media-gfx/libimagequant/libimagequant-2.17.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit toolchain-funcs
+
+DESCRIPTION="Palette quantization library that powers pngquant and other PNG optimizers"
+HOMEPAGE="https://pngquant.org/lib/"
+SRC_URI="https://github.com/ImageOptim/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0/0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux"
+IUSE="cpu_flags_x86_sse2 openmp"
+
+PATCHES=(
+	"${FILESDIR}"/${PN}-2.12.2-respect-CFLAGS.patch
+	"${FILESDIR}"/${PN}-2.15.1-fix-pkgconfig.patch
+)
+
+pkg_pretend() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+pkg_setup() {
+	[[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp
+}
+
+src_prepare() {
+	default
+
+	# Avoid always building static library
+	# (Fixes side-effect of compiling in src_install too)
+	sed -i \
+		-e '/install.*STATICLIB/d' \
+		-e 's/all: static shared/all: shared/' \
+		Makefile || die
+}
+
+src_configure() {
+	tc-export AR CC
+
+	# Hand rolled configure script, so not all flags are supported.
+	./configure \
+		--prefix="${EPREFIX}/usr" \
+		--libdir="${EPREFIX}/usr/$(get_libdir)" \
+		$(use_enable cpu_flags_x86_sse2 sse) \
+		$(use_with openmp) \
+		CFLAGS="${CFLAGS} ${CPPFLAGS}" \
+		LDFLAGS="${LDFLAGS}" || die
+}
+
+src_compile() {
+	emake shared imagequant.pc
+}


             reply	other threads:[~2022-08-26 10:03 UTC|newest]

Thread overview: 120+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-08-26 10:03 Sam James [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-09-24 11:52 [gentoo-commits] repo/gentoo:master commit in: media-gfx/libimagequant/ Sam James
2024-09-21  5:41 Sam James
2024-04-17  5:37 Arthur Zamarin
2024-03-22 13:08 Arthur Zamarin
2024-03-22 13:06 Arthur Zamarin
2024-03-22 12:57 Arthur Zamarin
2024-03-22 12:55 Arthur Zamarin
2024-03-22 12:54 Arthur Zamarin
2024-03-22 12:53 Arthur Zamarin
2024-03-22 12:46 Arthur Zamarin
2024-03-22 12:46 Arthur Zamarin
2024-03-22 12:46 Arthur Zamarin
2024-03-22 12:46 Arthur Zamarin
2024-03-22 12:46 Arthur Zamarin
2024-03-22 12:45 Arthur Zamarin
2024-03-22 12:45 Arthur Zamarin
2024-03-22 12:44 Arthur Zamarin
2024-03-22 12:44 Arthur Zamarin
2023-10-30  8:38 Sam James
2023-09-25  4:14 Sam James
2023-09-25  4:05 Sam James
2023-09-25  4:05 Sam James
2023-07-24 20:04 WANG Xuerui
2023-06-03 17:40 Arthur Zamarin
2023-06-03 17:02 Arthur Zamarin
2023-06-03 16:26 Arthur Zamarin
2023-06-03 16:06 Arthur Zamarin
2023-06-03 16:06 Arthur Zamarin
2023-06-03 15:25 Arthur Zamarin
2023-05-03  7:49 Sam James
2023-05-03  7:49 Sam James
2023-03-17 17:32 Sam James
2023-03-17 17:29 Sam James
2023-03-17 16:58 Arthur Zamarin
2023-03-17 16:41 Arthur Zamarin
2023-03-17 16:32 Arthur Zamarin
2023-03-17 16:17 Arthur Zamarin
2023-02-06  6:36 Joonas Niilola
2023-02-06  5:21 Sam James
2023-02-06  5:21 Sam James
2023-01-14 10:00 Arthur Zamarin
2023-01-13 20:19 Sam James
2023-01-13 20:18 Sam James
2023-01-13 20:18 Sam James
2023-01-13 20:13 Sam James
2023-01-13 20:11 Arthur Zamarin
2023-01-13 20:11 Arthur Zamarin
2023-01-13 19:38 Arthur Zamarin
2022-12-25 21:24 Sam James
2022-12-25 21:24 Sam James
2022-12-25 21:24 Sam James
2022-12-25 20:16 Arthur Zamarin
2022-12-25 20:16 Arthur Zamarin
2022-11-22 18:46 Arthur Zamarin
2022-09-06 21:41 Sam James
2022-08-26 16:01 Arthur Zamarin
2022-08-26 13:44 Ionen Wolkens
2022-08-26 13:20 Arthur Zamarin
2022-08-26 13:20 Arthur Zamarin
2022-08-26 13:20 Arthur Zamarin
2022-05-16  8:12 David Seifert
2022-05-13 12:19 WANG Xuerui
2022-03-05 23:08 Andreas K. Hüttel
2022-01-06 22:59 James Le Cuirot
2021-09-23 20:13 Sam James
2021-06-25  1:33 Yixun Lan
2021-06-13  6:30 Agostino Sarubbo
2021-06-13  6:04 Sam James
2021-06-13  6:04 Sam James
2021-06-13  3:45 Sam James
2021-06-13  3:45 Sam James
2021-06-12 17:13 Sam James
2021-06-12 17:13 Sam James
2021-05-14 21:29 Sam James
2021-05-10  6:54 Sam James
2021-05-04 19:13 Sam James
2021-05-01 14:06 Sam James
2021-04-30 23:39 Sam James
2021-04-30 23:37 Sam James
2021-04-30 23:29 Sam James
2021-04-30 20:28 Sergei Trofimovich
2021-04-30 15:23 Agostino Sarubbo
2021-02-26 21:58 Sam James
2021-02-12 15:10 Sam James
2020-08-09 16:56 Sergei Trofimovich
2019-12-17  7:27 Sergei Trofimovich
2019-10-16  4:33 Matt Turner
2019-09-13 18:23 Mikle Kolyada
2019-09-08 18:30 Sergei Trofimovich
2019-09-08 18:26 Sergei Trofimovich
2019-09-07  2:03 Aaron Bauman
2019-09-06  7:18 Agostino Sarubbo
2019-09-06  7:17 Agostino Sarubbo
2019-06-05  7:12 Agostino Sarubbo
2019-06-04 13:17 Agostino Sarubbo
2019-05-30 19:15 Thomas Deutschmann
2019-05-02 21:24 Mikle Kolyada
2019-04-17  0:44 Aaron Bauman
2019-04-01 19:58 Thomas Deutschmann
2019-03-20 11:23 Mikle Kolyada
2019-03-16 21:39 Agostino Sarubbo
2019-03-10 22:20 Jeroen Roovers
2019-01-02  3:30 Matt Turner
2018-12-29 12:05 Sergei Trofimovich
2018-12-29 12:05 Sergei Trofimovich
2018-12-09  9:58 Mikle Kolyada
2018-10-07 22:04 Matt Turner
2018-10-07 22:04 Matt Turner
2018-10-05 11:45 Virgil Dupras
2018-10-05  4:10 Thomas Deutschmann
2018-08-25 18:15 Sergei Trofimovich
2018-08-08 21:14 Mikle Kolyada
2018-08-05 11:33 Sergei Trofimovich
2018-07-16  1:22 Mikle Kolyada
2018-03-31 19:25 Mart Raudsepp
2018-03-31  5:02 Tim Harder
2018-03-31  5:02 Tim Harder
2017-11-29  0:09 Thomas Deutschmann
2017-07-11 20:33 Sebastien Fabbro

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1661508076.01175dfb78fea0d8aebe7a87eb242b1d553905fc.sam@gentoo \
    --to=sam@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox