1 |
commit: 109f3017d88392afc0ceaf5216454828c007f344 |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Aug 23 16:51:08 2019 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Aug 23 16:54:45 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=109f3017 |
7 |
|
8 |
media-libs/libinsane: initial import |
9 |
|
10 |
New dependency for app-text/paperwork |
11 |
|
12 |
Package-Manager: Portage-2.3.72, Repoman-2.3.17 |
13 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
14 |
|
15 |
media-libs/libinsane/Manifest | 1 + |
16 |
.../files/libinsane-1.0.1-meson_options.patch | 39 ++++++++++++++++++ |
17 |
media-libs/libinsane/libinsane-1.0.1.ebuild | 46 ++++++++++++++++++++++ |
18 |
media-libs/libinsane/metadata.xml | 20 ++++++++++ |
19 |
4 files changed, 106 insertions(+) |
20 |
|
21 |
diff --git a/media-libs/libinsane/Manifest b/media-libs/libinsane/Manifest |
22 |
new file mode 100644 |
23 |
index 00000000000..aa253766695 |
24 |
--- /dev/null |
25 |
+++ b/media-libs/libinsane/Manifest |
26 |
@@ -0,0 +1 @@ |
27 |
+DIST libinsane-1.0.1.tar.gz 706575 BLAKE2B 32ae63c275e6e9c709aefd0c6ed2237df70ad027626cf6ded2009071c74ce925d50ab730bd36b677915d2bd6e606d6337e890cfcc3e8bf4a1f281e026140537a SHA512 1b7091b207b8ea559f21084aa8231c62f34dfa6043e9f358d55708006989c50ee131011dbe5bd03bcd1212cd0219ae9d65a544e57cf3a71c4c2f65e5d89257bc |
28 |
|
29 |
diff --git a/media-libs/libinsane/files/libinsane-1.0.1-meson_options.patch b/media-libs/libinsane/files/libinsane-1.0.1-meson_options.patch |
30 |
new file mode 100644 |
31 |
index 00000000000..a56bba0c16f |
32 |
--- /dev/null |
33 |
+++ b/media-libs/libinsane/files/libinsane-1.0.1-meson_options.patch |
34 |
@@ -0,0 +1,39 @@ |
35 |
+diff -Naur libinsane-1.0.1.orig/meson_options.txt libinsane-1.0.1/meson_options.txt |
36 |
+--- libinsane-1.0.1.orig/meson_options.txt 1970-01-01 01:00:00.000000000 +0100 |
37 |
++++ libinsane-1.0.1/meson_options.txt 2019-08-23 15:14:21.374086921 +0200 |
38 |
+@@ -0,0 +1 @@ |
39 |
++option('doc', type: 'boolean', value: true, yield: true) |
40 |
+diff -Naur libinsane-1.0.1.orig/subprojects/libinsane/meson.build libinsane-1.0.1/subprojects/libinsane/meson.build |
41 |
+--- libinsane-1.0.1.orig/subprojects/libinsane/meson.build 2019-08-18 13:09:37.000000000 +0200 |
42 |
++++ libinsane-1.0.1/subprojects/libinsane/meson.build 2019-08-23 15:16:14.289190985 +0200 |
43 |
+@@ -22,6 +22,8 @@ |
44 |
+ subdir('include') |
45 |
+ subdir('src') |
46 |
+ |
47 |
+-subdir('doc') |
48 |
++if get_option('doc') |
49 |
++ subdir('doc') |
50 |
++endif |
51 |
+ subdir('examples') |
52 |
+ subdir('tests') |
53 |
+diff -Naur libinsane-1.0.1.orig/subprojects/libinsane/meson_options.txt libinsane-1.0.1/subprojects/libinsane/meson_options.txt |
54 |
+--- libinsane-1.0.1.orig/subprojects/libinsane/meson_options.txt 1970-01-01 01:00:00.000000000 +0100 |
55 |
++++ libinsane-1.0.1/subprojects/libinsane/meson_options.txt 2019-08-23 15:14:51.290114436 +0200 |
56 |
+@@ -0,0 +1 @@ |
57 |
++option('doc', type: 'boolean', value: true, yield: true) |
58 |
+diff -Naur libinsane-1.0.1.orig/subprojects/libinsane-gobject/meson.build libinsane-1.0.1/subprojects/libinsane-gobject/meson.build |
59 |
+--- libinsane-1.0.1.orig/subprojects/libinsane-gobject/meson.build 2019-08-18 13:09:37.000000000 +0200 |
60 |
++++ libinsane-1.0.1/subprojects/libinsane-gobject/meson.build 2019-08-23 15:15:25.593146036 +0200 |
61 |
+@@ -9,4 +9,6 @@ |
62 |
+ |
63 |
+ subdir('include') |
64 |
+ subdir('src') |
65 |
+-subdir('doc') |
66 |
++if get_option('doc') |
67 |
++ subdir('doc') |
68 |
++endif |
69 |
+diff -Naur libinsane-1.0.1.orig/subprojects/libinsane-gobject/meson_options.txt libinsane-1.0.1/subprojects/libinsane-gobject/meson_options.txt |
70 |
+--- libinsane-1.0.1.orig/subprojects/libinsane-gobject/meson_options.txt 1970-01-01 01:00:00.000000000 +0100 |
71 |
++++ libinsane-1.0.1/subprojects/libinsane-gobject/meson_options.txt 2019-08-23 15:14:53.859116801 +0200 |
72 |
+@@ -0,0 +1 @@ |
73 |
++option('doc', type: 'boolean', value: true, yield: true) |
74 |
|
75 |
diff --git a/media-libs/libinsane/libinsane-1.0.1.ebuild b/media-libs/libinsane/libinsane-1.0.1.ebuild |
76 |
new file mode 100644 |
77 |
index 00000000000..a2d1169ab99 |
78 |
--- /dev/null |
79 |
+++ b/media-libs/libinsane/libinsane-1.0.1.ebuild |
80 |
@@ -0,0 +1,46 @@ |
81 |
+# Copyright 1999-2019 Gentoo Authors |
82 |
+# Distributed under the terms of the GNU General Public License v2 |
83 |
+ |
84 |
+EAPI=7 |
85 |
+inherit meson vala |
86 |
+ |
87 |
+DESCRIPTION="Crossplatform access to image scanners" |
88 |
+HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork/libinsane" |
89 |
+SRC_URI="https://gitlab.gnome.org/World/OpenPaperwork/libinsane/-/archive/${PV}/${P}.tar.gz" |
90 |
+ |
91 |
+LICENSE="LGPL-3+" |
92 |
+SLOT="0" |
93 |
+KEYWORDS="~amd64 ~x86" |
94 |
+IUSE="doc gtk-doc test" |
95 |
+ |
96 |
+RDEPEND="media-gfx/sane-backends" |
97 |
+DEPEND="${RDEPEND} |
98 |
+ doc? ( |
99 |
+ app-doc/doxygen |
100 |
+ dev-util/gtk-doc |
101 |
+ ) |
102 |
+ test? ( |
103 |
+ dev-util/cunit |
104 |
+ dev-util/valgrind |
105 |
+ )" |
106 |
+ |
107 |
+BDEPEND="virtual/pkgconfig |
108 |
+ $(vala_depend)" |
109 |
+ |
110 |
+# Tests require an operational valgrind |
111 |
+# https://wiki.gentoo.org/wiki/Debugging |
112 |
+RESTRICT="test" |
113 |
+: |
114 |
+PATCHES=( "${FILESDIR}"/${P}-meson_options.patch ) |
115 |
+ |
116 |
+src_prepare() { |
117 |
+ vala_src_prepare |
118 |
+ default |
119 |
+} |
120 |
+ |
121 |
+src_configure() { |
122 |
+ local emesonargs=( |
123 |
+ $(meson_use doc doc) |
124 |
+ ) |
125 |
+ meson_src_configure |
126 |
+} |
127 |
|
128 |
diff --git a/media-libs/libinsane/metadata.xml b/media-libs/libinsane/metadata.xml |
129 |
new file mode 100644 |
130 |
index 00000000000..2b345ff1a9a |
131 |
--- /dev/null |
132 |
+++ b/media-libs/libinsane/metadata.xml |
133 |
@@ -0,0 +1,20 @@ |
134 |
+<?xml version="1.0" encoding="UTF-8"?> |
135 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
136 |
+<pkgmetadata> |
137 |
+ <maintainer type="person"> |
138 |
+ <email>voyageur@g.o</email> |
139 |
+ <name>Bernard Cafarelli</name> |
140 |
+ </maintainer> |
141 |
+ <longdescription lang="en"> |
142 |
+Libinsane is the library to access scanners on both Linux and Windows. It's cross-platform, cross-programming languages, cross-scanners :-). It takes care of all the quirks of all the platforms and scanners |
143 |
+ |
144 |
+It has however some limitations: |
145 |
+ |
146 |
+* It is only designed to work with scanners, not webcams, not USB keys, etc (think paper-eaters only) |
147 |
+* TWAIN API may display some dialogs. Libinsane cannot prevent them. |
148 |
+* Full bed page scan only: Presence of the option to set the scan area cannot be guaranteed. You may have to crop the image later in your own application (see Paperwork for example). |
149 |
+* 24 bits color scans only (may be fixed later) |
150 |
+ |
151 |
+It is the successor of Pyinsane2 but shares no code with it. |
152 |
+ </longdescription> |
153 |
+</pkgmetadata> |