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 E34E8138334 for ; Fri, 14 Dec 2018 01:08:52 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C50C3E0C9C; Fri, 14 Dec 2018 01:08:51 +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 80BADE0C9C for ; Fri, 14 Dec 2018 01:08:51 +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 27D37335C5D for ; Fri, 14 Dec 2018 01:08:49 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 0B8E14E3 for ; Fri, 14 Dec 2018 01:08:47 +0000 (UTC) From: "Thomas Deutschmann" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Thomas Deutschmann" Message-ID: <1544749718.9c5b9dc59bfbe618bd9e066e884060b024c4c83d.whissi@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/libimagequant/files/, media-gfx/libimagequant/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/libimagequant/Manifest media-gfx/libimagequant/files/libimagequant-2.12.2-fix-pkgconfig.patch media-gfx/libimagequant/files/libimagequant-2.12.2-respect-CFLAGS.patch media-gfx/libimagequant/libimagequant-2.12.2.ebuild X-VCS-Directories: media-gfx/libimagequant/files/ media-gfx/libimagequant/ X-VCS-Committer: whissi X-VCS-Committer-Name: Thomas Deutschmann X-VCS-Revision: 9c5b9dc59bfbe618bd9e066e884060b024c4c83d X-VCS-Branch: master Date: Fri, 14 Dec 2018 01:08:47 +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: c721ef7a-df75-4d7c-b7e3-c203616f9dd4 X-Archives-Hash: 2232110d7793a202b1b17ad82feac5d9 commit: 9c5b9dc59bfbe618bd9e066e884060b024c4c83d Author: Thomas Deutschmann gentoo org> AuthorDate: Fri Dec 14 00:35:49 2018 +0000 Commit: Thomas Deutschmann gentoo org> CommitDate: Fri Dec 14 01:08:38 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9c5b9dc5 media-gfx/libimagequant: bump to v2.12.2 Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Thomas Deutschmann gentoo.org> media-gfx/libimagequant/Manifest | 1 + .../files/libimagequant-2.12.2-fix-pkgconfig.patch | 25 ++++++++++ .../libimagequant-2.12.2-respect-CFLAGS.patch | 17 +++++++ .../libimagequant/libimagequant-2.12.2.ebuild | 55 ++++++++++++++++++++++ 4 files changed, 98 insertions(+) diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest index 3ddb32f3c86..539afb1f3c9 100644 --- a/media-gfx/libimagequant/Manifest +++ b/media-gfx/libimagequant/Manifest @@ -1 +1,2 @@ DIST libimagequant-2.11.7.tar.gz 74311 BLAKE2B 204fbe794014c11d767991a03e729b234978fb1edb1fdffcb7d332461ccaa1a536a1e9dbc7b44a8838db61cc76fdbc1eb75087b480f4fc42bf791fea913639a2 SHA512 8816811c06eec27232e39725c581e382b7076f3bc23b017810de0e92236e6e4eb480def7b50347c9b75f7d792245669398c39a17359eb81077badf12e6f0a172 +DIST libimagequant-2.12.2.tar.gz 75611 BLAKE2B 23f5d3666fd21696d4f4dab9db3669642a9e3f6ca971804b914e845018df538136c3db900419ac35230be9fd487b48e0ab672b653e2ee82387c19569b49d6cfc SHA512 7e7bfcffd163d8b73a46d523dc441e4a4726f5dde804f306f13900f74afae6f6e7cf780bf157b5823a71c790bcdd0e9c9c34cf43f84a21289e470fc78835d8d8 diff --git a/media-gfx/libimagequant/files/libimagequant-2.12.2-fix-pkgconfig.patch b/media-gfx/libimagequant/files/libimagequant-2.12.2-fix-pkgconfig.patch new file mode 100644 index 00000000000..0b058fbecc2 --- /dev/null +++ b/media-gfx/libimagequant/files/libimagequant-2.12.2-fix-pkgconfig.patch @@ -0,0 +1,25 @@ +diff --git a/Makefile b/Makefile +index 2666b3d..ba58cf1 100644 +--- a/Makefile ++++ b/Makefile +@@ -133,7 +133,7 @@ ifeq ($(filter %clean %distclean, $(MAKECMDGOALS)), ) + endif + + $(PKGCONFIG): config.mk +- sed 's|PREFIX|$(PREFIX)|;s|VERSION|$(VERSION)|' < imagequant.pc.in > $(PKGCONFIG) ++ sed 's|PREFIX|$(PREFIX)|;s|VERSION|$(VERSION)|;s|LIBDIR|$(LIBDIR)|' < imagequant.pc.in > $(PKGCONFIG) + + .PHONY: all static shared clean dist distclean dll java cargo + .DELETE_ON_ERROR: +diff --git a/imagequant.pc.in b/imagequant.pc.in +index 980da8c..6c6569d 100644 +--- a/imagequant.pc.in ++++ b/imagequant.pc.in +@@ -1,6 +1,6 @@ + prefix=PREFIX + includedir=${prefix}/include +-libdir=${prefix}/lib ++libdir=LIBDIR + + Name: imagequant + Description: Small, portable C library for high-quality conversion of RGBA images to 8-bit indexed-color (palette) images. diff --git a/media-gfx/libimagequant/files/libimagequant-2.12.2-respect-CFLAGS.patch b/media-gfx/libimagequant/files/libimagequant-2.12.2-respect-CFLAGS.patch new file mode 100644 index 00000000000..c290af36fe5 --- /dev/null +++ b/media-gfx/libimagequant/files/libimagequant-2.12.2-respect-CFLAGS.patch @@ -0,0 +1,17 @@ +--- a/configure ++++ b/configure +@@ -152,12 +152,12 @@ rm -f pngquant-gcccheck pngquant-gcccheck.c + status "Compiler" "$CC" + + # init flags +-CFLAGS=${CFLAGS:--fno-math-errno -funroll-loops -fomit-frame-pointer -Wall} ++CFLAGS=${CFLAGS:--fno-math-errno -funroll-loops -fomit-frame-pointer} + cflags "-std=c99 -I." + + # DEBUG + if [ -z "$DEBUG" ]; then +- cflags "-O3 -DNDEBUG" ++ cflags "-DNDEBUG" + status "Debug" "no" + else + cflags "-O1 -g" diff --git a/media-gfx/libimagequant/libimagequant-2.12.2.ebuild b/media-gfx/libimagequant/libimagequant-2.12.2.ebuild new file mode 100644 index 00000000000..f9e1c3ed54c --- /dev/null +++ b/media-gfx/libimagequant/libimagequant-2.12.2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 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="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cpu_flags_x86_sse2 debug openmp static-libs" + +DEPEND="" +RDEPEND="${DEPEND}" + +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_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 debug && echo --enable-debug) \ + $(use_enable cpu_flags_x86_sse2 sse) \ + $(use_with openmp) \ + CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_compile() { + emake shared imagequant.pc || die "make failed" + use static-libs && (emake static || die "make failed") +} + +src_install() { + dolib.so libimagequant.so + dolib.so libimagequant.so.* + use static-libs && dolib.a libimagequant.a + doheader libimagequant.h + einstalldocs + insinto /usr/$(get_libdir)/pkgconfig + doins imagequant.pc +}