Gentoo Archives: gentoo-commits

From: Thomas Deutschmann <whissi@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-libs/libwebp/
Date: Sun, 20 Jan 2019 00:55:45
Message-Id: 1547945731.74bf7feabb362d0f65dc35bfbe80625344253b85.whissi@gentoo
1 commit: 74bf7feabb362d0f65dc35bfbe80625344253b85
2 Author: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 20 00:55:16 2019 +0000
4 Commit: Thomas Deutschmann <whissi <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 20 00:55:31 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=74bf7fea
7
8 media-libs/libwebp: bump to v1.0.2
9
10 Package-Manager: Portage-2.3.56, Repoman-2.3.12
11 Signed-off-by: Thomas Deutschmann <whissi <AT> gentoo.org>
12
13 media-libs/libwebp/Manifest | 1 +
14 media-libs/libwebp/libwebp-1.0.2.ebuild | 70 +++++++++++++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/media-libs/libwebp/Manifest b/media-libs/libwebp/Manifest
18 index 5711627a297..9a101c97ffa 100644
19 --- a/media-libs/libwebp/Manifest
20 +++ b/media-libs/libwebp/Manifest
21 @@ -2,3 +2,4 @@ DIST libwebp-0.5.2.tar.gz 1221153 BLAKE2B bf8f20c9dd45f70e68dda4eb1104b511be07b4
22 DIST libwebp-0.6.1.tar.gz 3990217 BLAKE2B 680dcc56bd10797e93d09dc64ed04fd2ffb0b8131aa0c0f1497054c50f5cff73b7ee2aa96df4f7ca760640b636f6f5265ae26e7874a77a86d39d2c74197c93b7 SHA512 fece551d8fabdd8d7ba6807baa54a69a345f8690be4415dd0c0dea54002d78fe893a5d5aacfc13800300edd462b969d596709ac3213f6bc90f8e3698b2490d5f
23 DIST libwebp-1.0.0.tar.gz 4023549 BLAKE2B 10286182ddc1f3561d01edf095ba8921b932b950175c45bbc86400318f9a88237c7623b0bcdd0dfecea6efb085e84e029c82a61396cb784d778d59902353d2b4 SHA512 2af7036957722a3f1533fa2da0da15c76d7eb8ac98ec4ad5cf71dd4262f3d7c9897fb6b50befab83b7de22f0abceeb2c0ff52d60927513d40f8a41aa6a9abd99
24 DIST libwebp-1.0.1.tar.gz 4030276 BLAKE2B 4ea3b31bac14c61fbedad14ed675adb4cc0deaed83f8c58f8d589ab2453a8cff33d7832acba39c673aa31cbb3d5c6b487151173d162f92a3698115833b03b694 SHA512 44e0c278b4569c03c39a1e047bccd7b4270bda12feae0dadc54f8a61fd6a66be011229f1e7e853f64749bcd9ea9e8146989e2b632459b67a4aaea4a8033a1361
25 +DIST libwebp-1.0.2.tar.gz 4036397 BLAKE2B 708c1083f62bdb3526f8319d9b6ce1e8aeba2bc785105ff7db07c9c7041311cedcfff000de5b8fd8e93550fc86ec149f6dd4a21f576709b80cb6a4b20ddd2863 SHA512 e095b8fdf0096395daf12892b3b74c472868e727f23640ba7aa5922a5a028b778a6a60d8a94f696f6c0ca49577dfc9a0b599ecb74ad831ade48c6db812b71d2e
26
27 diff --git a/media-libs/libwebp/libwebp-1.0.2.ebuild b/media-libs/libwebp/libwebp-1.0.2.ebuild
28 new file mode 100644
29 index 00000000000..d561963a322
30 --- /dev/null
31 +++ b/media-libs/libwebp/libwebp-1.0.2.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2019 Gentoo Authors
34 +# Distributed under the terms of the GNU General Public License v2
35 +
36 +EAPI=7
37 +inherit autotools libtool multilib-minimal
38 +
39 +MY_P="${P/_/-}"
40 +
41 +DESCRIPTION="A lossy image compression format"
42 +HOMEPAGE="https://developers.google.com/speed/webp/download"
43 +SRC_URI="http://downloads.webmproject.org/releases/webp/${MY_P}.tar.gz"
44 +
45 +LICENSE="BSD"
46 +SLOT="0/7" # subslot = libwebp soname version
47 +[[ "${PV}" = *_rc* ]] || \
48 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~m68k-mint ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
49 +IUSE="cpu_flags_x86_sse2 cpu_flags_x86_sse4_1 gif +jpeg neon opengl +png static-libs swap-16bit-csp tiff"
50 +
51 +# TODO: dev-lang/swig bindings in swig/ subdirectory
52 +RDEPEND="gif? ( media-libs/giflib:= )
53 + jpeg? ( virtual/jpeg:0= )
54 + opengl? (
55 + media-libs/freeglut
56 + virtual/opengl
57 + )
58 + png? ( media-libs/libpng:0= )
59 + tiff? ( media-libs/tiff:0= )"
60 +DEPEND="${RDEPEND}"
61 +
62 +S="${WORKDIR}/${MY_P}"
63 +
64 +src_prepare() {
65 + default
66 +
67 + # Fix libtool relinking, bug 499270.
68 + #elibtoolize
69 + eautoreconf
70 +}
71 +
72 +multilib_src_configure() {
73 + local args=(
74 + --enable-libwebpmux
75 + --enable-libwebpdemux
76 + --enable-libwebpdecoder
77 + $(use_enable static-libs static)
78 + $(use_enable swap-16bit-csp)
79 + $(use_enable jpeg)
80 + $(use_enable png)
81 + $(use_enable opengl gl)
82 + $(use_enable tiff)
83 +
84 + $(use_enable cpu_flags_x86_sse2 sse2)
85 + $(use_enable cpu_flags_x86_sse4_1 sse4.1)
86 + $(use_enable neon)
87 +
88 + # Only used for gif2webp binary wrt #486646
89 + $(multilib_native_use_enable gif)
90 + )
91 +
92 + ECONF_SOURCE="${S}" econf "${args[@]}"
93 +}
94 +
95 +multilib_src_install() {
96 + emake DESTDIR="${D}" install
97 +}
98 +
99 +multilib_src_install_all() {
100 + find "${ED}" -name "*.la" -delete || die
101 + dodoc AUTHORS ChangeLog doc/*.txt NEWS README{,.mux}
102 +}