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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0653C13835C for ; Mon, 10 May 2021 06:54:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 45D5CE07FE; Mon, 10 May 2021 06:54:53 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 2C52EE07FE for ; Mon, 10 May 2021 06:54:53 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48299340F62 for ; Mon, 10 May 2021 06:54:52 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DC4DB75B for ; Mon, 10 May 2021 06:54:50 +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: <1620629661.ce47eb8190deb084d67f7218de9ae9194eab48b8.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.15.0.ebuild X-VCS-Directories: media-gfx/libimagequant/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: ce47eb8190deb084d67f7218de9ae9194eab48b8 X-VCS-Branch: master Date: Mon, 10 May 2021 06:54:50 +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: 5665863e-e58c-4305-87b0-3dd5d0cb0951 X-Archives-Hash: 7d92286fb42b8f5b31bcc911984c5e76 commit: ce47eb8190deb084d67f7218de9ae9194eab48b8 Author: Sam James gentoo org> AuthorDate: Mon May 10 06:52:34 2021 +0000 Commit: Sam James gentoo org> CommitDate: Mon May 10 06:54:21 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce47eb81 media-gfx/libimagequant: add 2.15.0 Signed-off-by: Sam James gentoo.org> media-gfx/libimagequant/Manifest | 1 + .../libimagequant/libimagequant-2.15.0.ebuild | 46 ++++++++++++++++++++++ 2 files changed, 47 insertions(+) diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest index c4ebfd216ce..234070a5c55 100644 --- a/media-gfx/libimagequant/Manifest +++ b/media-gfx/libimagequant/Manifest @@ -1,2 +1,3 @@ DIST libimagequant-2.12.3.tar.gz 75866 BLAKE2B 857a0e3f0187251e37e0c7f4f5f5cbf49266e4eb9f684118705778d9469330cf95780ea11b83d19e28251f047a7e9b8e7ac32ac4d9554cb5d9e1b3230d39e796 SHA512 4818b00b6f154407f3e402d56f4891c2d7594c8056fada0402d7fa0024ae50127340dd8295da5f5dca13fe1829670a3fa8793aa528f3e74a2294c9a7e37b7257 DIST libimagequant-2.14.0.tar.gz 97471 BLAKE2B df6403aea0b0e3cbaf05c6c60726ac3de85195779e4829dd04acec28ba93ea8d629846fa71d765949e721f592300da1d35227ec7bb28e00c600c575ba3fdc4fe SHA512 d34aa2ac9f08eebd80fb9e3e7fe22a3f10ce840152c4192735d57ae37c223350af09eeff6870ee2634b3fc51b03d1663cd6afd17daeab923af3b5f60fbef57d4 +DIST libimagequant-2.15.0.tar.gz 98668 BLAKE2B 916bb32ad848c5076502be7f471bd693396e8a7bd36878ec928f294776bd3343e76c2323372e577d58f5bb5c4f4e6aa3a32d5103901b190b0a036684cbf5cf56 SHA512 b856daaf79dd748ed3bb4cdc432dcffebf6678f8dffd6b4b0e79b96ec9c64ebf19597de35cf56ed47d3202947f3f5f208745c2c2c92fadf6c5b62f17e61b3f13 diff --git a/media-gfx/libimagequant/libimagequant-2.15.0.ebuild b/media-gfx/libimagequant/libimagequant-2.15.0.ebuild new file mode 100644 index 00000000000..e0d9b920c44 --- /dev/null +++ b/media-gfx/libimagequant/libimagequant-2.15.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +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 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" +IUSE="cpu_flags_x86_sse2 openmp" + +PATCHES=( + "${FILESDIR}"/libimagequant-2.12.2-respect-CFLAGS.patch + "${FILESDIR}"/libimagequant-2.12.2-fix-pkgconfig.patch +) + +pkg_pretend() { + [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp +} + +src_prepare() { + default + sed -i '/install.*STATICLIB/d' 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 +}