From 407525b571b48cfd65e1ad7a02d250a927c967c9 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Fri, 1 Dec 2017 03:04:39 +0000 Subject: gentoo resync : 01.12.2017 --- media-gfx/libimagequant/Manifest | 2 + .../libimagequant/libimagequant-2.11.4.ebuild | 47 ++++++++++++++++++++++ 2 files changed, 49 insertions(+) create mode 100644 media-gfx/libimagequant/libimagequant-2.11.4.ebuild (limited to 'media-gfx/libimagequant') diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest index 292fcd96aa3f..be489a421143 100644 --- a/media-gfx/libimagequant/Manifest +++ b/media-gfx/libimagequant/Manifest @@ -1,3 +1,5 @@ DIST libimagequant-2.10.1.tar.gz 70783 SHA256 c06f6d33611b90b57ed362752c9fe4819f6c51896b3024010f18744dc14ce0f7 SHA512 1cbb725e5f3774f931379f640c6532e169ea02a7b502a93af6b75a305e3dab1bd34a375391be0e8fdc15fea578715e8f8319d95d674383b7048e5f73e48b106f WHIRLPOOL 654407abec0b565b9ead32b427e2393be760a012eaba8d657c4b5fd9d75f729af98be5bcdeea99487419ef91d347dbb86598f3719992401ec49ee8adcef0e9a0 +DIST libimagequant-2.11.4.tar.gz 74117 BLAKE2B 5d42dc876c77694a1d4576e633d2e3aa1e531061aa849a683542cf11b14333f65125bbae699f927bf42896a934ade6d745aa517d6cbc4b7097d96c7579532ec9 SHA512 e9d2aaac2f37968dc93ba0da7d03f0fcf60b3f17d9a0b9edfd6930eade25844dd603de74492d8e1de8dc2da4e7f3e47959a558b5a67588d71e9e1db035eca1cc EBUILD libimagequant-2.10.1.ebuild 1173 BLAKE2B 5592028ff9799e260eccd6d6438faa28ea40dbc0b1515ec59f0aeebe5e6198d612a3c26a629bffdf5a903eebfff072a54ec25c3569e11afd07d72613b2a9025d SHA512 8636368abd9bbc7e20d28c968e5fefdf3f8a8d11e5b7c6651a98bc79b724c34abdcf948c8deda9cb5ca421858d2dbb155c2a1079665e5224fbf82c7d48477a76 +EBUILD libimagequant-2.11.4.ebuild 1175 BLAKE2B 45ebfb632526601318788fded0c26678026dd518e4168213a523e7baba7a46742fae05cb7db89fa8bca4f7687bdb5faff62da218d236f35c109392d90d7b93c8 SHA512 342ad821a2c7581c1fe603fdbacbe8b72d6f5ee2c3e41c56075056678a9fcaebeba79aa2b68f3c83f8115e1f2b6d2fb839842f67defd9a9fb7f35e30acb80f38 MISC metadata.xml 527 BLAKE2B c3fa42153fa6cfede4de3d59e12063aeb44f67ce89d36be63c7df4671c57ecfdd43d08aee89bd96387ecbee2e41b1d5921e9ad2486b4dd8f06e6e93529afb0a8 SHA512 82b458b27288b6b49df16d5778f6c75b492d958bcc1c2f2950dee741bfddc82f561be50f590d3f891bf736ee67e5325ae297bf49f99c769ca97ac68042beee11 diff --git a/media-gfx/libimagequant/libimagequant-2.11.4.ebuild b/media-gfx/libimagequant/libimagequant-2.11.4.ebuild new file mode 100644 index 000000000000..db64a5c57738 --- /dev/null +++ b/media-gfx/libimagequant/libimagequant-2.11.4.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/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 +} -- cgit v1.2.3