summaryrefslogtreecommitdiff
path: root/media-gfx/gnome-raw-thumbnailer
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /media-gfx/gnome-raw-thumbnailer
reinit the tree, so we can have metadata
Diffstat (limited to 'media-gfx/gnome-raw-thumbnailer')
-rw-r--r--media-gfx/gnome-raw-thumbnailer/Manifest9
-rw-r--r--media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch63
-rw-r--r--media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch35
-rw-r--r--media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch25
-rw-r--r--media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild42
-rw-r--r--media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild30
-rw-r--r--media-gfx/gnome-raw-thumbnailer/metadata.xml8
7 files changed, 212 insertions, 0 deletions
diff --git a/media-gfx/gnome-raw-thumbnailer/Manifest b/media-gfx/gnome-raw-thumbnailer/Manifest
new file mode 100644
index 000000000000..9ed8b3b5716f
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/Manifest
@@ -0,0 +1,9 @@
+AUX gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch 1715 SHA256 dbb494438ac4f19bb05ad87051302f3e20ef2b69491c1694867aa622000d30fc SHA512 412e7cabc34431730b60efe5c88514c1c60b691f7b305ac408adb7403f3c2795c6712b5b058f83b17d6bc80240656af1edae3ad68ededa5e7e971af9038158ce WHIRLPOOL 74565f479578d3420239f34952e00326a4be08fc6a96de6242bf320744166425481508357eb4946b64e0afb7ad51bce054f7ac12f99b37aa41e81e8e62b5e231
+AUX gnome-raw-thumbnailer-3.0.0-fix-downscale.patch 1030 SHA256 f9b841c97fa5d0eaf16f78e6ecfe63ac17f1c9c7aec79005284453388e6f3368 SHA512 b4985090dad9a06087d2b598eed03333a80d71343a244db3c08fc0f5ef1fc8baae1969b0cdaad460cdd54106173fdd9aa52086203727e823e20bb830deee1242 WHIRLPOOL b7cd3d968434892f96e267e48e9be1141339daea2b9e8646ac7e4169ddc485a3837ff2e69f3178c0e0d65fda9bbf4f1680546237955dce2ed02d800673b76c90
+AUX gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch 696 SHA256 5a18c7de9f6cf0c849d735a6e0762f63ad6bfdb37a1c3d953bfe65a796412871 SHA512 ac12cf060a1f40abecb2ff86429766662632e1a448dd84c5205c8def987d7e20c1738402cfd7d6c76b4a5f908872c77ddc046e6379705c1e69277543828bdab7 WHIRLPOOL bb318fcfdf31263d2e8efef36b0191dba2b37c0093dae110be85e631fdb6f7572dd825957bd1a4d20091f3f0f692361a0d60f5bb275a15b32ddb85f5b980718d
+DIST raw-thumbnailer-3.0.0.tar.bz2 270499 SHA256 27afbc429f2772d5b9190c5443158ac33352e6bd5fede3aa1a7aa6b5fbb9d253 SHA512 b6b477af0ec604e100a67829bc9262a3aa54db9beb644e60a9ae95f916fd641ad7ccaa908fc6458be2eee60ecdb47bda9449720bc078f1c4fe0135fabf0bd9eb WHIRLPOOL 02862ef003dac30394d089f0573a40b1dd1d2c676a71d5b9bfc43803b75b94b72c851eceb9b803f3334c893f3a906818e5445b7faa9eb9500bf3d7aef99c1aa9
+EBUILD gnome-raw-thumbnailer-3.0.0-r1.ebuild 866 SHA256 9fca2749498751b900e65d7ffb4ed84a93adf72c90cb4696090ad943c681b0b8 SHA512 06ac66c3e701c12aeeb9756d48bcb7b7cf166a9a97795f2cae8c553298f3859f468bd1f9ab5fc6c1bfe4132146b9811e3398c2ab8e80e6e34121d060491a967c WHIRLPOOL 506c8b1de9efab90cab38e13fec9cc3462f15e06e980e78146fc8114063f4b8555a9abd6dade3694ff0cd0f08ff30803e11f8b3c43299caf6055250da28b9b05
+EBUILD gnome-raw-thumbnailer-3.0.0.ebuild 648 SHA256 de2c1f59e14865d17f267103fb140f5d103f2d88ed87f730a0a58a240730ef59 SHA512 c129fee26c644d9f1577aa53c0bca841047cf93a0c5d65442ae141b21bd82ce4097e932969a745df528a1703ceee65a0d9c667c7888321e3347997fd156787b8 WHIRLPOOL b07b794c37e3b05f707276b1c3f9877a77dfa4229c5f85da7caad80aa1f9d239f156378bd75772b3d8f21da28010d8867bb82a9bc73d7889bdeea3898f7bd1cf
+MISC ChangeLog 3530 SHA256 7f6bc34dd593754d4420a549b60b6c4af8c9f69f3d845f9094e0b1b8d39c6593 SHA512 5a5befae077b99f185e98434cee9fbc55e4cae1eb37527d0cbe1fa6b9e6bbec87a34ce9d6979876c3b5e64dfad43a041d6139d969189500e31d867db47d19098 WHIRLPOOL c3a3b83b6260dd7d64cdef2ba5db9fdc493bf7afaa02421f5afb3a340b7a5de41f0a78fb51dfa09c04d679dff578a8cec210cd06716573ff564ef32a227f6070
+MISC ChangeLog-2015 2293 SHA256 6ec01977f747de35be37cebae03c4c001ec3dd533b62994580ade570c05e0546 SHA512 ac8b07aca395f39ec68369105094312c8e692797984b76e085667b6c7077d1a11ba797578fe7a6b00c82690e9c12141c968585663c876f7917d42dcfdfb93376 WHIRLPOOL a2767c9f4bc99b9627a3d79a225878fb6afa59a6bc5cc56bb6ec0029631cfd51988535d5710d8adc822fc453d164dddb3cfd8d952448cddbbca7b95492fbeb8d
+MISC metadata.xml 259 SHA256 6d16d32cce05219baff0d7aef9baf4f8f4622ba77a55e9bc5ae9b074ae8d4600 SHA512 fbef629394690b3a5608abc6344816f6acf1e8e2663f29949fd14a662c628f16fee77a1ec1641066806d143fb94c1571bc5b46b829dc53620af6956377fe15cc WHIRLPOOL dd2c856848fdc98df5a4ffca31b95078656373a87ccf2e44be410e7139f2980f3ebb0ae951e2e92fc46ce8e3a3ecefec169c3a15bbcceba69c1bd8224a8dd271
diff --git a/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch
new file mode 100644
index 000000000000..8fddadb435ab
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-deprecation-warning.patch
@@ -0,0 +1,63 @@
+From e769ad77617a3456f0f4aee9418ef6bdbab40403 Mon Sep 17 00:00:00 2001
+From: Anton Keks <anton@codeborne.com>
+Date: Thu, 2 Jan 2014 23:14:55 +0200
+Subject: [PATCH 1/8] fix deprecation warnings
+
+---
+ src/raw-thumbnailer.c | 11 ++---------
+ 1 file changed, 2 insertions(+), 9 deletions(-)
+
+diff --git a/src/raw-thumbnailer.c b/src/raw-thumbnailer.c
+index d638102..b32bc49 100644
+--- a/src/raw-thumbnailer.c
++++ b/src/raw-thumbnailer.c
+@@ -64,7 +64,7 @@ save_pixbuf (GdkPixbuf *pixbuf, const char *path, int size)
+ }
+ else {
+ small = pixbuf;
+- gdk_pixbuf_ref (small);
++ g_object_ref (small);
+ }
+
+ a_width = g_strdup_printf ("%d", width);
+@@ -88,14 +88,11 @@ save_pixbuf (GdkPixbuf *pixbuf, const char *path, int size)
+ g_free(a_height);
+
+ if (small) {
+- gdk_pixbuf_unref (small);
++ g_object_unref (small);
+ }
+ return;
+ }
+
+-
+-
+-
+ static const GOptionEntry entries[] = {
+ { "jpeg", 'j', 0, G_OPTION_ARG_NONE, &jpeg_output, "Output the thumbnail as a JPEG instead of PNG", NULL },
+ { "size", 's', 0, G_OPTION_ARG_INT, &output_size, "Size of the thumbnail in pixels", NULL },
+@@ -107,8 +104,6 @@ static const GOptionEntry entries[] = {
+ { NULL }
+ };
+
+-
+-
+ int main (int argc, char ** argv)
+ {
+ const char *output_name;
+@@ -121,7 +116,6 @@ int main (int argc, char ** argv)
+
+ context = g_option_context_new ("Thumbnail camera RAW files.");
+ g_option_context_add_main_entries (context, entries, GETTEXT_PACKAGE);
+- g_type_init ();
+
+ if (g_option_context_parse (context, &argc, &argv, &err) == FALSE) {
+ g_print ("couldn't parse command-line options: %s\n", err->message);
+@@ -161,4 +155,3 @@ int main (int argc, char ** argv)
+ return 0;
+ }
+
+-
+--
+2.12.2
+
diff --git a/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch
new file mode 100644
index 000000000000..def91cb3fb39
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-fix-downscale.patch
@@ -0,0 +1,35 @@
+From 5a03b1a9ffece1d38cc0cf91c599975b9f2b028e Mon Sep 17 00:00:00 2001
+From: Anton Keks <anton@codeborne.com>
+Date: Thu, 2 Jan 2014 23:44:03 +0200
+Subject: [PATCH 1/7] downscale thumbnail if requested size is smaller than it
+ is, do not hardcode 128
+
+---
+ src/raw-thumbnailer.c | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/src/raw-thumbnailer.c b/src/raw-thumbnailer.c
+index b32bc49..135dbe3 100644
+--- a/src/raw-thumbnailer.c
++++ b/src/raw-thumbnailer.c
+@@ -47,7 +47,7 @@ save_pixbuf (GdkPixbuf *pixbuf, const char *path, int size)
+ height = gdk_pixbuf_get_height (pixbuf);
+ width = gdk_pixbuf_get_width (pixbuf);
+
+- if (size <= 128) {
++ if (size < height || size < width) {
+ int d_width, d_height;
+
+ if (width > height) {
+@@ -143,7 +143,7 @@ int main (int argc, char ** argv)
+
+ char* inputfname = g_filename_from_uri (uri, NULL, NULL);
+ g_free(uri);
+-
++
+ pixbuf = or_gdkpixbuf_extract_rotated_thumbnail(inputfname, output_size);
+ g_free(inputfname);
+
+--
+2.12.2
+
diff --git a/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch
new file mode 100644
index 000000000000..50e5433809a0
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/files/gnome-raw-thumbnailer-3.0.0-libopenraw-0.1.patch
@@ -0,0 +1,25 @@
+From 5cc4ad36b9f25f6973ae48166595d201f215a012 Mon Sep 17 00:00:00 2001
+From: Gilles Dartiguelongue <eva@gentoo.org>
+Date: Sun, 16 Apr 2017 16:50:00 +0200
+Subject: [PATCH] Update pkgconfig name of libopenraw
+
+---
+ configure.ac | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/configure.ac b/configure.ac
+index 0f637b5..26dbf5a 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -22,7 +22,7 @@ PKG_CHECK_MODULES(GNOME, gdk-pixbuf-2.0 gio-2.0 glib-2.0)
+ AC_SUBST(GNOME_CFLAGS)
+ AC_SUBST(GNOME_LIBS)
+
+-PKG_CHECK_MODULES(OPENRAW, libopenraw-gnome-1.0 >= 0.0.9)
++PKG_CHECK_MODULES(OPENRAW, libopenraw-gnome-0.1 >= 0.1.0)
+ AC_SUBST(OPENRAW_CFLAGS)
+ AC_SUBST(OPENRAW_LIBS)
+
+--
+2.12.2
+
diff --git a/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild
new file mode 100644
index 000000000000..710d2a6cde41
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools gnome2
+
+MY_P="${PN/gnome-}-${PV}"
+
+DESCRIPTION="A lightweight and fast raw image thumbnailer for GNOME"
+HOMEPAGE="https://libopenraw.freedesktop.org/wiki/RawThumbnailer"
+SRC_URI="https://libopenraw.freedesktop.org/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/libopenraw-0.1.0[gtk]
+ >=x11-libs/gdk-pixbuf-2:2
+ >=dev-libs/glib-2.26:2
+ !media-gfx/raw-thumbnailer
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ gnome-base/gnome-common
+ sys-devel/gettext
+ virtual/pkgconfig
+"
+
+S="${WORKDIR}/${MY_P}"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-deprecation-warning.patch
+ "${FILESDIR}"/${P}-fix-downscale.patch
+ "${FILESDIR}"/${P}-libopenraw-0.1.patch
+)
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild
new file mode 100644
index 000000000000..b42ec755b1f2
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/gnome-raw-thumbnailer-3.0.0.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit gnome2
+
+MY_P="${PN/gnome-}-${PV}"
+
+DESCRIPTION="A lightweight and fast raw image thumbnailer for GNOME"
+HOMEPAGE="https://libopenraw.freedesktop.org/wiki/RawThumbnailer"
+SRC_URI="https://libopenraw.freedesktop.org/download/${MY_P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+RDEPEND="
+ >=media-libs/libopenraw-0.0.9[gtk]
+ >=x11-libs/gdk-pixbuf-2:2
+ >=dev-libs/glib-2.26:2
+ !media-gfx/raw-thumbnailer
+"
+DEPEND="${RDEPEND}
+ dev-util/intltool
+ virtual/pkgconfig
+ sys-devel/gettext
+"
+
+S="${WORKDIR}/${MY_P}"
diff --git a/media-gfx/gnome-raw-thumbnailer/metadata.xml b/media-gfx/gnome-raw-thumbnailer/metadata.xml
new file mode 100644
index 000000000000..4cbddcaa19ad
--- /dev/null
+++ b/media-gfx/gnome-raw-thumbnailer/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </maintainer>
+</pkgmetadata>