summaryrefslogtreecommitdiff
path: root/lang/scratch/files/patch-src_scratch
diff options
context:
space:
mode:
authorTakeshi Mutoh <takeshi.mutoh@gmail.com>2023-05-07 01:10:52 +0900
committerNorikatsu Shigemura <nork@FreeBSD.org>2023-05-07 01:10:52 +0900
commit1b05393b7d60dfeb0fed25af48214d73971a4e38 (patch)
tree9991ac7908efd681e9cb418fb040f009d486a3cf /lang/scratch/files/patch-src_scratch
parentdevel/R-cran-data.table: Update to 1.14.8 (diff)
lang/scratch: Add Scratch 1.4.0.7, is a new programing language
that makes it easy to create your own interactive stories, animations, games, music, and art - and share your creations on the web. WWW: https://scratch.mit.edu/ PR: 216811 Requested by: Takeshi Mutoh <takeshi.mutoh@gmail.com> Approved by: hrs (mentor)
Diffstat (limited to 'lang/scratch/files/patch-src_scratch')
-rw-r--r--lang/scratch/files/patch-src_scratch18
1 files changed, 18 insertions, 0 deletions
diff --git a/lang/scratch/files/patch-src_scratch b/lang/scratch/files/patch-src_scratch
new file mode 100644
index 000000000000..657adc323d17
--- /dev/null
+++ b/lang/scratch/files/patch-src_scratch
@@ -0,0 +1,18 @@
+--- src/scratch.orig 2011-07-01 22:21:32 UTC
++++ src/scratch
+@@ -4,11 +4,11 @@
+ # Original Author: Bert Freudenberg
+ # Adapted by: Miriam Ruiz
+
+-VM_VERSION=`find /usr/lib/squeak/ -name "squeakvm" -type f|cut -f5 -d"/"`
+-SQ_DIR=/usr/lib/squeak/$VM_VERSION
++VM_VERSION=`find %%PREFIX%%/lib/squeak/ -name "squeakvm" -type f|awk -F/ '{print $(NF-1)}'`
++SQ_DIR=%%PREFIX%%/lib/squeak/$VM_VERSION
+ VM="$SQ_DIR/squeakvm"
+-VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins /usr/lib/scratch/Plugins/:$SQ_DIR/"
+-IMAGE="/usr/lib/scratch/Scratch.image"
++VMOPTIONS="-encoding UTF-8 -vm-display-x11 -xshm -plugins %%PREFIX%%/share/scratch/Plugins/:$SQ_DIR/"
++IMAGE="%%PREFIX%%/share/scratch/Scratch.image"
+ IMOPTIONS=""
+ DOCUMENT=""
+ WRAPPER=""