[139471] trunk/dports/games/cmatrix
jmr at macports.org
jmr at macports.org
Mon Aug 17 19:04:17 PDT 2015
Revision: 139471
https://trac.macports.org/changeset/139471
Author: jmr at macports.org
Date: 2015-08-17 19:04:17 -0700 (Mon, 17 Aug 2015)
Log Message:
-----------
cmatrix: add missing ncurses dep, add variant to install X11 font, update homepage
Modified Paths:
--------------
trunk/dports/games/cmatrix/Portfile
Added Paths:
-----------
trunk/dports/games/cmatrix/files/
trunk/dports/games/cmatrix/files/Makefile.in.patch
Modified: trunk/dports/games/cmatrix/Portfile
===================================================================
--- trunk/dports/games/cmatrix/Portfile 2015-08-18 01:18:43 UTC (rev 139470)
+++ trunk/dports/games/cmatrix/Portfile 2015-08-18 02:04:17 UTC (rev 139471)
@@ -4,21 +4,44 @@
name cmatrix
version 1.2a
+revision 1
categories games x11
platforms darwin
license GPL
maintainers nomaintainer
description Console Matrix
long_description Console Matrix simulates the display from "The Matrix"
-homepage http://www.astyanax.org/old/cmatrix/
+homepage http://www.asty.org/cmatrix/
master_sites ${homepage}dist
checksums md5 ebfb5733104a258173a9ccf2669968a1 \
sha1 ca078c10322a47e327f07a44c9a42b52eab5ad93 \
rmd160 8a401753ca0e88c0d24b6a8c3f23b725368c13bb
+depends_lib port:ncurses
+
+patchfiles Makefile.in.patch
+
configure.args --mandir=${prefix}/share/man
+variant x11font description {Install matrix font for X11} {
+ depends_lib-append port:fontconfig port:mkfontscale port:mkfontdir
+ set font_dir ${prefix}/share/fonts/misc
+ pre-destroot {
+ xinstall -d ${destroot}${font_dir}
+ }
+ post-activate {
+ system "mkfontscale ${font_dir}"
+ system "mkfontdir ${font_dir}"
+ system "fc-cache ${font_dir}"
+ }
+ post-deactivate {
+ system "mkfontscale ${font_dir}"
+ system "mkfontdir ${font_dir}"
+ system "fc-cache ${font_dir}"
+ }
+}
+
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex {cmatrix-([0-9a-z\.]+)\.tar\.gz}
Added: trunk/dports/games/cmatrix/files/Makefile.in.patch
===================================================================
--- trunk/dports/games/cmatrix/files/Makefile.in.patch (rev 0)
+++ trunk/dports/games/cmatrix/files/Makefile.in.patch 2015-08-18 02:04:17 UTC (rev 139471)
@@ -0,0 +1,40 @@
+--- Makefile.in.orig 2002-04-01 12:11:59.000000000 +1000
++++ Makefile.in 2015-08-18 11:54:58.000000000 +1000
+@@ -403,34 +403,9 @@
+
+
+ install-data-local:
+- @if test -d /usr/share/consolefonts; then \
+- echo " Installing matrix fonts in /usr/share/consolefonts..."; \
+- $(INSTALL_DATA) $(srcdir)/matrix.fnt /usr/share/consolefonts; \
+- $(INSTALL_DATA) $(srcdir)/matrix.psf.gz /usr/share/consolefonts; \
+- fi
+- @if test -d /usr/lib/kbd/consolefonts; then \
+- echo " Installing matrix fonts in /usr/lib/kbd/consolefonts..."; \
+- $(INSTALL_DATA) $(srcdir)/matrix.fnt /usr/lib/kbd/consolefonts; \
+- $(INSTALL_DATA) $(srcdir)/matrix.psf.gz /usr/lib/kbd/consolefonts; \
+- fi
+- @if test -d /usr/lib/X11/fonts/misc; then \
+- echo " Installing X window matrix fonts in /usr/lib/X11/fonts/misc..."; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/lib/X11/fonts/misc; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/lib/X11/fonts/misc; \
+- echo " Running mkfontdir /usr/lib/X11/fonts/misc..."; \
+- $(MKFONTDIR) /usr/lib/X11/fonts/misc; \
+- echo " Done. If this is the first time you have installed CMatrix you will"; \
+- echo " probably have to restart X window in order to use the mtx.pcf font."; \
+- else \
+- if test -d /usr/X11R6/lib/X11/fonts/misc; then \
+- echo " Installing X window matrix fonts in /usr/X11R6/lib/X11/fonts/misc..."; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/X11R6/lib/X11/fonts/misc; \
+- $(INSTALL_DATA) $(srcdir)/mtx.pcf /usr/X11R6/lib/X11/fonts/misc; \
+- echo " Running mkfontdir /usr/X11R6/lib/X11/fonts/misc..."; \
+- $(MKFONTDIR) /usr/X11R6/lib/X11/fonts/misc; \
+- echo " Done. If this is the first time you have installed CMatrix you will"; \
+- echo " probably have to restart X window in order to use the mtx.pcf font."; \
+- fi \
++ @if test -d $(DESTDIR)$(prefix)/share/fonts/misc; then \
++ echo " Installing X window matrix fonts in $(prefix)/share/fonts/misc..."; \
++ $(INSTALL_DATA) $(srcdir)/mtx.pcf $(DESTDIR)$(prefix)/share/fonts/misc; \
+ fi
+
+ # Tell versions [3.59,3.63) of GNU make to not export all variables.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20150817/ee8b32e0/attachment.html>
More information about the macports-changes
mailing list