1 |
commit: 773d92d24311abd5b5e9b12437008e33854edc22 |
2 |
Author: Sebastian Pipping <sebastian <AT> pipping <DOT> org> |
3 |
AuthorDate: Mon Sep 30 19:53:06 2013 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 30 19:53:06 2013 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/betagarden.git;a=commit;h=773d92d2 |
7 |
|
8 |
x11-misc/slinp: 13.06 |
9 |
|
10 |
--- |
11 |
.../files/slinp-13.06-prescontrol-crash.patch | 37 ++++++++++++++++++++++ |
12 |
x11-misc/slinp/slinp-13.06.ebuild | 34 ++++++++++++++++++++ |
13 |
2 files changed, 71 insertions(+) |
14 |
|
15 |
diff --git a/x11-misc/slinp/files/slinp-13.06-prescontrol-crash.patch b/x11-misc/slinp/files/slinp-13.06-prescontrol-crash.patch |
16 |
new file mode 100644 |
17 |
index 0000000..f29b470 |
18 |
--- /dev/null |
19 |
+++ b/x11-misc/slinp/files/slinp-13.06-prescontrol-crash.patch |
20 |
@@ -0,0 +1,37 @@ |
21 |
+From 84f992951cb1938ad2007f135ced3d4aaf248fe5 Mon Sep 17 00:00:00 2001 |
22 |
+From: Sebastian Pipping <sebastian@×××××××.org> |
23 |
+Date: Mon, 30 Sep 2013 21:48:33 +0200 |
24 |
+Subject: [PATCH] Fix prescontrol crash at start-up |
25 |
+ |
26 |
+$ ./prescontrol/prescontrol file.pdf |
27 |
+Traceback (most recent call last): |
28 |
+ File "./prescontrol/prescontrol", line 185, in <module> |
29 |
+ curses.wrapper(application, args) |
30 |
+ File "/usr/lib64/python3.2/curses/wrapper.py", line 43, in wrapper |
31 |
+ return func(stdscr, *args, **kwds) |
32 |
+ File "./prescontrol/prescontrol", line 167, in application |
33 |
+ p.launch_preview_range(-args.left, args.right) |
34 |
+AttributeError: 'Namespace' object has no attribute 'left' |
35 |
+--- |
36 |
+ prescontrol/prescontrol | 4 ++-- |
37 |
+ 1 file changed, 2 insertions(+), 2 deletions(-) |
38 |
+ |
39 |
+diff --git a/prescontrol/prescontrol b/prescontrol/prescontrol |
40 |
+index 98d07b0..af2ef5d 100755 |
41 |
+--- a/prescontrol/prescontrol |
42 |
++++ b/prescontrol/prescontrol |
43 |
+@@ -175,9 +175,9 @@ if __name__ == '__main__': |
44 |
+ parser = argparse.ArgumentParser() |
45 |
+ parser.add_argument('filename', metavar='FILE', |
46 |
+ help='path to PDF file') |
47 |
+- parser.add_argument('-l', metavar='LEFT', type=int, default=1, |
48 |
++ parser.add_argument('-l', '--left', metavar='LEFT', type=int, default=1, |
49 |
+ help='number of previous slides to show') |
50 |
+- parser.add_argument('-r', metavar='RIGHT', type=int, default=1, |
51 |
++ parser.add_argument('-r', '--right', metavar='RIGHT', type=int, default=1, |
52 |
+ help='number of upcoming slides to show') |
53 |
+ args = parser.parse_args() |
54 |
+ |
55 |
+-- |
56 |
+1.8.2.1 |
57 |
+ |
58 |
|
59 |
diff --git a/x11-misc/slinp/slinp-13.06.ebuild b/x11-misc/slinp/slinp-13.06.ebuild |
60 |
new file mode 100644 |
61 |
index 0000000..dd77143 |
62 |
--- /dev/null |
63 |
+++ b/x11-misc/slinp/slinp-13.06.ebuild |
64 |
@@ -0,0 +1,34 @@ |
65 |
+# Copyright 1999-2013 Gentoo Foundation |
66 |
+# Distributed under the terms of the GNU General Public License v2 |
67 |
+# $Header: $ |
68 |
+ |
69 |
+EAPI="4" |
70 |
+ |
71 |
+PYTHON_COMPAT=( python{3_2,3_3} ) |
72 |
+inherit eutils python-any-r1 |
73 |
+ |
74 |
+DESCRIPTION="PDF presentation tool chest, successor to x11-misc/pdfpres" |
75 |
+HOMEPAGE="http://www.uninformativ.de/projects/?q=slinp" |
76 |
+SRC_URI="https://github.com/vain/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
77 |
+ |
78 |
+LICENSE="PIZZA-WARE-42" |
79 |
+SLOT="0" |
80 |
+KEYWORDS="~amd64 ~x86" |
81 |
+IUSE="" |
82 |
+ |
83 |
+DEPEND="app-text/poppler |
84 |
+ || ( virtual/python-argparse[python_targets_python3_2] |
85 |
+ virtual/python-argparse[python_targets_python3_3] ) |
86 |
+ x11-libs/gtk+:3" |
87 |
+RDEPEND="${DEPEND} |
88 |
+ ${PYTHON_DEPS} |
89 |
+ sys-apps/sed" |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ epatch "${FILESDIR}"/${P}-prescontrol-crash.patch |
93 |
+} |
94 |
+ |
95 |
+src_install() { |
96 |
+ emake DESTDIR="${D}" prefix=/usr install |
97 |
+ dodoc README.md |
98 |
+} |