summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeemant Kulleen <seemant@gentoo.org>2002-07-10 01:26:01 +0000
committerSeemant Kulleen <seemant@gentoo.org>2002-07-10 01:26:01 +0000
commit7508a3f4727ccc51ef02e866b83c7d53052b5ab8 (patch)
treed19a4e1d74430985ffeb0df3238bbf445b32ad50 /app-misc/cmatrix/cmatrix-1.2a.ebuild
parentsmall fix in vim (diff)
downloadhistorical-7508a3f4727ccc51ef02e866b83c7d53052b5ab8.tar.gz
historical-7508a3f4727ccc51ef02e866b83c7d53052b5ab8.tar.bz2
historical-7508a3f4727ccc51ef02e866b83c7d53052b5ab8.zip
new package
Diffstat (limited to 'app-misc/cmatrix/cmatrix-1.2a.ebuild')
-rw-r--r--app-misc/cmatrix/cmatrix-1.2a.ebuild60
1 files changed, 60 insertions, 0 deletions
diff --git a/app-misc/cmatrix/cmatrix-1.2a.ebuild b/app-misc/cmatrix/cmatrix-1.2a.ebuild
new file mode 100644
index 000000000000..f947457920e9
--- /dev/null
+++ b/app-misc/cmatrix/cmatrix-1.2a.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-misc/cmatrix/cmatrix-1.2a.ebuild,v 1.1 2002/07/10 01:26:01 seemant Exp $
+
+S=${WORKDIR}/${P}
+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"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="x86"
+
+DEPEND="X? ( virtual/x11 )
+ sys-libs/ncurses"
+
+src_unpack() {
+
+ unpack ${A}
+
+ # patch Makefile.am to make sure the fonts installations don't violate the
+ # sandbox.
+ cd ${S}
+ patch -p1 < ${FILESDIR}/${P}-gentoo.patch || die
+ automake
+}
+
+src_compile() {
+
+ econf || die
+ emake || die
+}
+
+src_install() {
+
+ dodir /usr/share/consolefonts
+ dodir /usr/lib/kbd/consolefonts
+ use X && ( \
+ dodir /usr/lib/X11/fonts/misc
+ dodir /usr/X11R6/lib/X11/fonts/misc
+ )
+ make DESTDIR=${D} install || die
+
+}
+
+pkg_postinst() {
+
+ if [ "`use X`" ]
+ then
+ if test -d /usr/lib/X11/fonts/misc; then
+ einfo ">>> Running mkfontdir on /usr/lib/X11/fonts/misc"
+ mkfontdir /usr/lib/X11/fonts/misc
+ fi
+
+ if test -d /usr/X11R6/lib/X11/fonts/misc; then
+ einfo ">>> Running mkfontdir on /usr/X11R6/lib/X11/fonts/misc"
+ mkfontdir /usr/X11R6/lib/X11/fonts/misc
+ fi
+ fi
+}