ports/lang/scratch/files/patch-src_scratch
Takeshi Mutoh 1b05393b7d
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)
2023-05-07 01:10:52 +09:00

18 lines
744 B
Text

--- 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=""