1 |
commit: 59089e88c33ec150a3d1abd93d5fcea2d975d556 |
2 |
Author: Francesco Turco <fturco <AT> fastmail <DOT> fm> |
3 |
AuthorDate: Thu Nov 16 16:00:45 2017 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jan 26 21:48:02 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=59089e88 |
7 |
|
8 |
x11-themes/silver-xcursors: use readme.gentoo-r1.eclass and EAPI 6 bump. |
9 |
|
10 |
Closes: https://bugs.gentoo.org/637686 |
11 |
Closes: https://github.com/gentoo/gentoo/pull/6205 |
12 |
|
13 |
.../silver-xcursors/silver-xcursors-0.4-r1.ebuild | 4 +- |
14 |
.../silver-xcursors/silver-xcursors-0.4.ebuild | 56 +++++++++++++--------- |
15 |
2 files changed, 36 insertions(+), 24 deletions(-) |
16 |
|
17 |
diff --git a/x11-themes/silver-xcursors/silver-xcursors-0.4-r1.ebuild b/x11-themes/silver-xcursors/silver-xcursors-0.4-r1.ebuild |
18 |
index 2ccc6d42f3c..992984f80ad 100644 |
19 |
--- a/x11-themes/silver-xcursors/silver-xcursors-0.4-r1.ebuild |
20 |
+++ b/x11-themes/silver-xcursors/silver-xcursors-0.4-r1.ebuild |
21 |
@@ -1,4 +1,4 @@ |
22 |
-# Copyright 1999-2017 Gentoo Foundation |
23 |
+# Copyright 1999-2018 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
|
26 |
EAPI=6 |
27 |
@@ -12,7 +12,7 @@ LICENSE="LGPL-2.1" |
28 |
SLOT="0" |
29 |
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~sparc ~x86 ~x86-fbsd" |
30 |
|
31 |
-S=${WORKDIR}/${MY_P:5} |
32 |
+S="${WORKDIR}/${MY_P:5}" |
33 |
|
34 |
src_install() { |
35 |
dodir /usr/share/cursors/xorg-x11/Silver/cursors/ |
36 |
|
37 |
diff --git a/x11-themes/silver-xcursors/silver-xcursors-0.4.ebuild b/x11-themes/silver-xcursors/silver-xcursors-0.4.ebuild |
38 |
index 05b59f73bb3..b01150131ce 100644 |
39 |
--- a/x11-themes/silver-xcursors/silver-xcursors-0.4.ebuild |
40 |
+++ b/x11-themes/silver-xcursors/silver-xcursors-0.4.ebuild |
41 |
@@ -1,6 +1,10 @@ |
42 |
-# Copyright 1999-2010 Gentoo Foundation |
43 |
+# Copyright 1999-2018 Gentoo Foundation |
44 |
# Distributed under the terms of the GNU General Public License v2 |
45 |
|
46 |
+EAPI=6 |
47 |
+ |
48 |
+inherit readme.gentoo-r1 |
49 |
+ |
50 |
MY_P="5533-Silver-XCursors-3D-${PV}" |
51 |
DESCRIPTION="A high quality set of Xfree 4.3.0 animated mouse cursors" |
52 |
HOMEPAGE="http://www.kde-look.org/content/show.php?content=5533" |
53 |
@@ -14,31 +18,39 @@ IUSE="" |
54 |
RDEPEND="" |
55 |
DEPEND="${RDEPEND}" |
56 |
|
57 |
+S="${WORKDIR}/${MY_P:5}" |
58 |
+ |
59 |
+DOC_CONTENTS="To use this set of cursors, edit or create the file ~/.Xdefaults |
60 |
+and add the following line: |
61 |
+Xcursor.theme: Silver |
62 |
+ |
63 |
+You can change the size by adding a line like: |
64 |
+Xcursor.size: 48 |
65 |
+ |
66 |
+Also, to globally use this set of mouse cursors edit the file: |
67 |
+ /usr/share/cursors/xorg-x11/default/index.theme |
68 |
+and change the line: |
69 |
+ Inherits=[current setting] |
70 |
+to |
71 |
+ Inherits=Silver |
72 |
+ |
73 |
+Note this will be overruled by a user's ~/.Xdefaults file." |
74 |
+ |
75 |
src_install() { |
76 |
- dodir /usr/share/cursors/xorg-x11/Silver/cursors/ |
77 |
- cp -R "${WORKDIR}"/${MY_P:5}/Silver/cursors "${D}"/usr/share/cursors/xorg-x11/Silver/ || die |
78 |
- dodoc "${WORKDIR}"/${MY_P:5}/README |
79 |
+ insinto /usr/share/cursors/xorg-x11/Silver |
80 |
+ doins -r Silver/cursors |
81 |
+ einstalldocs |
82 |
+ |
83 |
+ DISABLE_AUTOFORMATTING="yes" |
84 |
+ readme.gentoo_create_doc |
85 |
} |
86 |
|
87 |
pkg_postinst() { |
88 |
- einfo "To use this set of cursors, edit or create the file ~/.Xdefaults" |
89 |
- einfo "and add the following line:" |
90 |
- einfo "Xcursor.theme: Silver" |
91 |
- einfo "" |
92 |
- einfo "You can change the size by adding a line like:" |
93 |
- einfo "Xcursor.size: 48" |
94 |
- einfo "" |
95 |
- einfo "Also, to globally use this set of mouse cursors edit the file:" |
96 |
- einfo " /usr/share/cursors/xorg-x11/default/index.theme" |
97 |
- einfo "and change the line:" |
98 |
- einfo " Inherits=[current setting]" |
99 |
- einfo "to" |
100 |
- einfo " Inherits=Silver" |
101 |
- einfo "" |
102 |
- einfo "Note this will be overruled by a user's ~/.Xdefaults file." |
103 |
- einfo "" |
104 |
+ DISABLE_AUTOFORMATTING="yes" |
105 |
+ readme.gentoo_print_elog |
106 |
+ |
107 |
ewarn "If you experience flickering, try setting the following line in" |
108 |
- ewarn "" |
109 |
ewarn "the Device section of your xorg.conf file:" |
110 |
- ewarn " Option \"HWCursor\" \"false\"" |
111 |
+ ewarn " Option \"HWCursor\" \"false\"" |
112 |
+ |
113 |
} |