aboutsummaryrefslogtreecommitdiffstats
path: root/lang/io
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2005-12-07 16:06:29 +0800
committerperky <perky@FreeBSD.org>2005-12-07 16:06:29 +0800
commitb9a6d8f80bbaee6c95f4b11c89ef044f36312921 (patch)
tree4d92457cdd56ddc72836295dd1da10896f85b52c /lang/io
parent3a873e54cb5b324d88202d8a742546d1abfa5dda (diff)
downloadfreebsd-ports-gnome-b9a6d8f80bbaee6c95f4b11c89ef044f36312921.tar.gz
freebsd-ports-gnome-b9a6d8f80bbaee6c95f4b11c89ef044f36312921.tar.zst
freebsd-ports-gnome-b9a6d8f80bbaee6c95f4b11c89ef044f36312921.zip
Add a patch that enables to press Ctrl-D to exit.
Obtained from: quag on freenode#io
Diffstat (limited to 'lang/io')
-rw-r--r--lang/io/Makefile4
-rw-r--r--lang/io/files/patch-vm::_ioCode::Z_CLI.io10
2 files changed, 14 insertions, 0 deletions
diff --git a/lang/io/Makefile b/lang/io/Makefile
index 90de0c7948bb..88c92632c258 100644
--- a/lang/io/Makefile
+++ b/lang/io/Makefile
@@ -7,6 +7,7 @@
PORTNAME= io
PORTVERSION= 0.0.2005.12.05
+PORTREVISION= 1
CATEGORIES= lang
MASTER_SITES= http://io.urbanape.com/release/ \
http://www.sigusr1.org/~steve/
@@ -49,6 +50,9 @@ pre-patch:
-e 's,\( -lIoVM\), -L${LOCALBASE}/lib \1 -lncurses ,' \
${WRKSRC}/_build.io
+post-patch:
+ ${FIND} ${WRKSRC} -name '*.orig' -delete
+
do-install:
.for fname in vm/io2c vm/io binaries/ioDesktop binaries/ioServer
${INSTALL_PROGRAM} ${WRKSRC}/${fname} ${PREFIX}/bin
diff --git a/lang/io/files/patch-vm::_ioCode::Z_CLI.io b/lang/io/files/patch-vm::_ioCode::Z_CLI.io
new file mode 100644
index 000000000000..9fb66c491c91
--- /dev/null
+++ b/lang/io/files/patch-vm::_ioCode::Z_CLI.io
@@ -0,0 +1,10 @@
+--- vm/_ioCode/Z_CLI.io 2005-12-04 23:12:32.000000000 +1300
++++ vm/_ioCode/Z_CLI.io 2005-12-05 21:00:35.000000000 +1300
+@@ -35,6 +35,7 @@
+ write(inPrompt)
+ line := stdin readLine
+ result := nil
++ line ifNil(Lobby exit)
+ e := try(result = Lobby doString(line))
+ if (e, e showStack)
+ writeln(outPrompt, result)