Git-Url: http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=bfceca1ad12f16b87089a75b8233a1b33f01faf7
commit bfceca1ad12f16b87089a75b8233a1b33f01faf7 Author: DeX77 <[email protected]> Date: Wed Sep 30 15:15:36 2015 +0200 gnome-scan-0.6.2-7-x86_64 * unable to rebuild * no upstream release since 2010 diff --git a/source/gnome-extra/gnome-scan/FrugalBuild b/source/gnome-extra/gnome-scan/FrugalBuild deleted file mode 100644 index 7b0d242..0000000 --- a/source/gnome-extra/gnome-scan/FrugalBuild +++ /dev/null @@ -1,37 +0,0 @@ -# Compiling Time: 0.32 SBU -# Maintainer: bouleetbil <[email protected]> - -pkgname=gnome-scan -pkgver=0.6.2 -pkgrel=6 -pkgdesc="Tools for scan easy in Gnome" -depends=('sane-backends' 'gconf>=2.28.0' 'gdk-pixbuf2' 'gtk+2>=2.20.0-2' 'gegl>=0.0.22-2' 'libglade>=2.6.4-2'\ - 'atk' 'pango>=1.24.2-2' 'libxinerama>=1.0.3-1' 'libxi>=1.2.1-1' 'libxrandr>=1.3.0-1' 'libxcursor>=1.1.9-2') -makedepends=('perl-xml-parser' 'intltool' 'gtk-doc' 'gnome-common' 'gimp') -archs=('i686' 'x86_64') -groups=('gnome-extra') -_F_gnome_desktop="y" -_F_gnome_iconcache="y" -Finclude gnome gnome-scriptlet -source=($source babl.diff) -sha1sums=('ab1b77d9efa57294c57482c5f667175c2ccd1f78' \ - '60c8b7148d29fac480551c620813af9153f5fa4b') - -subpkgs=("gnome-scan-gimp") -subdescs=("$pkgname gimp integration") -subdepends=("gimp") -subrodepends=("gnome-scan") -subgroups=('gnome-extra') -subarchs=('i686 x86_64') - -build() { - Fpatchall - Fautoreconf - Fmake - Fmakeinstall - Fsplit gnome-scan-gimp usr/share/icons/hicolor/scalable/apps/flegita-gimp.svg - Fsplit gnome-scan-gimp usr/lib/gimp - Fbuild_gnome_scriptlet -} - -# optimization OK diff --git a/source/gnome-extra/gnome-scan/babl.diff b/source/gnome-extra/gnome-scan/babl.diff deleted file mode 100644 index d3c5981..0000000 --- a/source/gnome-extra/gnome-scan/babl.diff +++ /dev/null @@ -1,80 +0,0 @@ ---- src/flegita-gimp-sink.c 2009-01-31 11:18:50.000000000 -0500 -+++ src/flegita-gimp-sink.c.new 2010-01-15 09:20:56.300741963 -0500 -@@ -46,7 +46,7 @@ - const GeglRectangle *extent; - GeglRectangle actual_extent; - gdouble res; -- BablFormat *format; -+ Babl *format; - guint image_type; - GimpPixelRgn rgn; - gpointer iter; -@@ -136,13 +136,13 @@ - fgs_create_image(FlegitaGimpSink *sink) - { - FlegitaGimpSinkPrivate *priv = GET_PRIVATE (sink); -- BablFormat *format = NULL; -+ Babl *format = NULL; - guint image_type = 0; - guint image_base_type = 0; - - g_object_get (priv->buffer, "format", &format, NULL); - -- switch (format->components) { -+ switch (babl_format_get_n_components(format)) { - case 1: - image_type = GIMP_GRAY_IMAGE; - image_base_type = GIMP_GRAY; -@@ -164,17 +164,19 @@ - - /* Compute babl format and update layer type according to image type - (not incomming gegl buffer type) */ --static BablFormat* -+static Babl* - fgs_compute_babl_format(FlegitaGimpSink *sink) - { - FlegitaGimpSinkPrivate *priv = GET_PRIVATE (sink); -- BablFormat *format = NULL; -+ Babl *format = NULL; - gchar*format_name = NULL; - gint i; - gint bps; - - g_object_get (priv->buffer, "format", &format, NULL); -- bps = format->type[0]->bits; -+ bps = 8; -+ if (babl_format_get_type (format, 0) != babl_type ("u8")) -+ bps = 16; - - switch (gimp_image_base_type(sink->image_ID)) { - case GIMP_GRAY: -@@ -187,16 +189,15 @@ - break; - } - -- for (i = 0; i < format->components; i++) { -- g_debug (G_STRLOC ": component %i:%s use %i bits",i, -- format->type[i]->instance.name, -- format->type[i]->bits); -+ for (i = 0; i < babl_format_get_n_components(format); i++) { -+ g_debug (G_STRLOC ": component %i:%s",i, -+ babl_get_name(babl_format_get_type(format, i))); - } - format_name = g_strdup_printf ("%s u%i", format_name, bps > 8 ? 16 : bps); - - g_debug("Format is %s", format_name); - -- return (BablFormat*) babl_format (format_name); -+ return (Babl*) babl_format (format_name); - } - - -@@ -278,7 +279,7 @@ - FlegitaGimpSinkPrivate *priv = GET_PRIVATE (plugin); - GimpPixelRgn *rgn = &priv->rgn; - -- gint chunk_size = rgn->w * rgn->h * priv->format->bytes_per_pixel; -+ gint chunk_size = rgn->w * rgn->h * babl_format_get_bytes_per_pixel(priv->format); - GeglRectangle rect = { - .x = rgn->x + priv->extent->x, - .y = rgn->y + priv->extent->y, _______________________________________________ Frugalware-git mailing list [email protected] http://frugalware.org/mailman/listinfo/frugalware-git
