From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8BEEF158094 for ; Fri, 26 Aug 2022 10:03:27 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C3B2EE0931; Fri, 26 Aug 2022 10:03:26 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A7DBDE08A8 for ; Fri, 26 Aug 2022 10:03:26 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D8495341104 for ; Fri, 26 Aug 2022 10:03:25 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3191959F for ; Fri, 26 Aug 2022 10:03:24 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1661508076.01175dfb78fea0d8aebe7a87eb242b1d553905fc.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/libimagequant/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/libimagequant/Manifest media-gfx/libimagequant/libimagequant-2.17.0.ebuild X-VCS-Directories: media-gfx/libimagequant/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 01175dfb78fea0d8aebe7a87eb242b1d553905fc X-VCS-Branch: master Date: Fri, 26 Aug 2022 10:03:24 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: c2afeabe-bd12-4f37-844a-38cf0a37862a X-Archives-Hash: e58d136d1d8e580b76ed68c48dc8012d commit: 01175dfb78fea0d8aebe7a87eb242b1d553905fc Author: Sam James gentoo org> AuthorDate: Fri Aug 26 09:34:23 2022 +0000 Commit: Sam James gentoo 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 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 +}