From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1164739-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id BF877138350
	for <garchives@archives.gentoo.org>; Fri, 24 Apr 2020 13:44:26 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 109A7E0AAF;
	Fri, 24 Apr 2020 13:44:26 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id ECE31E0AAF
	for <gentoo-commits@lists.gentoo.org>; Fri, 24 Apr 2020 13:44:25 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 8E20F34F220
	for <gentoo-commits@lists.gentoo.org>; Fri, 24 Apr 2020 13:44:24 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id A93ED1C5
	for <gentoo-commits@lists.gentoo.org>; Fri, 24 Apr 2020 13:44:22 +0000 (UTC)
From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" <jer@gentoo.org>
Message-ID: <1587735858.c5ca3930413e85a54529c2f5d2ddbf0ebaa89574.jer@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/cmatrix/
X-VCS-Repository: repo/gentoo
X-VCS-Files: app-misc/cmatrix/Manifest app-misc/cmatrix/cmatrix-2.0.ebuild
X-VCS-Directories: app-misc/cmatrix/
X-VCS-Committer: jer
X-VCS-Committer-Name: Jeroen Roovers
X-VCS-Revision: c5ca3930413e85a54529c2f5d2ddbf0ebaa89574
X-VCS-Branch: master
Date: Fri, 24 Apr 2020 13:44:22 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: db68613e-ba6b-4641-b95d-8a7e8ac24df5
X-Archives-Hash: 4114e48a2ea990a77456650cee2668fd

commit:     c5ca3930413e85a54529c2f5d2ddbf0ebaa89574
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Fri Apr 24 13:42:15 2020 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Fri Apr 24 13:44:18 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5ca3930

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 <AT> gentoo.org>

 app-misc/cmatrix/Manifest           |  1 +
 app-misc/cmatrix/cmatrix-2.0.ebuild | 46 +++++++++++++++++++++++++++++++++++++
 2 files changed, 47 insertions(+)

diff --git a/app-misc/cmatrix/Manifest b/app-misc/cmatrix/Manifest
index 0bb6c185201..e0b045ba252 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 00000000000..64b0aaf7b48
--- /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
+}