Gentoo Archives: gentoo-commits

From: David Heidelberg <david@××××.cz>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: gui-libs/webp-pixbuf-loader/files/, gui-libs/webp-pixbuf-loader/
Date: Sun, 26 Apr 2020 21:17:59
Message-Id: 1587935830.6955bebf35a3e531d6c8c5cc8e8150fe516bf140.okias@gentoo
1 commit: 6955bebf35a3e531d6c8c5cc8e8150fe516bf140
2 Author: David Heidelberg <david <AT> ixit <DOT> cz>
3 AuthorDate: Sun Apr 26 21:17:10 2020 +0000
4 Commit: David Heidelberg <david <AT> ixit <DOT> cz>
5 CommitDate: Sun Apr 26 21:17:10 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6955bebf
7
8 gui-libs/webp-pixbuf-loader: New package.
9
10 Package-Manager: Portage-2.3.99, Repoman-2.3.22
11 Signed-off-by: David Heidelberg <david <AT> ixit.cz>
12
13 gui-libs/webp-pixbuf-loader/Manifest | 1 +
14 .../files/webp-pixbuf-loader_gentoo.patch | 20 +++++++++
15 gui-libs/webp-pixbuf-loader/metadata.xml | 16 +++++++
16 .../webp-pixbuf-loader-0.0.1.ebuild | 50 ++++++++++++++++++++++
17 4 files changed, 87 insertions(+)
18
19 diff --git a/gui-libs/webp-pixbuf-loader/Manifest b/gui-libs/webp-pixbuf-loader/Manifest
20 new file mode 100644
21 index 0000000..90dfed6
22 --- /dev/null
23 +++ b/gui-libs/webp-pixbuf-loader/Manifest
24 @@ -0,0 +1 @@
25 +DIST webp-pixbuf-loader-0.0.1.tar.gz 8212 BLAKE2B 20b2f32ca0885069e185c415e10119f6f65b73131b4928e6db95fa9f92f9ec53bd3fd5fbc4708370dfaee68df4c8052d2df76c6e0c0a6267240f7804db8e33f8 SHA512 f3fa859221fdc5277c951e09448dea6078ca4825de06b319e33e86b59db1201616ca4a706d5114e431719584d5a0766a7706c4192dbc384441efb1799d9e40ec
26
27 diff --git a/gui-libs/webp-pixbuf-loader/files/webp-pixbuf-loader_gentoo.patch b/gui-libs/webp-pixbuf-loader/files/webp-pixbuf-loader_gentoo.patch
28 new file mode 100644
29 index 0000000..decadd6
30 --- /dev/null
31 +++ b/gui-libs/webp-pixbuf-loader/files/webp-pixbuf-loader_gentoo.patch
32 @@ -0,0 +1,20 @@
33 +diff --git a/meson.build b/meson.build
34 +index 2ae10ca..53761cd 100644
35 +--- a/meson.build
36 ++++ b/meson.build
37 +@@ -7,7 +7,6 @@ webp = dependency('libwebp', version: '>0.4.3')
38 + # -34/-64 is to overcome a Fedora bug in the .pc file
39 + # debian has a similar problem with its .pc file but it requires knowing the platform triad
40 +
41 +-gdk_pb_query_loaders = find_program(get_option('gdk_pixbuf_query_loaders_path'), gdk_pb_query_loaders, gdk_pb_query_loaders+'-32', gdk_pb_query_loaders+'-64')
42 +
43 +
44 + pbl_webp = shared_library('pixbufloader-webp', 'io-webp.c',
45 +@@ -15,7 +14,6 @@ pbl_webp = shared_library('pixbufloader-webp', 'io-webp.c',
46 + install: true,
47 + install_dir: gdk_pb_moddir)
48 +
49 +-meson.add_install_script(gdk_pb_query_loaders.path(), '--update-cache')
50 +
51 + subdir('tests')
52 +
53
54 diff --git a/gui-libs/webp-pixbuf-loader/metadata.xml b/gui-libs/webp-pixbuf-loader/metadata.xml
55 new file mode 100644
56 index 0000000..c7fbfec
57 --- /dev/null
58 +++ b/gui-libs/webp-pixbuf-loader/metadata.xml
59 @@ -0,0 +1,16 @@
60 +<?xml version='1.0' encoding='UTF-8'?>
61 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
62 +<pkgmetadata>
63 + <maintainer type="person">
64 + <email>david@××××.cz</email>
65 + <name>David Heidelberg</name>
66 + </maintainer>
67 + <longdescription lang="en">
68 + webp-pixbuf-loader integrates libwebp library into GDK image
69 + processing framework, so GDK based application can use WEBP
70 + format natively.
71 + </longdescription>
72 + <upstream>
73 + <remote-id type="github">aruiz/webp-pixbuf-loader</remote-id>
74 + </upstream>
75 +</pkgmetadata>
76
77 diff --git a/gui-libs/webp-pixbuf-loader/webp-pixbuf-loader-0.0.1.ebuild b/gui-libs/webp-pixbuf-loader/webp-pixbuf-loader-0.0.1.ebuild
78 new file mode 100644
79 index 0000000..af0f5e9
80 --- /dev/null
81 +++ b/gui-libs/webp-pixbuf-loader/webp-pixbuf-loader-0.0.1.ebuild
82 @@ -0,0 +1,50 @@
83 +# Copyright 1999-2020 Gentoo Authors
84 +# Distributed under the terms of the GNU General Public License v2
85 +
86 +EAPI=6
87 +
88 +inherit gnome2-utils meson multilib-minimal
89 +
90 +DESCRIPTION="WebP Image format GdkPixbuf loader"
91 +HOMEPAGE="https://github.com/aruiz/webp-pixbuf-loader"
92 +SRC_URI="https://github.com/aruiz/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
93 +
94 +LICENSE="LGPL-2+"
95 +SLOT="0"
96 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
97 +
98 +PATCHES=( "${FILESDIR}/${PN}_gentoo.patch" )
99 +
100 +DEPEND="
101 + >=media-libs/libwebp-0.4.3[${MULTILIB_USEDEP}]
102 + >=x11-libs/gdk-pixbuf-2.22[${MULTILIB_USEDEP}]
103 +"
104 +RDEPEND="${DEPEND}"
105 +
106 +multilib_src_configure() {
107 + meson_src_configure
108 +}
109 +
110 +multilib_src_compile() {
111 + meson_src_compile
112 +}
113 +
114 +multilib_src_test() {
115 + meson_src_test
116 +}
117 +
118 +multilib_src_install() {
119 + meson_src_install
120 +}
121 +
122 +pkg_preinst() {
123 + gnome2_gdk_pixbuf_savelist
124 +}
125 +
126 +pkg_postinst() {
127 + gnome2_gdk_pixbuf_update
128 +}
129 +
130 +pkg_postrm() {
131 + gnome2_gdk_pixbuf_update
132 +}