1 |
commit: bce3e9d6ae2888ed328003fddb2c1dd8d88b79cf |
2 |
Author: Adam Feldman <NP-Hardass <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Sep 8 02:20:29 2020 +0000 |
4 |
Commit: Adam Feldman <np-hardass <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Sep 25 20:32:40 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bce3e9d6 |
7 |
|
8 |
mate-base/caja: Fix libselinux automagic |
9 |
|
10 |
Bug: https://bugs.gentoo.org/637414 |
11 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
12 |
Signed-off-by: Adam Feldman <NP-Hardass <AT> gentoo.org> |
13 |
|
14 |
mate-base/caja/caja-1.24.0-r2.ebuild | 98 ++++++++++++++++++++++ |
15 |
.../caja-1.24.0-fix-selinux-automagic-dep.patch | 46 ++++++++++ |
16 |
2 files changed, 144 insertions(+) |
17 |
|
18 |
diff --git a/mate-base/caja/caja-1.24.0-r2.ebuild b/mate-base/caja/caja-1.24.0-r2.ebuild |
19 |
new file mode 100644 |
20 |
index 00000000000..e77b01f49dd |
21 |
--- /dev/null |
22 |
+++ b/mate-base/caja/caja-1.24.0-r2.ebuild |
23 |
@@ -0,0 +1,98 @@ |
24 |
+# Copyright 1999-2020 Gentoo Authors |
25 |
+# Distributed under the terms of the GNU General Public License v2 |
26 |
+ |
27 |
+EAPI=6 |
28 |
+ |
29 |
+MATE_LA_PUNT="yes" |
30 |
+ |
31 |
+inherit mate virtualx |
32 |
+ |
33 |
+if [[ ${PV} != 9999 ]]; then |
34 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~x86" |
35 |
+fi |
36 |
+ |
37 |
+DESCRIPTION="Caja file manager for the MATE desktop" |
38 |
+LICENSE="GPL-2+ LGPL-2+" |
39 |
+SLOT="0" |
40 |
+ |
41 |
+IUSE="+introspection +mate packagekit selinux xmp" |
42 |
+ |
43 |
+COMMON_DEPEND=" |
44 |
+ dev-libs/atk |
45 |
+ >=dev-libs/glib-2.58.1:2 |
46 |
+ >=dev-libs/libxml2-2.4.7:2 |
47 |
+ gnome-base/dconf |
48 |
+ >=gnome-base/gvfs-1.10.1:0[udisks] |
49 |
+ >=mate-base/mate-desktop-1.17.3:0 |
50 |
+ >=media-libs/libexif-0.6.14:0 |
51 |
+ x11-libs/cairo |
52 |
+ >=x11-libs/gdk-pixbuf-2.36.5:2 |
53 |
+ >=x11-libs/gtk+-3.22:3[introspection?] |
54 |
+ >=x11-libs/libnotify-0.7.0:0 |
55 |
+ x11-libs/libICE |
56 |
+ x11-libs/libSM |
57 |
+ x11-libs/libX11 |
58 |
+ x11-libs/libXext |
59 |
+ x11-libs/libXft |
60 |
+ x11-libs/libXrender |
61 |
+ >=x11-libs/pango-1.1.2 |
62 |
+ introspection? ( >=dev-libs/gobject-introspection-0.6.4:= ) |
63 |
+ packagekit? ( app-admin/packagekit-base ) |
64 |
+ selinux? ( sys-libs/libselinux ) |
65 |
+ xmp? ( >=media-libs/exempi-1.99.5:2 ) |
66 |
+" |
67 |
+ |
68 |
+RDEPEND="${COMMON_DEPEND} |
69 |
+ virtual/libintl |
70 |
+ !!mate-base/mate-file-manager |
71 |
+" |
72 |
+ |
73 |
+DEPEND="${COMMON_DEPEND} |
74 |
+ >=dev-lang/perl-5:= |
75 |
+ dev-util/gdbus-codegen |
76 |
+ dev-util/glib-utils |
77 |
+ dev-util/gtk-doc |
78 |
+ dev-util/gtk-doc-am |
79 |
+ >=sys-devel/gettext-0.19.8 |
80 |
+ virtual/pkgconfig |
81 |
+" |
82 |
+ |
83 |
+PDEPEND="mate? ( >=x11-themes/mate-icon-theme-${MATE_BRANCH} )" |
84 |
+ |
85 |
+# TODO: Test fails because Caja is not merged yet: |
86 |
+# GLib-GIO-ERROR **: Settings schema 'org.mate.caja.preferences' is not installed |
87 |
+RESTRICT="test" |
88 |
+ |
89 |
+PATCHES=( "${FILESDIR}/${PN}-1.24.0-fix-selinux-automagic-dep.patch" ) |
90 |
+ |
91 |
+src_prepare() { |
92 |
+ # Remove unnecessary CFLAGS. |
93 |
+ sed -i -e 's:-DG.*DISABLE_DEPRECATED::g' \ |
94 |
+ configure.ac eel/Makefile.am || die |
95 |
+ |
96 |
+ mate_src_prepare |
97 |
+} |
98 |
+ |
99 |
+src_configure() { |
100 |
+ mate_src_configure \ |
101 |
+ --disable-update-mimedb \ |
102 |
+ $(use_enable introspection) \ |
103 |
+ $(use_enable packagekit) \ |
104 |
+ $(use_enable selinux) \ |
105 |
+ $(use_enable xmp) |
106 |
+} |
107 |
+ |
108 |
+src_test() { |
109 |
+ unset SESSION_MANAGER |
110 |
+ unset DBUS_SESSION_BUS_ADDRESS |
111 |
+ |
112 |
+ Xemake check || die "Test phase failed" |
113 |
+} |
114 |
+ |
115 |
+pkg_postinst() { |
116 |
+ mate_pkg_postinst |
117 |
+ |
118 |
+ elog "Caja can use gstreamer to preview audio files. Just make sure" |
119 |
+ elog "to have the necessary plugins available to play the media type you" |
120 |
+ elog "want to preview." |
121 |
+} |
122 |
|
123 |
diff --git a/mate-base/caja/files/caja-1.24.0-fix-selinux-automagic-dep.patch b/mate-base/caja/files/caja-1.24.0-fix-selinux-automagic-dep.patch |
124 |
new file mode 100644 |
125 |
index 00000000000..ffc0a2903d1 |
126 |
--- /dev/null |
127 |
+++ b/mate-base/caja/files/caja-1.24.0-fix-selinux-automagic-dep.patch |
128 |
@@ -0,0 +1,46 @@ |
129 |
+diff --git a/configure.ac b/configure.ac |
130 |
+index 052b4d0..12c818d 100644 |
131 |
+--- a/configure.ac |
132 |
++++ b/configure.ac |
133 |
+@@ -169,17 +169,24 @@ dnl **************************** |
134 |
+ dnl *** Check for libselinux *** |
135 |
+ dnl **************************** |
136 |
+ |
137 |
++AC_ARG_ENABLE(selinux, |
138 |
++ [AC_HELP_STRING([--enable-selinux], |
139 |
++ [build with selinux support])]) |
140 |
++AM_CONDITIONAL([ENABLE_SELINUX],[test "x$enable_selinux" = "xyes"]) |
141 |
++ |
142 |
+ SELINUX_LIBS= |
143 |
+ msg_selinux=no |
144 |
+-AC_CHECK_LIB(selinux, is_selinux_enabled, |
145 |
+- [AC_CHECK_HEADERS(selinux/selinux.h, |
146 |
+- [AC_SEARCH_LIBS(selinux_raw_to_trans_context, selinux, |
147 |
+- [AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available]) |
148 |
+- SELINUX_LIBS="-lselinux" |
149 |
+- msg_selinux=yes]) |
150 |
+- ]) |
151 |
+- ]) |
152 |
+-AC_SUBST(SELINUX_LIBS) |
153 |
++if test "x$enable_selinux" != "xno"; then |
154 |
++ AC_CHECK_LIB(selinux, is_selinux_enabled, |
155 |
++ [AC_CHECK_HEADERS(selinux/selinux.h, |
156 |
++ [AC_SEARCH_LIBS(selinux_raw_to_trans_context, selinux, |
157 |
++ [AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available]) |
158 |
++ SELINUX_LIBS="-lselinux" |
159 |
++ msg_selinux=yes]) |
160 |
++ ]) |
161 |
++ ]) |
162 |
++ AC_SUBST(SELINUX_LIBS) |
163 |
++fi |
164 |
+ |
165 |
+ |
166 |
+ AC_ARG_ENABLE(empty_view, |
167 |
+@@ -353,6 +360,7 @@ caja-$VERSION: |
168 |
+ warning flags: ${WARNING_CFLAGS} |
169 |
+ xmp support: $msg_xmp |
170 |
+ PackageKit support: $msg_packagekit |
171 |
++ SELinux support: $msg_selinux |
172 |
+ Self check: $msg_self_check |
173 |
+ |
174 |
+ caja-extension documentation: ${enable_gtk_doc} |