summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorgy Yakovlev <gyakovlev@gentoo.org>2021-06-05 00:33:04 -0700
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2021-06-05 00:33:35 -0700
commit27beba126d02ac18c30fc150aa0bd245aaa034ed (patch)
treeebf361a7f4daaa2fcb28d230dfc66b23e164197f /app-misc
parentdev-java/bcprov: remove obsolete versions (diff)
downloadgentoo-27beba126d02ac18c30fc150aa0bd245aaa034ed.tar.gz
gentoo-27beba126d02ac18c30fc150aa0bd245aaa034ed.tar.bz2
gentoo-27beba126d02ac18c30fc150aa0bd245aaa034ed.zip
app-misc/cmatrix: revbump, fix mtx font installation
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/cmatrix/cmatrix-2.0-r3.ebuild (renamed from app-misc/cmatrix/cmatrix-2.0-r2.ebuild)27
1 files 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
index 20bbda5977bb..18a688600f04 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() {