1 |
commit: ab195d04a2d8aa01292c94908329065f9e4f8fa9 |
2 |
Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 29 00:02:09 2017 +0000 |
4 |
Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 29 00:09:17 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ab195d04 |
7 |
|
8 |
media-gfx/libimagequant: Bump to v2.11.4 |
9 |
|
10 |
Package-Manager: Portage-2.3.16, Repoman-2.3.6 |
11 |
|
12 |
media-gfx/libimagequant/Manifest | 1 + |
13 |
.../libimagequant/libimagequant-2.11.4.ebuild | 47 ++++++++++++++++++++++ |
14 |
2 files changed, 48 insertions(+) |
15 |
|
16 |
diff --git a/media-gfx/libimagequant/Manifest b/media-gfx/libimagequant/Manifest |
17 |
index c74854f01b3..1140301b549 100644 |
18 |
--- a/media-gfx/libimagequant/Manifest |
19 |
+++ b/media-gfx/libimagequant/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST libimagequant-2.10.1.tar.gz 70783 SHA256 c06f6d33611b90b57ed362752c9fe4819f6c51896b3024010f18744dc14ce0f7 SHA512 1cbb725e5f3774f931379f640c6532e169ea02a7b502a93af6b75a305e3dab1bd34a375391be0e8fdc15fea578715e8f8319d95d674383b7048e5f73e48b106f WHIRLPOOL 654407abec0b565b9ead32b427e2393be760a012eaba8d657c4b5fd9d75f729af98be5bcdeea99487419ef91d347dbb86598f3719992401ec49ee8adcef0e9a0 |
22 |
+DIST libimagequant-2.11.4.tar.gz 74117 BLAKE2B 5d42dc876c77694a1d4576e633d2e3aa1e531061aa849a683542cf11b14333f65125bbae699f927bf42896a934ade6d745aa517d6cbc4b7097d96c7579532ec9 SHA512 e9d2aaac2f37968dc93ba0da7d03f0fcf60b3f17d9a0b9edfd6930eade25844dd603de74492d8e1de8dc2da4e7f3e47959a558b5a67588d71e9e1db035eca1cc |
23 |
|
24 |
diff --git a/media-gfx/libimagequant/libimagequant-2.11.4.ebuild b/media-gfx/libimagequant/libimagequant-2.11.4.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..db64a5c5773 |
27 |
--- /dev/null |
28 |
+++ b/media-gfx/libimagequant/libimagequant-2.11.4.ebuild |
29 |
@@ -0,0 +1,47 @@ |
30 |
+# Copyright 1999-2017 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+inherit toolchain-funcs eutils |
36 |
+ |
37 |
+DESCRIPTION="Palette quantization library that powers pngquant and other PNG optimizers" |
38 |
+HOMEPAGE="https://pngquant.org/lib/" |
39 |
+SRC_URI="https://github.com/ImageOptim/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" |
40 |
+ |
41 |
+LICENSE="GPL-3" |
42 |
+SLOT="0/0" |
43 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
44 |
+IUSE="cpu_flags_x86_sse2 debug openmp static-libs" |
45 |
+ |
46 |
+DEPEND="" |
47 |
+RDEPEND="${DEPEND}" |
48 |
+ |
49 |
+pkg_pretend() { |
50 |
+ [[ ${MERGE_TYPE} != binary ]] && use openmp && tc-check-openmp |
51 |
+} |
52 |
+ |
53 |
+src_configure() { |
54 |
+ tc-export AR CC |
55 |
+ # Hand rolled configure script, so not all flags are supported. |
56 |
+ ./configure \ |
57 |
+ --prefix="${EPREFIX}/usr" \ |
58 |
+ $(use debug && echo --enable-debug) \ |
59 |
+ $(use_enable cpu_flags_x86_sse2 sse) \ |
60 |
+ $(use_with openmp) \ |
61 |
+ CFLAGS="${CFLAGS} ${CPPFLAGS}" \ |
62 |
+ LDFLAGS="${LDFLAGS}" |
63 |
+} |
64 |
+ |
65 |
+src_compile() { |
66 |
+ emake shared || die "make failed" |
67 |
+ use static-libs && (emake static || die "make failed") |
68 |
+} |
69 |
+ |
70 |
+src_install() { |
71 |
+ dolib.so libimagequant.so |
72 |
+ dolib.so libimagequant.so.* |
73 |
+ use static-libs && dolib.a libimagequant.a |
74 |
+ doheader libimagequant.h |
75 |
+ einstalldocs |
76 |
+} |