[71183] trunk/dports/sysutils

ryandesign at macports.org ryandesign at macports.org
Fri Sep 3 15:08:31 PDT 2010


Revision: 71183
          http://trac.macports.org/changeset/71183
Author:   ryandesign at macports.org
Date:     2010-09-03 15:08:29 -0700 (Fri, 03 Sep 2010)
Log Message:
-----------
showkey: new port, version 1.4; see #26156

Added Paths:
-----------
    trunk/dports/sysutils/showkey/
    trunk/dports/sysutils/showkey/Portfile
    trunk/dports/sysutils/showkey/files/
    trunk/dports/sysutils/showkey/files/patch-Makefile.diff

Added: trunk/dports/sysutils/showkey/Portfile
===================================================================
--- trunk/dports/sysutils/showkey/Portfile	                        (rev 0)
+++ trunk/dports/sysutils/showkey/Portfile	2010-09-03 22:08:29 UTC (rev 71183)
@@ -0,0 +1,42 @@
+# $Id$
+
+PortSystem          1.0
+
+name                showkey
+version             1.4
+categories          sysutils
+platforms           darwin
+maintainers         gmail.com:phillipao
+license             MIT
+
+description         echo raw keystrokes back at you in a printable form
+
+long_description    This program puts your terminal in raw mode, eats \
+                    keystrokes, and prints them back it you in a recognizable \
+                    printed form (using <>-surrounded ASCII mnemonics for \
+                    non-printables). \
+                    This may be useful, for example, if you're not certain \
+                    what your keyboard keys are sending.
+
+homepage            http://catb.org/esr/showkey/
+master_sites        ${homepage}
+
+checksums           md5     fae2e9e94e93109e810876c163d7c385 \
+                    sha1    b42973cbdc9fe131b4b0c6cd736cdff491225c3d \
+                    rmd160  d2f35e3203e05e465e26ecea3a2bc7015fdebf16
+
+patchfiles          patch-Makefile.diff
+
+use_configure       no
+
+variant universal {}
+if {[variant_isset universal]} {
+    set archflags ${configure.universal_cflags}
+} else {
+    set archflags ${configure.cc_archflags}
+}
+
+build.target
+build.args          CC="${configure.cc} ${archflags}"
+
+destroot.args       PREFIX=${prefix}


Property changes on: trunk/dports/sysutils/showkey/Portfile
___________________________________________________________________
Added: svn:keywords
   + Id
Added: svn:eol-style
   + native

Added: trunk/dports/sysutils/showkey/files/patch-Makefile.diff
===================================================================
--- trunk/dports/sysutils/showkey/files/patch-Makefile.diff	                        (rev 0)
+++ trunk/dports/sysutils/showkey/files/patch-Makefile.diff	2010-09-03 22:08:29 UTC (rev 71183)
@@ -0,0 +1,29 @@
+--- Makefile.orig	2003-12-29 16:15:24.000000000 -0600
++++ Makefile	2010-09-03 17:01:49.000000000 -0500
+@@ -1,5 +1,7 @@
+ # showkey -- keystroke echoer
+ 
++PREFIX=/usr/local
++
+ VERS=$(shell sed <showkey.spec -n -e '/Version: \(.*\)/s//\1/p')
+ 
+ showkey: showkey.c
+@@ -12,12 +14,14 @@
+ 	rm -f showkey showkey.o splashscreen.h showkey.1 *.rpm *.tar.gz
+ 
+ install: showkey.1
+-	cp showkey /usr/bin/showkey
+-	cp showkey.1 /usr/share/man/man1
++	mkdir -p $(DESTDIR)$(PREFIX)/bin
++	cp showkey $(DESTDIR)$(PREFIX)/bin/showkey
++	mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1
++	cp showkey.1 $(DESTDIR)$(PREFIX)/share/man/man1
+ 
+ uninstall:
+-	rm /usr/bin/showkey
+-	rm /usr/share/man/man1/showkey.1
++	rm $(PREFIX)/bin/showkey
++	rm $(PREFIX)/share/man/man1/showkey.1
+ 
+ SOURCES = README Makefile showkey.c showkey.xml showkey.spec
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100903/ad0bb8bb/attachment-0001.html>


More information about the macports-changes mailing list