1 |
commit: a57c85880af3b8d5696dbf5a0067e28d3d70873d |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 24 16:45:24 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 24 16:49:38 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a57c8588 |
7 |
|
8 |
xfce-extra/xfce4-diskperf-plugin: Apply proper sysmacros.h fix |
9 |
|
10 |
Closes: https://bugs.gentoo.org/661994 |
11 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
12 |
|
13 |
.../xfce4-diskperf-plugin-2.6.1-sysmacros.patch | 24 +++++++++++++ |
14 |
.../xfce4-diskperf-plugin-2.6.1-r1.ebuild | 40 ++++++++++++++++++++++ |
15 |
2 files changed, 64 insertions(+) |
16 |
|
17 |
diff --git a/xfce-extra/xfce4-diskperf-plugin/files/xfce4-diskperf-plugin-2.6.1-sysmacros.patch b/xfce-extra/xfce4-diskperf-plugin/files/xfce4-diskperf-plugin-2.6.1-sysmacros.patch |
18 |
new file mode 100644 |
19 |
index 00000000000..13a8df73bfe |
20 |
--- /dev/null |
21 |
+++ b/xfce-extra/xfce4-diskperf-plugin/files/xfce4-diskperf-plugin-2.6.1-sysmacros.patch |
22 |
@@ -0,0 +1,24 @@ |
23 |
+From dd62d6dae6ad77b586af69faf8fdee8d7c87051b Mon Sep 17 00:00:00 2001 |
24 |
+From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o> |
25 |
+Date: Sat, 21 Oct 2017 00:14:32 +0200 |
26 |
+Subject: [PATCH] Add <sys/sysmacros.h> include required for glibc-2.25+ |
27 |
+ |
28 |
+--- |
29 |
+ panel-plugin/devperf.c | 1 + |
30 |
+ 1 file changed, 1 insertion(+) |
31 |
+ |
32 |
+diff --git a/panel-plugin/devperf.c b/panel-plugin/devperf.c |
33 |
+index 175fd44..9348c9e 100644 |
34 |
+--- a/panel-plugin/devperf.c |
35 |
++++ b/panel-plugin/devperf.c |
36 |
+@@ -35,6 +35,7 @@ |
37 |
+ #include <sys/time.h> |
38 |
+ /* for major() and minor() */ |
39 |
+ #define _BSD_SOURCE |
40 |
++#include <sys/sysmacros.h> |
41 |
+ #include <sys/types.h> |
42 |
+ |
43 |
+ |
44 |
+-- |
45 |
+2.15.0.rc1 |
46 |
+ |
47 |
|
48 |
diff --git a/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1-r1.ebuild b/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1-r1.ebuild |
49 |
new file mode 100644 |
50 |
index 00000000000..6484f9ed605 |
51 |
--- /dev/null |
52 |
+++ b/xfce-extra/xfce4-diskperf-plugin/xfce4-diskperf-plugin-2.6.1-r1.ebuild |
53 |
@@ -0,0 +1,40 @@ |
54 |
+# Copyright 1999-2018 Gentoo Foundation |
55 |
+# Distributed under the terms of the GNU General Public License v2 |
56 |
+ |
57 |
+EAPI=6 |
58 |
+ |
59 |
+inherit gnome2-utils xdg-utils |
60 |
+ |
61 |
+DESCRIPTION="A panel plug-in for disk usage and performance statistics" |
62 |
+HOMEPAGE="https://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin" |
63 |
+SRC_URI="https://archive.xfce.org/src/panel-plugins/${PN}/${PV%.*}/${P}.tar.bz2" |
64 |
+ |
65 |
+LICENSE="BSD-2" |
66 |
+SLOT="0" |
67 |
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux" |
68 |
+IUSE="" |
69 |
+ |
70 |
+RDEPEND=">=xfce-base/libxfce4ui-4.12:=[gtk3(+)] |
71 |
+ >=xfce-base/xfce4-panel-4.12:=" |
72 |
+DEPEND="${RDEPEND} |
73 |
+ dev-util/intltool |
74 |
+ sys-devel/gettext |
75 |
+ virtual/pkgconfig" |
76 |
+ |
77 |
+PATCHES=( |
78 |
+ # https://bugzilla.xfce.org/show_bug.cgi?id=13940 |
79 |
+ # (simpler Linux-only version; portable version merged as 0787a89) |
80 |
+ "${FILESDIR}"/xfce4-diskperf-plugin-2.6.1-sysmacros.patch |
81 |
+) |
82 |
+ |
83 |
+pkg_postinst() { |
84 |
+ xdg_desktop_database_update |
85 |
+ xdg_mimeinfo_database_update |
86 |
+ gnome2_icon_cache_update |
87 |
+} |
88 |
+ |
89 |
+pkg_postrm() { |
90 |
+ xdg_desktop_database_update |
91 |
+ xdg_mimeinfo_database_update |
92 |
+ gnome2_icon_cache_update |
93 |
+} |