1 |
commit: 8b6e14e4c2ed387c2cf5c978ea8859e8dc30cc59 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 3 07:58:44 2016 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 3 07:58:44 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8b6e14e4 |
7 |
|
8 |
dev-ruby/ruby-poppler: fix compilation with new poppler, bug 570634 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
.../ruby-poppler-3.0.7-type-orientation.patch | 27 ++++++++++++++++++ |
13 |
dev-ruby/ruby-poppler/ruby-poppler-3.0.7-r1.ebuild | 33 ++++++++++++++++++++++ |
14 |
2 files changed, 60 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/ruby-poppler/files/ruby-poppler-3.0.7-type-orientation.patch b/dev-ruby/ruby-poppler/files/ruby-poppler-3.0.7-type-orientation.patch |
17 |
new file mode 100644 |
18 |
index 0000000..50f5f52 |
19 |
--- /dev/null |
20 |
+++ b/dev-ruby/ruby-poppler/files/ruby-poppler-3.0.7-type-orientation.patch |
21 |
@@ -0,0 +1,27 @@ |
22 |
+From 3dda85661515d71101f1028dc7d68d4e53de45b1 Mon Sep 17 00:00:00 2001 |
23 |
+From: Kouhei Sutou <kou@××××××××××.com> |
24 |
+Date: Fri, 25 Dec 2015 23:36:00 +0900 |
25 |
+Subject: [PATCH] poppler: remove needless POPPLER_TYPE_ORIENTATION binding |
26 |
+ |
27 |
+Poppler 0.39 removed it. And there are no Poppler releases that use |
28 |
+POPPLER_TYPE_ORIENTATION. |
29 |
+ |
30 |
+GitHub: fix #653 |
31 |
+ |
32 |
+Reported by Rob Brackett. Thanks!!! |
33 |
+--- |
34 |
+ poppler/ext/poppler/rbpoppler.c | 1 - |
35 |
+ 1 file changed, 1 deletion(-) |
36 |
+ |
37 |
+diff --git a/poppler/ext/poppler/rbpoppler.c b/poppler/ext/poppler/rbpoppler.c |
38 |
+index 2b28f95..fb3bfed 100644 |
39 |
+--- a/poppler/ext/poppler/rbpoppler.c |
40 |
++++ b/poppler/ext/poppler/rbpoppler.c |
41 |
+@@ -56,7 +56,6 @@ Init_poppler(void) |
42 |
+ INT2FIX(POPPLER_MICRO_VERSION))); |
43 |
+ |
44 |
+ G_DEF_CLASS(POPPLER_TYPE_ERROR, "Error", RG_TARGET_NAMESPACE); |
45 |
+- G_DEF_CLASS(POPPLER_TYPE_ORIENTATION, "Orientation", RG_TARGET_NAMESPACE); |
46 |
+ |
47 |
+ G_DEF_CLASS(POPPLER_TYPE_PAGE_TRANSITION_TYPE, |
48 |
+ "PageTransitionType", RG_TARGET_NAMESPACE); |
49 |
|
50 |
diff --git a/dev-ruby/ruby-poppler/ruby-poppler-3.0.7-r1.ebuild b/dev-ruby/ruby-poppler/ruby-poppler-3.0.7-r1.ebuild |
51 |
new file mode 100644 |
52 |
index 0000000..e37472e |
53 |
--- /dev/null |
54 |
+++ b/dev-ruby/ruby-poppler/ruby-poppler-3.0.7-r1.ebuild |
55 |
@@ -0,0 +1,33 @@ |
56 |
+# Copyright 1999-2015 Gentoo Foundation |
57 |
+# Distributed under the terms of the GNU General Public License v2 |
58 |
+# $Id$ |
59 |
+ |
60 |
+EAPI=5 |
61 |
+USE_RUBY="ruby20 ruby21 ruby22" |
62 |
+ |
63 |
+inherit ruby-ng-gnome2 |
64 |
+ |
65 |
+DESCRIPTION="Ruby poppler-glib bindings" |
66 |
+KEYWORDS="~amd64 ~ppc ~x86" |
67 |
+IUSE="" |
68 |
+ |
69 |
+RDEPEND+=" app-text/poppler[cairo]" |
70 |
+DEPEND+=" app-text/poppler[cairo]" |
71 |
+ |
72 |
+RUBY_PATCHES=( ${P}-type-orientation.patch ) |
73 |
+ |
74 |
+ruby_add_rdepend "dev-ruby/ruby-gdkpixbuf2 |
75 |
+ >=dev-ruby/ruby-glib2-${PV} |
76 |
+ >=dev-ruby/ruby-gtk2-${PV}" |
77 |
+ |
78 |
+all_ruby_prepare() { |
79 |
+ # Avoid compilation of dependencies during test. |
80 |
+ sed -i -e '/if have_make/,/^ end/ s:^:#:' test/run-test.rb || die |
81 |
+ |
82 |
+ # Avoid tests downloading a test PDF directly. |
83 |
+ rm -f test/test_{annotation,document,page}.rb || die |
84 |
+} |
85 |
+ |
86 |
+each_ruby_test() { |
87 |
+ ${RUBY} test/run-test.rb || die |
88 |
+} |