You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
986 B
52 lines
986 B
8 years ago
|
# Copyright 1999-2016 Gentoo Foundation
|
||
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
# $Id$
|
||
|
|
||
8 years ago
|
EAPI=6
|
||
|
inherit autotools
|
||
8 years ago
|
|
||
|
DESCRIPTION="An ncurses based app to show a scrolling screen from the Matrix"
|
||
|
HOMEPAGE="http://www.asty.org/cmatrix"
|
||
|
SRC_URI="http://www.asty.org/${PN}/dist/${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
8 years ago
|
KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86"
|
||
8 years ago
|
IUSE="X"
|
||
|
|
||
|
DEPEND="
|
||
|
X? ( x11-apps/mkfontdir )
|
||
|
sys-libs/ncurses:0="
|
||
|
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
8 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-gentoo.patch
|
||
|
"${FILESDIR}"/${P}-tinfo.patch
|
||
|
)
|
||
8 years ago
|
|
||
|
src_prepare() {
|
||
|
default
|
||
8 years ago
|
|
||
|
use X && eapply "${FILESDIR}"/${P}-fontdir.patch
|
||
|
|
||
8 years ago
|
eautoreconf
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
dodir /usr/share/consolefonts
|
||
|
dodir /usr/lib/kbd/consolefonts
|
||
|
use X && dodir /usr/share/fonts/misc
|
||
8 years ago
|
|
||
|
default
|
||
8 years ago
|
}
|
||
|
|
||
|
pkg_postinst() {
|
||
|
if use X; then
|
||
|
if [[ -d "${ROOT}"usr/share/fonts/misc ]] ; then
|
||
|
einfo ">>> Running mkfontdir on ${ROOT}usr/share/fonts/misc"
|
||
8 years ago
|
mkfontdir "${ROOT}"usr/share/fonts/misc
|
||
8 years ago
|
fi
|
||
|
fi
|
||
|
}
|