From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 3A05B138334 for ; Thu, 20 Sep 2018 22:11:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id EA885E0875; Thu, 20 Sep 2018 22:10:59 +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 C4C68E0875 for ; Thu, 20 Sep 2018 22:10:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 A59A1335CC9 for ; Thu, 20 Sep 2018 22:10:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 998883DE for ; Thu, 20 Sep 2018 22:10:55 +0000 (UTC) From: "Sebastian Pipping" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sebastian Pipping" Message-ID: <1537481443.126125a0696c9bb4d8ca488aed5fef56c45748fe.sping@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/cmatrix/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/cmatrix/cmatrix-1.2a-r4.ebuild X-VCS-Directories: app-misc/cmatrix/ X-VCS-Committer: sping X-VCS-Committer-Name: Sebastian Pipping X-VCS-Revision: 126125a0696c9bb4d8ca488aed5fef56c45748fe X-VCS-Branch: master Date: Thu, 20 Sep 2018 22:10:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 26d55447-c364-40c2-9043-9fee541b23de X-Archives-Hash: 9f786d53c02d7c1eb8bff6404c142302 commit: 126125a0696c9bb4d8ca488aed5fef56c45748fe Author: Sebastian Pipping gentoo org> AuthorDate: Thu Sep 20 22:04:28 2018 +0000 Commit: Sebastian Pipping gentoo org> CommitDate: Thu Sep 20 22:10:43 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=126125a0 app-misc/cmatrix: Waterproof font .uuid file creation Lack of file /usr/share/fonts/misc/.uuid would cause sandbox violation issues in other packages. font_pkg_postinst take care of its creation now. Closes: https://bugs.gentoo.org/665008 Package-Manager: Portage-2.3.49, Repoman-2.3.10 app-misc/cmatrix/cmatrix-1.2a-r4.ebuild | 55 +++++++++++++++++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/app-misc/cmatrix/cmatrix-1.2a-r4.ebuild b/app-misc/cmatrix/cmatrix-1.2a-r4.ebuild new file mode 100644 index 00000000000..c500c953e5d --- /dev/null +++ b/app-misc/cmatrix/cmatrix-1.2a-r4.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit autotools font + +DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix" +HOMEPAGE="https://sourceforge.net/projects/cmatrix/" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86" +IUSE="X" + +DEPEND=" + X? ( x11-apps/mkfontdir ) + sys-libs/ncurses:0=" + +RDEPEND="${DEPEND}" + +PATCHES=( + "${FILESDIR}"/${P}-gentoo.patch + "${FILESDIR}"/${P}-tinfo.patch +) + +src_prepare() { + default + + use X && eapply "${FILESDIR}"/${P}-fontdir.patch + + eautoreconf +} + +src_install() { + dodir /usr/share/consolefonts + dodir /usr/lib/kbd/consolefonts + use X && dodir /usr/share/fonts/misc + + default +} + +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 +}