summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2020-04-24 15:42:15 +0200
committerJeroen Roovers <jer@gentoo.org>2020-04-24 15:44:18 +0200
commitc5ca3930413e85a54529c2f5d2ddbf0ebaa89574 (patch)
treef74b32a2ec594102ffac030889ebd4868a5352e0 /app-misc/cmatrix
parentsys-kernel/gentoo-sources: Linux patch 4.14.177 (diff)
downloadgentoo-c5ca3930413e85a54529c2f5d2ddbf0ebaa89574.tar.gz
gentoo-c5ca3930413e85a54529c2f5d2ddbf0ebaa89574.tar.bz2
gentoo-c5ca3930413e85a54529c2f5d2ddbf0ebaa89574.zip
app-misc/cmatrix: Version 2.0
Package-Manager: Portage-2.3.99, Repoman-2.3.22 Closes: https://bugs.gentoo.org/719244 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'app-misc/cmatrix')
-rw-r--r--app-misc/cmatrix/Manifest1
-rw-r--r--app-misc/cmatrix/cmatrix-2.0.ebuild46
2 files changed, 47 insertions, 0 deletions
diff --git a/app-misc/cmatrix/Manifest b/app-misc/cmatrix/Manifest
index 0bb6c1852016..e0b045ba252a 100644
--- a/app-misc/cmatrix/Manifest
+++ b/app-misc/cmatrix/Manifest
@@ -1 +1,2 @@
DIST cmatrix-1.2a.tar.gz 74376 BLAKE2B 03319cecc8b15c441f36aa6c3267c4c0793855835c374e6fc45be731fd5907333ecf1f179b6761da8499a40bd199afc0c3c018949a325f5ca139c8a09662917f SHA512 a653a840378da87877bda1b48fc4087e7789b548e0f943ae15b81b5dc7a847aed28c69d2ad955bd467f38d6a08b0960349490b61c30260767e7d1560bb542d82
+DIST cmatrix-2.0.tar.gz 205640 BLAKE2B 3d38903b93853afc077c00308b84106664ec2ea3a31601ba7ab858f6571158182858de87392b5940725456bdd8c82232228451a4d30813e2c0a8bec99f285814 SHA512 1aeecd8e8abb6f87fc54f88a8c25478f69d42d450af782e73c0fca7f051669a415c0505ca61c904f960b46bbddf98cfb3dd1f9b18917b0b39e95d8c899889530
diff --git a/app-misc/cmatrix/cmatrix-2.0.ebuild b/app-misc/cmatrix/cmatrix-2.0.ebuild
new file mode 100644
index 000000000000..64b0aaf7b480
--- /dev/null
+++ b/app-misc/cmatrix/cmatrix-2.0.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit cmake font
+
+DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix"
+HOMEPAGE="
+ https://www.asty.org/cmatrix/
+ https://github.com/abishekvashok/cmatrix
+"
+SRC_URI="https://github.com/abishekvashok/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
+IUSE="X"
+
+DEPEND="
+ sys-libs/ncurses:0=
+ X? ( >=x11-apps/mkfontscale-1.2.0 )
+"
+
+RDEPEND="
+ ${DEPEND}
+"
+
+src_install() {
+ cmake_src_install
+ font_src_install
+ doman ${PN}.1
+}
+
+pkg_postinst() {
+ if use X; then
+ if [[ -d "${ROOT}"usr/share/fonts/misc ]] ; then
+ einfo ">>> Running mkfontdir on ${ROOT}usr/share/fonts/misc"
+ mkfontdir "${ROOT}"usr/share/fonts/misc
+ fi
+ font_pkg_postinst
+ fi
+}
+
+pkg_postrm() {
+ use X && font_pkg_postrm
+}