add sane-frontendssane-frontends includes the scanadf and xcam programs

This commit is contained in:
groni
2016-01-26 17:50:19 +01:00
parent 23dfb7c664
commit 0d679b6988
9 changed files with 220 additions and 2 deletions
@@ -0,0 +1,25 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/licenses/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import pisitools
from pisi.actionsapi import get
def setup():
autotools.configure("--with-gnu-ld")
def build():
autotools.make()
def install():
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
pisitools.dodoc("AUTHORS", "COPYING", "README")
# There's xsane instead
pisitools.remove("/usr/bin/xscanimage")
pisitools.remove("/usr/share/man/man1/xscanimage.1")
pisitools.removeDir("/usr/share/sane")
@@ -0,0 +1,40 @@
commit c4cb247732767aed76502069d0b3040c4c4e5123
Author: Nils Philippsen <nils@redhat.com>
Date: Fri Jul 31 16:21:53 2009 +0200
patch: array-out-of-bounds
Squashed commit of the following:
commit 337bcefaa7a67931095b74317a266a1244978ab6
Author: Nils Philippsen <nils@redhat.com>
Date: Fri Jul 31 16:03:28 2009 +0200
fix array subscript out of bounds errors (#133121)
diff --git a/src/xcam.c b/src/xcam.c
index 2d494a5..f6859b7 100644
--- a/src/xcam.c
+++ b/src/xcam.c
@@ -1289,7 +1289,7 @@ save_frame_button (GtkWidget * widget, gpointer client_data,
/* test for pnm formats */
strncpy (testfilename, preferences.filename, sizeof (testfilename));
- testfilename[sizeof (testfilename)] = 0;
+ testfilename[sizeof (testfilename) - 1] = 0;
g_strreverse (testfilename);
if (!((!strncmp (testfilename, "mnp.", 4)) ||
(!strncmp (testfilename, "mgp.", 4)) ||
diff --git a/src/xscanimage.c b/src/xscanimage.c
index a36324f..065923d 100644
--- a/src/xscanimage.c
+++ b/src/xscanimage.c
@@ -1284,7 +1284,7 @@ scan_dialog (GtkWidget * widget, gpointer call_data)
{ /* We are running in standalone mode */
/* test for pnm formats */
strncpy (testfilename, preferences.filename, sizeof (testfilename));
- testfilename[sizeof (testfilename)] = 0;
+ testfilename[sizeof (testfilename) - 1] = 0;
g_strreverse (testfilename);
if (!((!strncmp (testfilename, "mnp.", 4)) ||
(!strncmp (testfilename, "mgp.", 4)) ||
@@ -0,0 +1,31 @@
commit ddd90b1502a263d03938b1e45a57684d576993ba
Author: Nils Philippsen <nils@redhat.com>
Date: Fri Jul 31 16:25:58 2009 +0200
patch: sane-backends-1.0.20
Squashed commit of the following:
commit 0c84326fa37bb309481c4d2658ab6cb17c9f0e85
Author: Nils Philippsen <nils@redhat.com>
Date: Fri Jul 31 16:18:59 2009 +0200
use SANE_CAP_ALWAYS_SETTABLE only if available
diff --git a/src/gtkglue.c b/src/gtkglue.c
index ba5cbf5..ec81f45 100644
--- a/src/gtkglue.c
+++ b/src/gtkglue.c
@@ -1476,8 +1476,12 @@ gsg_set_sensitivity (GSGDialog * dialog, int sensitive)
|| opt->type == SANE_TYPE_GROUP || !dialog->element[i].widget)
continue;
+#ifdef SANE_CAP_ALWAYS_SETTABLE
if (!(opt->cap & SANE_CAP_ALWAYS_SETTABLE))
gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
+#else
+ gtk_widget_set_sensitive (dialog->element[i].widget, sensitive);
+#endif
}
}
@@ -0,0 +1,57 @@
<?xml version="1.0"?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>sane-frontends</Name>
<Homepage>http://www.sane-project.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>app:console</IsA>
<Summary>Graphical frontend to SANE</Summary>
<Description>sane-frontends includes the scanadf and xcam programs.</Description>
<Archive sha1sum="063e11df3e32d7a43161fd37026a4dc601d5482d" type="targz">ftp://ftp.uwsg.indiana.edu/linux/gentoo/distfiles/sane-frontends-1.0.14.tar.gz</Archive>
<BuildDependencies>
<Dependency>sane-backends-devel</Dependency>
<Dependency>gimp-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">sane-frontends-1.0.14-array-out-of-bounds.patch</Patch>
<Patch level="1">sane-frontends-1.0.14-sane-backends-1.0.20.patch</Patch>
</Patches>
</Source>
<Package>
<Name>sane-frontends</Name>
<RuntimeDependencies>
<Dependency>sane-backends</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>glib2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc/sane-frontends</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2014-03-10</Date>
<Version>1.0.14</Version>
<Comment>Rebuild</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-02-28</Date>
<Version>1.0.14</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</PISI>
@@ -0,0 +1,8 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>sane-frontends</Name>
<Summary xml:lang="tr">SANE için grafiksel arayüz paketi</Summary>
<Description xml:lang="tr">sane-frontends, scanadf ve xcam grafiksel araçlarını içerir.</Description>
</Source>
</PISI>
+57
View File
@@ -18435,6 +18435,63 @@
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>sane-frontends</Name>
<Homepage>http://www.sane-project.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>GPLv2+</License>
<IsA>app:console</IsA>
<PartOf>hardware.scanner</PartOf>
<Summary xml:lang="en">Graphical frontend to SANE</Summary>
<Summary xml:lang="tr">SANE için grafiksel arayüz paketi</Summary>
<Description xml:lang="en">sane-frontends includes the scanadf and xcam programs.</Description>
<Description xml:lang="tr">sane-frontends, scanadf ve xcam grafiksel araçlarını içerir.</Description>
<Archive type="targz" sha1sum="063e11df3e32d7a43161fd37026a4dc601d5482d">ftp://ftp.uwsg.indiana.edu/linux/gentoo/distfiles/sane-frontends-1.0.14.tar.gz</Archive>
<BuildDependencies>
<Dependency>sane-backends-devel</Dependency>
<Dependency>gimp-devel</Dependency>
<Dependency>gtk2-devel</Dependency>
</BuildDependencies>
<Patches>
<Patch level="1">sane-frontends-1.0.14-array-out-of-bounds.patch</Patch>
<Patch level="1">sane-frontends-1.0.14-sane-backends-1.0.20.patch</Patch>
</Patches>
<SourceURI>hardware/scannner/sane-frontends/pspec.xml</SourceURI>
</Source>
<Package>
<Name>sane-frontends</Name>
<RuntimeDependencies>
<Dependency>sane-backends</Dependency>
<Dependency>gtk2</Dependency>
<Dependency>glib2</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="doc">/usr/share/doc/sane-frontends</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<History>
<Update release="2">
<Date>2014-03-10</Date>
<Version>1.0.14</Version>
<Comment>Rebuild</Comment>
<Name>Varol Maksutoğlu</Name>
<Email>waroi@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2011-02-28</Date>
<Version>1.0.14</Version>
<Comment>First release</Comment>
<Name>Pisi Linux Admins</Name>
<Email>admins@pisilinux.org</Email>
</Update>
</History>
</SpecFile>
<SpecFile>
<Source>
<Name>sane-backends</Name>
+1 -1
View File
@@ -1 +1 @@
20b22352139ac6a31b0ee79636e9ef0f2bfc5496
161091cb03e33c6950ce38056889e3157c84879d
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -1 +1 @@
b6d1c8b98fcdda62e8e02b82a12e6419bd16f4ac
e7180d7512067ad8df7faef10326d7797fe747a2