1 |
commit: b1a6f1a0dfd27b0136ae980fd00942160f6eba00 |
2 |
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 1 13:08:54 2020 +0000 |
4 |
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 1 13:43:33 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b1a6f1a0 |
7 |
|
8 |
x11-misc/efax-gtk: Fix CFLAGS=-fno-common |
9 |
|
10 |
Package-Manager: Portage-2.3.86, Repoman-2.3.20 |
11 |
Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org> |
12 |
|
13 |
x11-misc/efax-gtk/efax-gtk-3.2.13-r1.ebuild | 55 ++++++++++++++++++++++ |
14 |
.../files/efax-gtk-3.2.13-fno-common.patch | 35 ++++++++++++++ |
15 |
2 files changed, 90 insertions(+) |
16 |
|
17 |
diff --git a/x11-misc/efax-gtk/efax-gtk-3.2.13-r1.ebuild b/x11-misc/efax-gtk/efax-gtk-3.2.13-r1.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..3a4ae41be48 |
20 |
--- /dev/null |
21 |
+++ b/x11-misc/efax-gtk/efax-gtk-3.2.13-r1.ebuild |
22 |
@@ -0,0 +1,55 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+DESCRIPTION="A graphical frontend for the 'efax' application" |
29 |
+HOMEPAGE="http://efax-gtk.sourceforge.net/" |
30 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.src.tgz" |
31 |
+ |
32 |
+LICENSE="GPL-2 LGPL-2.1" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" |
35 |
+IUSE="nls" |
36 |
+ |
37 |
+RDEPEND=">=dev-libs/glib-2.10 |
38 |
+ media-libs/tiff:0= |
39 |
+ x11-libs/libX11 |
40 |
+ x11-libs/c++-gtk-utils:0[gtk] |
41 |
+ x11-libs/gtk+:3" |
42 |
+DEPEND="${RDEPEND} |
43 |
+ virtual/pkgconfig |
44 |
+ nls? ( sys-devel/gettext )" |
45 |
+ |
46 |
+DOCS="AUTHORS BUGS ChangeLog README" |
47 |
+PATCHES=( |
48 |
+ "${FILESDIR}"/${PN}-3.2.13-fno-common.patch |
49 |
+) |
50 |
+ |
51 |
+src_prepare() { |
52 |
+ default |
53 |
+ # Prevent sandbox violation with chown/chgrp and existing spooldir |
54 |
+ sed -i -e '/ch.*lp.*spooldir/d' efax-gtk-faxfilter/Makefile.in || die |
55 |
+ |
56 |
+ sed -i \ |
57 |
+ -e '/^Categories/s:Office;::' \ |
58 |
+ ${PN}.desktop || die |
59 |
+} |
60 |
+ |
61 |
+src_configure() { |
62 |
+ econf \ |
63 |
+ $(use_enable nls) \ |
64 |
+ --with-gtk-version=gtk3 |
65 |
+} |
66 |
+ |
67 |
+src_install() { |
68 |
+ default |
69 |
+ # File collision with net-misc/efax wrt #401221 |
70 |
+ mv "${ED}"/usr/share/man/man1/efax{,-0.9a}.1 || die |
71 |
+ mv "${ED}"/usr/share/man/man1/efix{,-0.9a}.1 || die |
72 |
+} |
73 |
+ |
74 |
+pkg_postinst() { |
75 |
+ local spooldir="${EROOT}"/var/spool/fax |
76 |
+ [[ -d ${spooldir} ]] && chown lp:lp "${spooldir}" |
77 |
+} |
78 |
|
79 |
diff --git a/x11-misc/efax-gtk/files/efax-gtk-3.2.13-fno-common.patch b/x11-misc/efax-gtk/files/efax-gtk-3.2.13-fno-common.patch |
80 |
new file mode 100644 |
81 |
index 00000000000..4cfd79afd16 |
82 |
--- /dev/null |
83 |
+++ b/x11-misc/efax-gtk/files/efax-gtk-3.2.13-fno-common.patch |
84 |
@@ -0,0 +1,35 @@ |
85 |
+--- a/efax/efaxos.h |
86 |
++++ b/efax/efaxos.h |
87 |
+@@ -11,10 +11,6 @@ |
88 |
+ #define UNIXSIGS SIGHUP, SIGQUIT, SIGIOT, SIGALRM |
89 |
+ #define CATCHSIGS ANSISIGS, UNIXSIGS |
90 |
+ |
91 |
+-/* Bit order reversal table. */ |
92 |
+- |
93 |
+-extern unsigned char normalbits [ ] ; |
94 |
+- |
95 |
+ typedef enum ttymodes /* serial port modes: */ |
96 |
+ { |
97 |
+ COMMAND, /* 19200 8N1, no f/c, DTR high */ |
98 |
+--- a/efax/efaxlib.h |
99 |
++++ b/efax/efaxlib.h |
100 |
+@@ -208,7 +208,7 @@ |
101 |
+ /* Bit reversal lookup tables (note that the `normalbits' array |
102 |
+ is the one actually used for the bit reversal. */ |
103 |
+ |
104 |
+-uchar reversebits [ 256 ], normalbits [ 256 ] ; |
105 |
++extern uchar reversebits [ 256 ], normalbits [ 256 ] ; |
106 |
+ |
107 |
+ void initbittab(void) ; |
108 |
+ |
109 |
+--- a/efax/efaxlib.c |
110 |
++++ b/efax/efaxlib.c |
111 |
+@@ -48,6 +48,8 @@ |
112 |
+ return n < 0 ; |
113 |
+ } |
114 |
+ |
115 |
++uchar reversebits [ 256 ], normalbits [ 256 ] ; |
116 |
++ |
117 |
+ /* Provide dummy gettext() function if there is no internationalisation support */ |
118 |
+ |
119 |
+ #ifndef ENABLE_NLS |