commit: 27beba126d02ac18c30fc150aa0bd245aaa034ed Author: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> AuthorDate: Sat Jun 5 07:33:04 2021 +0000 Commit: Georgy Yakovlev <gyakovlev <AT> gentoo <DOT> org> CommitDate: Sat Jun 5 07:33:35 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27beba12
app-misc/cmatrix: revbump, fix mtx font installation Signed-off-by: Georgy Yakovlev <gyakovlev <AT> gentoo.org> ...cmatrix-2.0-r2.ebuild => cmatrix-2.0-r3.ebuild} | 27 ++++++++-------------- 1 file changed, 9 insertions(+), 18 deletions(-) diff --git a/app-misc/cmatrix/cmatrix-2.0-r2.ebuild b/app-misc/cmatrix/cmatrix-2.0-r3.ebuild similarity index 65% rename from app-misc/cmatrix/cmatrix-2.0-r2.ebuild rename to app-misc/cmatrix/cmatrix-2.0-r3.ebuild index 20bbda5977b..18a688600f0 100644 --- a/app-misc/cmatrix/cmatrix-2.0-r2.ebuild +++ b/app-misc/cmatrix/cmatrix-2.0-r3.ebuild @@ -2,6 +2,9 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + +FONT_SUFFIX="pcf" + inherit cmake font DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix" @@ -14,17 +17,11 @@ SRC_URI="https://github.com/abishekvashok/${PN}/archive/v${PV}.tar.gz -> ${P}.ta LICENSE="GPL-2" SLOT="0" KEYWORDS="~alpha amd64 ~hppa ppc ppc64 sparc x86" -IUSE="X +unicode" +IUSE="+unicode" -DEPEND=" - sys-libs/ncurses:0=[unicode?] -" -BDEPEND=" - X? ( >=x11-apps/mkfontscale-1.2.0 ) -" -RDEPEND=" - ${DEPEND} -" +DEPEND="sys-libs/ncurses:0=[unicode?]" +BDEPEND="" +RDEPEND="${DEPEND}" src_configure() { mycmakeargs=( @@ -35,18 +32,12 @@ src_configure() { src_install() { cmake_src_install - font_src_install + use X && 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 + use X && font_pkg_postinst } pkg_postrm() {