public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/proj/guru:dev commit in: gui-libs/webp-pixbuf-loader/files/, gui-libs/webp-pixbuf-loader/
@ 2020-04-26 21:17 David Heidelberg
  0 siblings, 0 replies; only message in thread
From: David Heidelberg @ 2020-04-26 21:17 UTC (permalink / raw
  To: gentoo-commits

commit:     6955bebf35a3e531d6c8c5cc8e8150fe516bf140
Author:     David Heidelberg <david <AT> ixit <DOT> cz>
AuthorDate: Sun Apr 26 21:17:10 2020 +0000
Commit:     David Heidelberg <david <AT> ixit <DOT> cz>
CommitDate: Sun Apr 26 21:17:10 2020 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6955bebf

gui-libs/webp-pixbuf-loader: New package.

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: David Heidelberg <david <AT> ixit.cz>

 gui-libs/webp-pixbuf-loader/Manifest               |  1 +
 .../files/webp-pixbuf-loader_gentoo.patch          | 20 +++++++++
 gui-libs/webp-pixbuf-loader/metadata.xml           | 16 +++++++
 .../webp-pixbuf-loader-0.0.1.ebuild                | 50 ++++++++++++++++++++++
 4 files changed, 87 insertions(+)

diff --git a/gui-libs/webp-pixbuf-loader/Manifest b/gui-libs/webp-pixbuf-loader/Manifest
new file mode 100644
index 0000000..90dfed6
--- /dev/null
+++ b/gui-libs/webp-pixbuf-loader/Manifest
@@ -0,0 +1 @@
+DIST webp-pixbuf-loader-0.0.1.tar.gz 8212 BLAKE2B 20b2f32ca0885069e185c415e10119f6f65b73131b4928e6db95fa9f92f9ec53bd3fd5fbc4708370dfaee68df4c8052d2df76c6e0c0a6267240f7804db8e33f8 SHA512 f3fa859221fdc5277c951e09448dea6078ca4825de06b319e33e86b59db1201616ca4a706d5114e431719584d5a0766a7706c4192dbc384441efb1799d9e40ec

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
new file mode 100644
index 0000000..decadd6
--- /dev/null
+++ b/gui-libs/webp-pixbuf-loader/files/webp-pixbuf-loader_gentoo.patch
@@ -0,0 +1,20 @@
+diff --git a/meson.build b/meson.build
+index 2ae10ca..53761cd 100644
+--- a/meson.build
++++ b/meson.build
+@@ -7,7 +7,6 @@ webp = dependency('libwebp', version: '>0.4.3')
+ # -34/-64 is to overcome a Fedora bug in the .pc file
+ # debian has a similar problem with its .pc file but it requires knowing the platform triad
+ 
+-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')
+ 
+ 
+ pbl_webp = shared_library('pixbufloader-webp', 'io-webp.c',
+@@ -15,7 +14,6 @@ pbl_webp = shared_library('pixbufloader-webp', 'io-webp.c',
+                           install: true,
+                           install_dir: gdk_pb_moddir)
+ 
+-meson.add_install_script(gdk_pb_query_loaders.path(), '--update-cache')
+ 
+ subdir('tests')
+ 

diff --git a/gui-libs/webp-pixbuf-loader/metadata.xml b/gui-libs/webp-pixbuf-loader/metadata.xml
new file mode 100644
index 0000000..c7fbfec
--- /dev/null
+++ b/gui-libs/webp-pixbuf-loader/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>david@ixit.cz</email>
+		<name>David Heidelberg</name>
+	</maintainer>
+	<longdescription lang="en">
+		webp-pixbuf-loader integrates libwebp library into GDK image
+		processing framework, so GDK based application can use WEBP
+		format natively.
+	</longdescription>
+	<upstream>
+		<remote-id type="github">aruiz/webp-pixbuf-loader</remote-id>
+	</upstream>
+</pkgmetadata>

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
new file mode 100644
index 0000000..af0f5e9
--- /dev/null
+++ b/gui-libs/webp-pixbuf-loader/webp-pixbuf-loader-0.0.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit gnome2-utils meson multilib-minimal
+
+DESCRIPTION="WebP Image format GdkPixbuf loader"
+HOMEPAGE="https://github.com/aruiz/webp-pixbuf-loader"
+SRC_URI="https://github.com/aruiz/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2+"
+SLOT="0"
+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"
+
+PATCHES=( "${FILESDIR}/${PN}_gentoo.patch" )
+
+DEPEND="
+	>=media-libs/libwebp-0.4.3[${MULTILIB_USEDEP}]
+	>=x11-libs/gdk-pixbuf-2.22[${MULTILIB_USEDEP}]
+"
+RDEPEND="${DEPEND}"
+
+multilib_src_configure() {
+	meson_src_configure
+}
+
+multilib_src_compile() {
+	meson_src_compile
+}
+
+multilib_src_test() {
+	meson_src_test
+}
+
+multilib_src_install() {
+	meson_src_install
+}
+
+pkg_preinst() {
+	gnome2_gdk_pixbuf_savelist
+}
+
+pkg_postinst() {
+	gnome2_gdk_pixbuf_update
+}
+
+pkg_postrm() {
+	gnome2_gdk_pixbuf_update
+}


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2020-04-26 21:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-26 21:17 [gentoo-commits] repo/proj/guru:dev commit in: gui-libs/webp-pixbuf-loader/files/, gui-libs/webp-pixbuf-loader/ David Heidelberg

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox