diff options
| author | Takeshi Mutoh <takeshi.mutoh@gmail.com> | 2023-05-06 16:10:52 +0000 |
|---|---|---|
| committer | Norikatsu Shigemura <nork@FreeBSD.org> | 2023-05-06 16:10:52 +0000 |
| commit | 1b05393b7d60dfeb0fed25af48214d73971a4e38 (patch) | |
| tree | 9991ac7908efd681e9cb418fb040f009d486a3cf /lang/scratch/files/patch-src_scratch | |
| parent | 1531a89c192632b75357803f5c3f364aeddb4e48 (diff) | |
Diffstat (limited to 'lang/scratch/files/patch-src_scratch')
| -rw-r--r-- | lang/scratch/files/patch-src_scratch | 18 |
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="" |
