aboutsummaryrefslogtreecommitdiff
path: root/devel/critcl
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2017-09-22 07:24:42 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2017-09-22 07:24:42 +0000
commitfb0fc20e81392cc377689de350c9df958f17649f (patch)
tree75aece3a0e0077ac7ee8969a66f263a974df97d9 /devel/critcl
parent290f349c6280104114c75888f82568fb1e2a933b (diff)
downloadports-fb0fc20e81392cc377689de350c9df958f17649f.tar.gz
ports-fb0fc20e81392cc377689de350c9df958f17649f.zip
devel/critcl: add missing patch file
Notes
Notes: svn path=/head/; revision=450318
Diffstat (limited to 'devel/critcl')
-rw-r--r--devel/critcl/files/patch-build.tcl20
1 files changed, 20 insertions, 0 deletions
diff --git a/devel/critcl/files/patch-build.tcl b/devel/critcl/files/patch-build.tcl
new file mode 100644
index 000000000000..fb83b296a53c
--- /dev/null
+++ b/devel/critcl/files/patch-build.tcl
@@ -0,0 +1,20 @@
+--- build.tcl.orig 2017-08-25 03:29:15 UTC
++++ build.tcl
+@@ -323,7 +323,7 @@ proc _install {args} {
+ set dsta [file dirname [file dirname [file normalize [info nameofexecutable]/___]]]
+ } else {
+ set dstl [lindex $args 0]
+- set dsta [file dirname [findlib $dstl]]/bin
++ set dsta $dstl/../bin
+ }
+
+ set selfdir [file dirname $me]
+@@ -369,7 +369,7 @@ proc _install {args} {
+ set theapp [critapp $dsta]
+
+ set c [open $theapp w]
+- puts $c "#!/bin/sh\n# -*- tcl -*- \\\nexec [file dirname [file normalize [info nameofexecutable]/___]] \"\$0\" \$\{1+\"\$@\"\}\npackage require critcl::app\ncritcl::app::main \$argv"
++ puts $c "#!/bin/sh\n# -*- tcl -*- \\\nexec [file dirname [file normalize [info nameofexecutable]/___]] \"\$0\" \$\{1+\"\$@\"\}\nlappend auto_path \[file join \[file dirname \[info script\]\] .. lib\]\npackage require critcl::app\ncritcl::app::main \$argv"
+ close $c
+ +x $theapp
+