1 |
commit: 126125a0696c9bb4d8ca488aed5fef56c45748fe |
2 |
Author: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 20 22:04:28 2018 +0000 |
4 |
Commit: Sebastian Pipping <sping <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 20 22:10:43 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=126125a0 |
7 |
|
8 |
app-misc/cmatrix: Waterproof font .uuid file creation |
9 |
|
10 |
Lack of file /usr/share/fonts/misc/.uuid |
11 |
would cause sandbox violation issues in other packages. |
12 |
font_pkg_postinst take care of its creation now. |
13 |
|
14 |
Closes: https://bugs.gentoo.org/665008 |
15 |
|
16 |
Package-Manager: Portage-2.3.49, Repoman-2.3.10 |
17 |
|
18 |
app-misc/cmatrix/cmatrix-1.2a-r4.ebuild | 55 +++++++++++++++++++++++++++++++++ |
19 |
1 file changed, 55 insertions(+) |
20 |
|
21 |
diff --git a/app-misc/cmatrix/cmatrix-1.2a-r4.ebuild b/app-misc/cmatrix/cmatrix-1.2a-r4.ebuild |
22 |
new file mode 100644 |
23 |
index 00000000000..c500c953e5d |
24 |
--- /dev/null |
25 |
+++ b/app-misc/cmatrix/cmatrix-1.2a-r4.ebuild |
26 |
@@ -0,0 +1,55 @@ |
27 |
+# Copyright 1999-2018 Gentoo Foundation |
28 |
+# Distributed under the terms of the GNU General Public License v2 |
29 |
+ |
30 |
+EAPI=6 |
31 |
+inherit autotools font |
32 |
+ |
33 |
+DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix" |
34 |
+HOMEPAGE="https://sourceforge.net/projects/cmatrix/" |
35 |
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
40 |
+IUSE="X" |
41 |
+ |
42 |
+DEPEND=" |
43 |
+ X? ( x11-apps/mkfontdir ) |
44 |
+ sys-libs/ncurses:0=" |
45 |
+ |
46 |
+RDEPEND="${DEPEND}" |
47 |
+ |
48 |
+PATCHES=( |
49 |
+ "${FILESDIR}"/${P}-gentoo.patch |
50 |
+ "${FILESDIR}"/${P}-tinfo.patch |
51 |
+) |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ use X && eapply "${FILESDIR}"/${P}-fontdir.patch |
57 |
+ |
58 |
+ eautoreconf |
59 |
+} |
60 |
+ |
61 |
+src_install() { |
62 |
+ dodir /usr/share/consolefonts |
63 |
+ dodir /usr/lib/kbd/consolefonts |
64 |
+ use X && dodir /usr/share/fonts/misc |
65 |
+ |
66 |
+ default |
67 |
+} |
68 |
+ |
69 |
+pkg_postinst() { |
70 |
+ if use X; then |
71 |
+ if [[ -d "${ROOT}"usr/share/fonts/misc ]] ; then |
72 |
+ einfo ">>> Running mkfontdir on ${ROOT}usr/share/fonts/misc" |
73 |
+ mkfontdir "${ROOT}"usr/share/fonts/misc |
74 |
+ fi |
75 |
+ font_pkg_postinst |
76 |
+ fi |
77 |
+} |
78 |
+ |
79 |
+pkg_postrm() { |
80 |
+ use X && font_pkg_postrm |
81 |
+} |