1 |
commit: 474c3afcff644cca375b2507fb16df27e68d6e62 |
2 |
Author: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 25 08:21:08 2015 +0000 |
4 |
Commit: Gilles Dartiguelongue <eva <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Nov 26 10:50:45 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=474c3afc |
7 |
|
8 |
gnome-base/nautilus: stop selinux from being automagic |
9 |
|
10 |
Package-Manager: portage-2.2.25 |
11 |
|
12 |
.../files/nautilus-3.18.2-automagic-selinux.patch | 47 ++++++++ |
13 |
gnome-base/nautilus/nautilus-3.18.2-r1.ebuild | 123 +++++++++++++++++++++ |
14 |
2 files changed, 170 insertions(+) |
15 |
|
16 |
diff --git a/gnome-base/nautilus/files/nautilus-3.18.2-automagic-selinux.patch b/gnome-base/nautilus/files/nautilus-3.18.2-automagic-selinux.patch |
17 |
new file mode 100644 |
18 |
index 0000000..0f769fc |
19 |
--- /dev/null |
20 |
+++ b/gnome-base/nautilus/files/nautilus-3.18.2-automagic-selinux.patch |
21 |
@@ -0,0 +1,47 @@ |
22 |
+From bfdedc2f762027ec9a50fda659d66720718bb28d Mon Sep 17 00:00:00 2001 |
23 |
+From: Gilles Dartiguelongue <eva@g.o> |
24 |
+Date: Wed, 25 Nov 2015 09:23:51 +0100 |
25 |
+Subject: [PATCH] Make libselinux dependency controllable by configure switch |
26 |
+ |
27 |
+--- |
28 |
+ configure.ac | 23 ++++++++++++----------- |
29 |
+ 1 file changed, 12 insertions(+), 11 deletions(-) |
30 |
+ |
31 |
+diff --git a/configure.ac b/configure.ac |
32 |
+index 777ff84..37a65ba 100644 |
33 |
+--- a/configure.ac |
34 |
++++ b/configure.ac |
35 |
+@@ -140,18 +140,19 @@ dnl ========================================================================== |
36 |
+ dnl **************************** |
37 |
+ dnl *** Check for libselinux *** |
38 |
+ dnl **************************** |
39 |
+- |
40 |
+-SELINUX_LIBS= |
41 |
++ |
42 |
+ msg_selinux=no |
43 |
+-AC_CHECK_LIB(selinux, is_selinux_enabled, |
44 |
+- [AC_CHECK_HEADERS(selinux/selinux.h, |
45 |
+- [AC_SEARCH_LIBS(selinux_raw_to_trans_context, selinux, |
46 |
+- [AC_DEFINE(HAVE_SELINUX, 1, [Define to 1 if libselinux is available]) |
47 |
+- SELINUX_LIBS="-lselinux" |
48 |
+- msg_selinux=yes]) |
49 |
+- ]) |
50 |
+- ]) |
51 |
+-AC_SUBST(SELINUX_LIBS) |
52 |
++ |
53 |
++AC_ARG_ENABLE([selinux], |
54 |
++ [AS_HELP_STRING([--enable-selinux], |
55 |
++ [Enable selinux support])]) |
56 |
++AS_IF([test "$enable_selinux" != "no"], |
57 |
++ [PKG_CHECK_MODULES([SELINUX], [libselinux >= 2.0], |
58 |
++ [ |
59 |
++ AC_DEFINE([HAVE_SELINUX], [1], [Define to 1 if libselinux is available]) |
60 |
++ msg_selinux=yes |
61 |
++ ]) |
62 |
++ ]) |
63 |
+ |
64 |
+ |
65 |
+ AC_ARG_ENABLE(empty_view, |
66 |
+-- |
67 |
+2.6.3 |
68 |
+ |
69 |
|
70 |
diff --git a/gnome-base/nautilus/nautilus-3.18.2-r1.ebuild b/gnome-base/nautilus/nautilus-3.18.2-r1.ebuild |
71 |
new file mode 100644 |
72 |
index 0000000..6a37227 |
73 |
--- /dev/null |
74 |
+++ b/gnome-base/nautilus/nautilus-3.18.2-r1.ebuild |
75 |
@@ -0,0 +1,123 @@ |
76 |
+# Copyright 1999-2015 Gentoo Foundation |
77 |
+# Distributed under the terms of the GNU General Public License v2 |
78 |
+# $Id$ |
79 |
+ |
80 |
+EAPI="5" |
81 |
+GCONF_DEBUG="no" |
82 |
+GNOME2_LA_PUNT="yes" # Needed with USE 'sendto' |
83 |
+ |
84 |
+inherit eutils gnome2 readme.gentoo virtualx |
85 |
+ |
86 |
+DESCRIPTION="A file manager for the GNOME desktop" |
87 |
+HOMEPAGE="https://wiki.gnome.org/Apps/Nautilus" |
88 |
+ |
89 |
+LICENSE="GPL-2+ LGPL-2+ FDL-1.1" |
90 |
+SLOT="0" |
91 |
+ |
92 |
+# profiling? |
93 |
+IUSE="exif gnome +introspection packagekit +previewer sendto tracker xmp" |
94 |
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~ppc ~ppc64 ~sh ~sparc ~x86 ~x86-fbsd ~x86-interix ~amd64-linux ~arm-linux ~x86-linux" |
95 |
+ |
96 |
+# FIXME: tests fails under Xvfb, but pass when building manually |
97 |
+# "FAIL: check failed in nautilus-file.c, line 8307" |
98 |
+RESTRICT="test" |
99 |
+ |
100 |
+# FIXME: selinux support is automagic |
101 |
+# Require {glib,gdbus-codegen}-2.30.0 due to GDBus API changes between 2.29.92 |
102 |
+# and 2.30.0 |
103 |
+COMMON_DEPEND=" |
104 |
+ >=dev-libs/glib-2.45.7:2[dbus] |
105 |
+ >=x11-libs/pango-1.28.3 |
106 |
+ >=x11-libs/gtk+-3.17.5:3[introspection?] |
107 |
+ >=dev-libs/libxml2-2.7.8:2 |
108 |
+ >=gnome-base/gnome-desktop-3:3= |
109 |
+ |
110 |
+ gnome-base/dconf |
111 |
+ >=gnome-base/gsettings-desktop-schemas-3.8.0 |
112 |
+ x11-libs/libX11 |
113 |
+ x11-libs/libXext |
114 |
+ x11-libs/libXrender |
115 |
+ |
116 |
+ exif? ( >=media-libs/libexif-0.6.20 ) |
117 |
+ introspection? ( >=dev-libs/gobject-introspection-0.6.4:= ) |
118 |
+ tracker? ( >=app-misc/tracker-0.16:= ) |
119 |
+ xmp? ( >=media-libs/exempi-2.1.0 ) |
120 |
+" |
121 |
+DEPEND="${COMMON_DEPEND} |
122 |
+ >=dev-lang/perl-5 |
123 |
+ >=dev-util/gdbus-codegen-2.33 |
124 |
+ >=dev-util/gtk-doc-am-1.10 |
125 |
+ >=dev-util/intltool-0.40.1 |
126 |
+ sys-devel/gettext |
127 |
+ virtual/pkgconfig |
128 |
+ x11-proto/xproto |
129 |
+" |
130 |
+RDEPEND="${COMMON_DEPEND} |
131 |
+ packagekit? ( app-admin/packagekit-base ) |
132 |
+ sendto? ( !<gnome-extra/nautilus-sendto-3.0.1 ) |
133 |
+" |
134 |
+ |
135 |
+# For eautoreconf |
136 |
+# gnome-base/gnome-common |
137 |
+# dev-util/gtk-doc-am" |
138 |
+ |
139 |
+PDEPEND=" |
140 |
+ gnome? ( |
141 |
+ >=x11-themes/gnome-icon-theme-1.1.91 |
142 |
+ x11-themes/gnome-icon-theme-symbolic ) |
143 |
+ tracker? ( >=gnome-extra/nautilus-tracker-tags-0.12 ) |
144 |
+ previewer? ( >=gnome-extra/sushi-0.1.9 ) |
145 |
+ sendto? ( >=gnome-extra/nautilus-sendto-3.0.1 ) |
146 |
+ >=gnome-base/gvfs-1.14[gtk] |
147 |
+" |
148 |
+# Need gvfs[gtk] for recent:/// support |
149 |
+ |
150 |
+src_prepare() { |
151 |
+ if use previewer; then |
152 |
+ DOC_CONTENTS="nautilus uses gnome-extra/sushi to preview media files. |
153 |
+ To activate the previewer, select a file and press space; to |
154 |
+ close the previewer, press space again." |
155 |
+ fi |
156 |
+ |
157 |
+ # Remove -D*DEPRECATED flags. Don't leave this for eclass! (bug #448822) |
158 |
+ sed -e 's/DISABLE_DEPRECATED_CFLAGS=.*/DISABLE_DEPRECATED_CFLAGS=/' \ |
159 |
+ -i configure || die "sed failed" |
160 |
+ |
161 |
+ gnome2_src_prepare |
162 |
+} |
163 |
+ |
164 |
+src_configure() { |
165 |
+ DOCS="AUTHORS HACKING MAINTAINERS NEWS README* THANKS" |
166 |
+ gnome2_src_configure \ |
167 |
+ --disable-profiling \ |
168 |
+ --disable-update-mimedb \ |
169 |
+ $(use_enable exif libexif) \ |
170 |
+ $(use_enable introspection) \ |
171 |
+ $(use_enable packagekit) \ |
172 |
+ $(use_enable sendto nst-extension) \ |
173 |
+ $(use_enable tracker) \ |
174 |
+ $(use_enable xmp) |
175 |
+} |
176 |
+ |
177 |
+src_test() { |
178 |
+ gnome2_environment_reset |
179 |
+ unset DBUS_SESSION_BUS_ADDRESS |
180 |
+ export GSETTINGS_BACKEND="memory" |
181 |
+ Xemake check |
182 |
+ unset GSETTINGS_BACKEND |
183 |
+} |
184 |
+ |
185 |
+src_install() { |
186 |
+ use previewer && readme.gentoo_create_doc |
187 |
+ gnome2_src_install |
188 |
+} |
189 |
+ |
190 |
+pkg_postinst() { |
191 |
+ gnome2_pkg_postinst |
192 |
+ |
193 |
+ if use previewer; then |
194 |
+ readme.gentoo_print_elog |
195 |
+ else |
196 |
+ elog "To preview media files, emerge nautilus with USE=previewer" |
197 |
+ fi |
198 |
+} |