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 E194B139694 for ; Tue, 11 Jul 2017 20:33:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 28C37274181; Tue, 11 Jul 2017 20:33:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 EA8B5274192 for ; Tue, 11 Jul 2017 20:33:48 +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 06932341C2E for ; Tue, 11 Jul 2017 20:33:48 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B8A5074B6 for ; Tue, 11 Jul 2017 20:33:44 +0000 (UTC) From: "Sebastien Fabbro" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastien Fabbro" Message-ID: <1499804418.8fc9e7a5868e52aad6625d88c89645f8058a5bb5.bicatali@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.10.1.ebuild media-gfx/libimagequant/metadata.xml X-VCS-Directories: media-gfx/libimagequant/ X-VCS-Committer: bicatali X-VCS-Committer-Name: Sebastien Fabbro X-VCS-Revision: 8fc9e7a5868e52aad6625d88c89645f8058a5bb5 X-VCS-Branch: master Date: Tue, 11 Jul 2017 20:33:44 +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-Archives-Salt: 5158ea3c-eff7-43d4-b186-846ba26ed692 X-Archives-Hash: 9d3a50ad12f189fbe99b2b88c4c14bb9 commit: 8fc9e7a5868e52aad6625d88c89645f8058a5bb5 Author: Sébastien Fabbro gentoo org> AuthorDate: Tue Jul 11 20:17:12 2017 +0000 Commit: Sebastien Fabbro gentoo org> CommitDate: Tue Jul 11 20:20:18 2017 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8fc9e7a5 media-gfx/libimagequant: Package-Manager: Portage-2.3.6, Repoman-2.3.2 media-gfx/libimagequant/Manifest | 1 + .../libimagequant/libimagequant-2.10.1.ebuild | 47 ++++++++++++++++++++++ media-gfx/libimagequant/metadata.xml | 15 +++++++ 3 files changed, 63 insertions(+) diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest new file mode 100644 index 00000000000..c74854f01b3 --- /dev/null +++ b/media-gfx/libimagequant/Manifest @@ -0,0 +1 @@ +DIST libimagequant-2.10.1.tar.gz 70783 SHA256 c06f6d33611b90b57ed362752c9fe4819f6c51896b3024010f18744dc14ce0f7 SHA512 1cbb725e5f3774f931379f640c6532e169ea02a7b502a93af6b75a305e3dab1bd34a375391be0e8fdc15fea578715e8f8319d95d674383b7048e5f73e48b106f WHIRLPOOL 654407abec0b565b9ead32b427e2393be760a012eaba8d657c4b5fd9d75f729af98be5bcdeea99487419ef91d347dbb86598f3719992401ec49ee8adcef0e9a0 diff --git a/media-gfx/libimagequant/libimagequant-2.10.1.ebuild b/media-gfx/libimagequant/libimagequant-2.10.1.ebuild new file mode 100644 index 00000000000..2392cd1682e --- /dev/null +++ b/media-gfx/libimagequant/libimagequant-2.10.1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit toolchain-funcs eutils + +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" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" +IUSE="cpu_flags_x86_sse2 debug openmp static-libs" + +DEPEND="" +RDEPEND="${DEPEND}" + +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" \ + $(use debug && echo --enable-debug) \ + $(use_enable cpu_flags_x86_sse2 sse) \ + $(use_with openmp) \ + CFLAGS="${CFLAGS} ${CPPFLAGS}" \ + LDFLAGS="${LDFLAGS}" +} + +src_compile() { + emake shared || 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 +} diff --git a/media-gfx/libimagequant/metadata.xml b/media-gfx/libimagequant/metadata.xml new file mode 100644 index 00000000000..b0caaab125f --- /dev/null +++ b/media-gfx/libimagequant/metadata.xml @@ -0,0 +1,15 @@ + + + + + graphics@gentoo.org + Gentoo Graphics Project + + + Small, portable C library for high-quality conversion of RGBA + images to 8-bit indexed-color (palette) images. + + + ImageOptim/libimagequant + +