1 |
commit: 18a2e5473cfc844be6ae5a3a3a24dda5d0f4fd27 |
2 |
Author: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue May 31 07:01:43 2016 +0000 |
4 |
Commit: Patrice Clement <monsieurp <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue May 31 07:06:27 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=18a2e547 |
7 |
|
8 |
app-misc/cmatrix: EAPI 6 bump. |
9 |
|
10 |
Package-Manager: portage-2.2.28 |
11 |
|
12 |
app-misc/cmatrix/cmatrix-1.2a-r2.ebuild | 46 +++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 46 insertions(+) |
14 |
|
15 |
diff --git a/app-misc/cmatrix/cmatrix-1.2a-r2.ebuild b/app-misc/cmatrix/cmatrix-1.2a-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 0000000..057b62e |
18 |
--- /dev/null |
19 |
+++ b/app-misc/cmatrix/cmatrix-1.2a-r2.ebuild |
20 |
@@ -0,0 +1,46 @@ |
21 |
+# Copyright 1999-2016 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+# $Id$ |
24 |
+EAPI=6 |
25 |
+ |
26 |
+inherit autotools eutils |
27 |
+ |
28 |
+DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix" |
29 |
+HOMEPAGE="http://www.asty.org/cmatrix" |
30 |
+SRC_URI="http://www.asty.org/${PN}/dist/${P}.tar.gz" |
31 |
+ |
32 |
+LICENSE="GPL-2" |
33 |
+SLOT="0" |
34 |
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" |
35 |
+IUSE="X" |
36 |
+ |
37 |
+DEPEND=" |
38 |
+ X? ( x11-apps/mkfontdir ) |
39 |
+ sys-libs/ncurses:0=" |
40 |
+ |
41 |
+RDEPEND="${DEPEND}" |
42 |
+ |
43 |
+CPATCHES=( "${FILESDIR}"/${P}-gentoo.patch ) |
44 |
+ |
45 |
+src_prepare() { |
46 |
+ default |
47 |
+ use X && CPATCHES+=( "${FILESDIR}"/${P}-fontdir.patch ) |
48 |
+ epatch "${CPATCHES[@]}" |
49 |
+ eautoreconf |
50 |
+} |
51 |
+ |
52 |
+src_install() { |
53 |
+ dodir /usr/share/consolefonts |
54 |
+ dodir /usr/lib/kbd/consolefonts |
55 |
+ use X && dodir /usr/share/fonts/misc |
56 |
+ emake DESTDIR="${D}" install |
57 |
+} |
58 |
+ |
59 |
+pkg_postinst() { |
60 |
+ if use X; then |
61 |
+ if [[ -d "${ROOT}"usr/share/fonts/misc ]] ; then |
62 |
+ einfo ">>> Running mkfontdir on ${ROOT}usr/share/fonts/misc" |
63 |
+ mkfontdir "${ROOT}"usr/share/fonts/misc || die 'mkfontdir failed' |
64 |
+ fi |
65 |
+ fi |
66 |
+} |