summaryrefslogtreecommitdiffstats
path: root/japanese/xshodou
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-06-23 13:44:03 +0000
committersobomax <sobomax@FreeBSD.org>2000-06-23 13:44:03 +0000
commit75802943a41a8d04904b4f8f73577c1e1f41bd19 (patch)
treecdb15359f6b17edd36ab0ef3a40572e8e1afb2d9 /japanese/xshodou
parent8ec81ff63c63edeff820bab082cf56a6e9155929 (diff)
downloadFreeBSD-ports-75802943a41a8d04904b4f8f73577c1e1f41bd19.zip
FreeBSD-ports-75802943a41a8d04904b4f8f73577c1e1f41bd19.tar.gz
- Support LOCALBASE properly (in setting path to custom wish script)
PR: 19470 Submitted by: KATO Tsuguru <tkato@prontomail.ne.jp>
Diffstat (limited to 'japanese/xshodou')
-rw-r--r--japanese/xshodou/Makefile3
-rw-r--r--japanese/xshodou/files/patch-ab2
2 files changed, 4 insertions, 1 deletions
diff --git a/japanese/xshodou/Makefile b/japanese/xshodou/Makefile
index da1b7ce..7e8a626 100644
--- a/japanese/xshodou/Makefile
+++ b/japanese/xshodou/Makefile
@@ -18,4 +18,7 @@ USE_X_PREFIX= yes
MAN1= xshodou.1
MANCOMPRESSED= yes
+post-patch:
+ @${PERL} -pi -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/xshodou
+
.include <bsd.port.mk>
diff --git a/japanese/xshodou/files/patch-ab b/japanese/xshodou/files/patch-ab
index a527a6d..46036e6 100644
--- a/japanese/xshodou/files/patch-ab
+++ b/japanese/xshodou/files/patch-ab
@@ -2,7 +2,7 @@
+++ xshodou Mon Jan 11 15:08:33 1999
@@ -1,4 +1,4 @@
-#!/usr/local/bin/wish
-+#!/usr/local/bin/wish8.0
++#!%%LOCALBASE%%/bin/wish8.0
#
# XShodou version 1.11 for X based on Tcl/Tk.
# Programed by Sakai Hiroaki. (E-Mail:sakai@miya.ee.kagu.sut.ac.jp)
OpenPOWER on IntegriCloud