Import simple-scan-0.9.7
Simple Scan is an easy-to-use application, designed to let users connect their scanner and quickly have the image/document in an appropriate format. Simple Scan is basically a frontend for SANE which means that all SANE supported scanners will work and the interface is well tested.
This commit is contained in:
parent
a969ed49e7
commit
34fa6b7d4b
49
graphics/simple-scan/Makefile
Normal file
49
graphics/simple-scan/Makefile
Normal file
@ -0,0 +1,49 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2010/03/22 22:33:15 ajacoutot Exp $
|
||||
|
||||
COMMENT= simple scanning utility
|
||||
|
||||
GNOME_PROJECT= simple-scan
|
||||
GNOME_VERSION= 0.9.7
|
||||
|
||||
EXTRACT_SUFX= .tar.gz
|
||||
|
||||
CATEGORIES= graphics
|
||||
|
||||
HOMEPAGE= https://launchpad.net/simple-scan
|
||||
|
||||
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
||||
|
||||
# GPLv3
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += ORBit-2 X11 Xau Xcomposite Xcursor Xdamage Xdmcp Xext
|
||||
WANTLIB += Xfixes Xi Xinerama Xrandr Xrender atk-1.0 c cairo dbus-1
|
||||
WANTLIB += expat fontconfig freetype gdk-x11-2.0 gdk_pixbuf-2.0
|
||||
WANTLIB += gio-2.0 glib-2.0 glitz gmodule-2.0 gobject-2.0 gthread-2.0
|
||||
WANTLIB += gtk-x11-2.0 m pango-1.0 pangocairo-1.0 pangoft2-1.0
|
||||
WANTLIB += pixman-1 png pthread pthread-stubs xcb z
|
||||
|
||||
MASTER_SITES= http://people.ubuntu.com/~robert-ancell/simple-scan/
|
||||
|
||||
MODULES= devel/gettext \
|
||||
x11/gnome \
|
||||
devel/gconf2
|
||||
|
||||
LIB_DEPENDS= sane.>=2::graphics/sane-backends
|
||||
|
||||
DESKTOP_FILES= Yes
|
||||
MODGNOME_HELP_FILES= Yes
|
||||
MODGCONF2_SCHEMAS_DIR= simple-scan
|
||||
|
||||
USE_X11= Yes
|
||||
USE_GMAKE= Yes
|
||||
|
||||
CONFIGURE_STYLE=gnu
|
||||
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
||||
LDFLAGS="-L${LOCALBASE}/lib"
|
||||
CONFIGURE_ARGS= ${CONFIGURED_SHARED}
|
||||
|
||||
.include <bsd.port.mk>
|
5
graphics/simple-scan/distinfo
Normal file
5
graphics/simple-scan/distinfo
Normal file
@ -0,0 +1,5 @@
|
||||
MD5 (simple-scan-0.9.7.tar.gz) = ziiQ1OSaMbO40RAsYvqusw==
|
||||
RMD160 (simple-scan-0.9.7.tar.gz) = huX4n2LVvl7suBaYAWTffhUuTn8=
|
||||
SHA1 (simple-scan-0.9.7.tar.gz) = YFtpEYj6Uooh2yKlqdwWDhw7Oqc=
|
||||
SHA256 (simple-scan-0.9.7.tar.gz) = 0VxM5mp/59B+8WkinRLYirzTmmQi7BKP+i5dE000ts8=
|
||||
SIZE (simple-scan-0.9.7.tar.gz) = 241716
|
75
graphics/simple-scan/patches/patch-configure
Normal file
75
graphics/simple-scan/patches/patch-configure
Normal file
@ -0,0 +1,75 @@
|
||||
$OpenBSD: patch-configure,v 1.1.1.1 2010/03/22 22:33:15 ajacoutot Exp $
|
||||
--- configure.orig Sat Mar 13 09:34:20 2010
|
||||
+++ configure Sat Mar 13 09:34:36 2010
|
||||
@@ -5244,7 +5244,6 @@ if test -n "$PKG_CONFIG"; then
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
\""; } >&5
|
||||
($PKG_CONFIG --exists --print-errors "
|
||||
gtk+-2.0
|
||||
@@ -5254,7 +5253,6 @@ if test -n "$PKG_CONFIG"; then
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
@@ -5267,7 +5265,6 @@ if test -n "$PKG_CONFIG"; then
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
" 2>/dev/null`
|
||||
else
|
||||
pkg_failed=yes
|
||||
@@ -5289,7 +5286,6 @@ if test -n "$PKG_CONFIG"; then
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
\""; } >&5
|
||||
($PKG_CONFIG --exists --print-errors "
|
||||
gtk+-2.0
|
||||
@@ -5299,7 +5295,6 @@ if test -n "$PKG_CONFIG"; then
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
") 2>&5
|
||||
ac_status=$?
|
||||
$as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||
@@ -5312,7 +5307,6 @@ if test -n "$PKG_CONFIG"; then
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
" 2>/dev/null`
|
||||
else
|
||||
pkg_failed=yes
|
||||
@@ -5340,7 +5334,6 @@ fi
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
"`
|
||||
else
|
||||
SIMPLE_SCAN_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "
|
||||
@@ -5351,7 +5344,6 @@ fi
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
"`
|
||||
fi
|
||||
# Put the nasty error message in config.log where it belongs
|
||||
@@ -5365,7 +5357,6 @@ fi
|
||||
cairo
|
||||
gdk-pixbuf-2.0
|
||||
cairo-pdf
|
||||
- gudev-1.0
|
||||
) were not met:
|
||||
|
||||
$SIMPLE_SCAN_PKG_ERRORS
|
49
graphics/simple-scan/patches/patch-src_simple-scan_c
Normal file
49
graphics/simple-scan/patches/patch-src_simple-scan_c
Normal file
@ -0,0 +1,49 @@
|
||||
$OpenBSD: patch-src_simple-scan_c,v 1.1.1.1 2010/03/22 22:33:15 ajacoutot Exp $
|
||||
|
||||
No gudev under OpenBSD.
|
||||
|
||||
--- src/simple-scan.c.orig Sat Mar 13 09:34:47 2010
|
||||
+++ src/simple-scan.c Sat Mar 13 09:36:03 2010
|
||||
@@ -14,7 +14,9 @@
|
||||
#include <glib/gi18n.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include <unistd.h>
|
||||
+#ifndef __OpenBSD__
|
||||
#include <gudev/gudev.h>
|
||||
+#endif
|
||||
|
||||
#include <sane/sane.h> // For SANE_STATUS_CANCELLED
|
||||
|
||||
@@ -493,17 +495,21 @@ get_options (int argc, char **argv)
|
||||
}
|
||||
|
||||
|
||||
+#ifndef __OpenBSD__
|
||||
static void
|
||||
on_uevent (GUdevClient *client, const gchar *action, GUdevDevice *device)
|
||||
{
|
||||
scanner_redetect (scanner);
|
||||
}
|
||||
+#endif
|
||||
|
||||
int
|
||||
main (int argc, char **argv)
|
||||
{
|
||||
+#ifndef __OpenBSD__
|
||||
GUdevClient *udev_client;
|
||||
const char *udev_subsystems[] = { "usb", NULL };
|
||||
+#endif
|
||||
gchar *path;
|
||||
|
||||
g_thread_init (NULL);
|
||||
@@ -547,8 +553,10 @@ main (int argc, char **argv)
|
||||
g_signal_connect (G_OBJECT (scanner), "scan-failed", G_CALLBACK (scanner_failed_cb), NULL);
|
||||
g_signal_connect (G_OBJECT (scanner), "scanning-changed", G_CALLBACK (scanner_scanning_changed_cb), NULL);
|
||||
|
||||
+#ifndef __OpenBSD__
|
||||
udev_client = g_udev_client_new (udev_subsystems);
|
||||
g_signal_connect (udev_client, "uevent", G_CALLBACK (on_uevent), NULL);
|
||||
+#endif
|
||||
|
||||
if (default_device)
|
||||
ui_set_selected_device (ui, default_device);
|
5
graphics/simple-scan/pkg/DESCR
Normal file
5
graphics/simple-scan/pkg/DESCR
Normal file
@ -0,0 +1,5 @@
|
||||
Simple Scan is an easy-to-use application, designed to let users connect
|
||||
their scanner and quickly have the image/document in an appropriate
|
||||
format.
|
||||
Simple Scan is basically a frontend for SANE which means that all
|
||||
SANE supported scanners will work and the interface is well tested.
|
64
graphics/simple-scan/pkg/PLIST
Normal file
64
graphics/simple-scan/pkg/PLIST
Normal file
@ -0,0 +1,64 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2010/03/22 22:33:15 ajacoutot Exp $
|
||||
@bin bin/simple-scan
|
||||
@man man/man1/simple-scan.1
|
||||
share/applications/simple-scan.desktop
|
||||
share/gnome/help/simple-scan/
|
||||
share/gnome/help/simple-scan/C/
|
||||
share/gnome/help/simple-scan/C/adf.page
|
||||
share/gnome/help/simple-scan/C/crop.page
|
||||
share/gnome/help/simple-scan/C/dpi.page
|
||||
share/gnome/help/simple-scan/C/edit.page
|
||||
share/gnome/help/simple-scan/C/email.page
|
||||
share/gnome/help/simple-scan/C/index.page
|
||||
share/gnome/help/simple-scan/C/legal.xml
|
||||
share/gnome/help/simple-scan/C/print.page
|
||||
share/gnome/help/simple-scan/C/rotate.page
|
||||
share/gnome/help/simple-scan/C/save.page
|
||||
share/gnome/help/simple-scan/C/scanner.page
|
||||
share/gnome/help/simple-scan/C/scanning.page
|
||||
share/locale/af/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ar/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ast/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/bg/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ca/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/cs/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/da/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/de/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/el/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/en_GB/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/es/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/eu/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/fi/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/fr/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/gl/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/he/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/hr/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/hu/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/it/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ja/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/lt/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ms/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/nb/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/nl/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/pl/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/pt/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/pt_BR/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ro/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/ru/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/sk/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/sl/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/sr/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/sv/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/te/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/tr/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/uk/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/vi/LC_MESSAGES/simple-scan.mo
|
||||
share/locale/zh_CN/LC_MESSAGES/simple-scan.mo
|
||||
@unexec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-uninstall-rule %D/${SCHEMAS_INSTDIR}/*.schemas > /dev/null
|
||||
${SCHEMAS_INSTDIR}/
|
||||
${SCHEMAS_INSTDIR}/simple-scan.schemas
|
||||
@exec GCONF_CONFIG_SOURCE=`%D/bin/gconftool-2 --get-default-source` %D/bin/gconftool-2 --makefile-install-rule %D/${SCHEMAS_INSTDIR}/*.schemas > /dev/null
|
||||
share/simple-scan/
|
||||
share/simple-scan/simple-scan.ui
|
||||
@exec %D/bin/update-desktop-database
|
||||
@unexec-delete %D/bin/update-desktop-database
|
Loading…
Reference in New Issue
Block a user