diff --git a/lang/Makefile b/lang/Makefile index e36bf445f43c..ab8700913696 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -1,377 +1,378 @@ COMMENT = Programming languages SUBDIR += abcl SUBDIR += alchemist.el SUBDIR += algol68g SUBDIR += angelscript SUBDIR += antimony SUBDIR += apache-commons-jelly SUBDIR += asn1c SUBDIR += atlast SUBDIR += awka SUBDIR += bas2tap SUBDIR += basic256 SUBDIR += bsh SUBDIR += bwbasic SUBDIR += c SUBDIR += cbmbasic SUBDIR += ccl SUBDIR += ceylon SUBDIR += cfortran SUBDIR += chaiscript SUBDIR += chez-scheme SUBDIR += chibi-scheme SUBDIR += chicken SUBDIR += cim SUBDIR += cjs SUBDIR += cling SUBDIR += clips SUBDIR += clisp SUBDIR += clojure SUBDIR += clojure-mode.el SUBDIR += clover SUBDIR += cocor SUBDIR += coffeescript SUBDIR += colm SUBDIR += cparser SUBDIR += crystal SUBDIR += csharp-mode.el SUBDIR += cython SUBDIR += cython-devel SUBDIR += dhall SUBDIR += dlang-tools SUBDIR += duktape SUBDIR += duktape-lib SUBDIR += ecl SUBDIR += eisl SUBDIR += elixir SUBDIR += elixir-devel SUBDIR += elixir-mode.el SUBDIR += elk SUBDIR += elm SUBDIR += emacs-lisp-intro SUBDIR += erlang SUBDIR += erlang-doc SUBDIR += erlang-java SUBDIR += erlang-man SUBDIR += erlang-runtime21 SUBDIR += erlang-runtime22 SUBDIR += erlang-runtime23 SUBDIR += erlang-runtime24 SUBDIR += erlang-runtime25 SUBDIR += erlang-wx SUBDIR += execline SUBDIR += expect SUBDIR += f2c SUBDIR += fasm SUBDIR += fennel SUBDIR += ferite SUBDIR += ficl SUBDIR += fpc SUBDIR += fpc-base SUBDIR += fpc-docs SUBDIR += fpc-lua SUBDIR += fpc-pastojs SUBDIR += fpc-rexx SUBDIR += fpc-rtl-console SUBDIR += fpc-rtl-extra SUBDIR += fpc-rtl-generics SUBDIR += fpc-rtl-objpas SUBDIR += fpc-rtl-unicode SUBDIR += fpc-source SUBDIR += fpc-units SUBDIR += fpc-utils SUBDIR += frawk SUBDIR += fsharp SUBDIR += fth SUBDIR += gambit-c SUBDIR += gauche SUBDIR += gawk SUBDIR += gcc SUBDIR += gcc10 SUBDIR += gcc11 SUBDIR += gcc11-devel SUBDIR += gcc12 SUBDIR += gcc12-devel SUBDIR += gcc13 SUBDIR += gcc13-devel SUBDIR += gcc14-devel SUBDIR += gcc48 SUBDIR += gcc6-aux SUBDIR += gcc8 SUBDIR += gcc9 SUBDIR += gforth SUBDIR += ghc SUBDIR += ghc810 SUBDIR += gir-to-d SUBDIR += gjs SUBDIR += gleam SUBDIR += gnat12 SUBDIR += gnatcross-binutils-aarch64 SUBDIR += gnatcross-sysroot-aarch64 SUBDIR += gnatdroid-binutils SUBDIR += gnatdroid-binutils-x86 SUBDIR += gnatdroid-sysroot SUBDIR += gnatdroid-sysroot-x86 SUBDIR += gnu-apl SUBDIR += gnu-cobol SUBDIR += gnustep-base SUBDIR += go SUBDIR += go-devel SUBDIR += go118 SUBDIR += go119 SUBDIR += go120 SUBDIR += gomacro SUBDIR += gprolog SUBDIR += gravity SUBDIR += groovy SUBDIR += gscheme SUBDIR += guile SUBDIR += guile1 SUBDIR += guile2 SUBDIR += halide SUBDIR += harec SUBDIR += haskell-mode.el SUBDIR += hermes SUBDIR += hla SUBDIR += hs-brainfuck SUBDIR += hs-futhark SUBDIR += hs-unlambda SUBDIR += huc SUBDIR += icc SUBDIR += intel-compute-runtime SUBDIR += intercal SUBDIR += io SUBDIR += io-devel SUBDIR += itcl SUBDIR += itcl4 SUBDIR += janet SUBDIR += jimtcl SUBDIR += jpm SUBDIR += jruby SUBDIR += julia SUBDIR += jython SUBDIR += kawa SUBDIR += kf5-kross SUBDIR += kotlin SUBDIR += kross-interpreters SUBDIR += kturtle SUBDIR += lafontaine SUBDIR += lci SUBDIR += ldc SUBDIR += lfe SUBDIR += lfortran SUBDIR += libhx SUBDIR += libobjc2 SUBDIR += librep SUBDIR += libstdc++_stldoc_4.2.2 SUBDIR += linux-c7-tcl85 SUBDIR += linux-dotnet-cli SUBDIR += linux-dotnet-runtime SUBDIR += linux-dotnet-sdk SUBDIR += linux-dotnet10-runtime SUBDIR += linux-dotnet11-runtime SUBDIR += linux-dotnet11-sdk SUBDIR += linux-j SUBDIR += lua51 SUBDIR += lua52 SUBDIR += lua53 SUBDIR += lua54 SUBDIR += luajit SUBDIR += luajit-devel SUBDIR += luajit-openresty SUBDIR += malbolge SUBDIR += maude SUBDIR += mawk SUBDIR += mdk SUBDIR += mecrisp-stellaris SUBDIR += micropython SUBDIR += mit-scheme SUBDIR += mixal SUBDIR += mlton SUBDIR += mmix SUBDIR += mono SUBDIR += mono-basic SUBDIR += mono5.10 SUBDIR += mono5.20 SUBDIR += mono6.8 SUBDIR += mosh SUBDIR += mosml SUBDIR += mtasc SUBDIR += mujs SUBDIR += munger SUBDIR += myrddin SUBDIR += nawk SUBDIR += nbfc SUBDIR += neko SUBDIR += nesasm SUBDIR += newlisp SUBDIR += nhc98 SUBDIR += nickle SUBDIR += nim SUBDIR += njs SUBDIR += nqc SUBDIR += nwcc SUBDIR += nx SUBDIR += nyan SUBDIR += ocaml SUBDIR += ocaml-autoconf SUBDIR += ocaml-camlidl SUBDIR += ocaml-nox11 SUBDIR += onyx SUBDIR += oo2c SUBDIR += opencoarrays SUBDIR += opensycl SUBDIR += ott SUBDIR += owl-lisp SUBDIR += p5-Data-JavaScript SUBDIR += p5-Error SUBDIR += p5-Expect SUBDIR += p5-ExtUtils-F77 SUBDIR += p5-Interpolation SUBDIR += p5-JSAN SUBDIR += p5-JavaScript-Squish SUBDIR += p5-JavaScript-Value-Escape SUBDIR += p5-List-MoreUtils SUBDIR += p5-List-MoreUtils-XS SUBDIR += p5-Marpa SUBDIR += p5-Marpa-PP SUBDIR += p5-Marpa-XS SUBDIR += p5-Modern-Perl SUBDIR += p5-Perl6-Subs SUBDIR += p5-Promises SUBDIR += p5-Pugs-Compiler-Rule SUBDIR += p5-Quantum-Superpositions SUBDIR += p5-Scalar-List-Utils SUBDIR += p5-Switch SUBDIR += p5-Tcl SUBDIR += p5-Test-XPath SUBDIR += p5-Try-Catch SUBDIR += p5-Try-Tiny SUBDIR += p5-Try-Tiny-Retry SUBDIR += p5-TryCatch SUBDIR += p5-ePerl SUBDIR += p5-signatures SUBDIR += p5-v6 SUBDIR += parrot SUBDIR += pbasic SUBDIR += pcc SUBDIR += perl5-devel SUBDIR += perl5.32 SUBDIR += perl5.34 SUBDIR += perl5.36 SUBDIR += petite-chez SUBDIR += pfe SUBDIR += pharo SUBDIR += php-mode.el SUBDIR += php80 SUBDIR += php80-extensions SUBDIR += php81 SUBDIR += php81-extensions SUBDIR += php82 SUBDIR += php82-extensions SUBDIR += picoc SUBDIR += plexil SUBDIR += pocl SUBDIR += polyml SUBDIR += pomsky SUBDIR += ptoc SUBDIR += purescript SUBDIR += py-hy SUBDIR += py-lupa SUBDIR += py-textX SUBDIR += python SUBDIR += python-doc-html SUBDIR += python-doc-pdf-a4 SUBDIR += python-doc-pdf-letter SUBDIR += python-doc-text SUBDIR += python-mode.el SUBDIR += python-tools SUBDIR += python2 SUBDIR += python27 SUBDIR += python3 SUBDIR += python310 SUBDIR += python311 SUBDIR += python37 SUBDIR += python38 SUBDIR += python39 SUBDIR += qmasm SUBDIR += qscheme SUBDIR += quickjs SUBDIR += quilc SUBDIR += racket SUBDIR += racket-minimal SUBDIR += ratfor SUBDIR += referenceassemblies-pcl SUBDIR += retro12 SUBDIR += rexx-imc SUBDIR += rexx-regina SUBDIR += rexx-regutil SUBDIR += rexx-wrapper SUBDIR += rhino SUBDIR += ruby30 SUBDIR += ruby31 SUBDIR += ruby32 SUBDIR += rubygem-ruby_language_server SUBDIR += runawk SUBDIR += rust SUBDIR += rust-bootstrap SUBDIR += rust-nightly SUBDIR += sagittarius-scheme SUBDIR += sather-specification SUBDIR += sather-tutorial SUBDIR += sbcl SUBDIR += scala SUBDIR += scheme48 SUBDIR += scm + SUBDIR += scratch SUBDIR += sdcc SUBDIR += see SUBDIR += seed7 SUBDIR += silq SUBDIR += siod SUBDIR += sisc SUBDIR += sketchy SUBDIR += slib SUBDIR += slib-guile SUBDIR += slib-guile1 SUBDIR += slib-guile2 SUBDIR += slisp SUBDIR += smalltalk SUBDIR += smlnj SUBDIR += snobol4 SUBDIR += solidity SUBDIR += spidermonkey102 SUBDIR += spidermonkey78 SUBDIR += spidermonkey91 SUBDIR += spl SUBDIR += squeak SUBDIR += squirrel SUBDIR += swi-pl SUBDIR += tauthon SUBDIR += tcbasic SUBDIR += tcc SUBDIR += tcl-manual SUBDIR += tcl-wrapper SUBDIR += tcl85 SUBDIR += tcl86 SUBDIR += tcl87 SUBDIR += tclX SUBDIR += tolua SUBDIR += tolua++ SUBDIR += tuareg-mode.el SUBDIR += twelf SUBDIR += ucc SUBDIR += urweb SUBDIR += v SUBDIR += v8 SUBDIR += v8-beta SUBDIR += vala SUBDIR += voc SUBDIR += yabasic SUBDIR += yap SUBDIR += yorick SUBDIR += ypsilon SUBDIR += zephir SUBDIR += zig .include diff --git a/lang/scratch/Makefile b/lang/scratch/Makefile new file mode 100644 index 000000000000..b0bcf0bd6095 --- /dev/null +++ b/lang/scratch/Makefile @@ -0,0 +1,52 @@ +PORTNAME= scratch +PORTVERSION= 1.4.0.7 +CATEGORIES= lang +MASTER_SITES= https://download.scratch.mit.edu/ +DISTNAME= ${PORTNAME}-${PORTVERSION}.src + +MAINTAINER= takeshi.mutoh@gmail.com +COMMENT= Scratch programing language +WWW= https://scratch.mit.edu/ + +LICENSE= CC-BY-SA-3.0 GPLv2 MIT +LICENSE_COMB= multi +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= pkg-config:devel/pkgconf \ + v4l_compat>=1.0.20100321:multimedia/v4l_compat +LIB_DEPENDS= libpango-1.0.so:x11-toolkits/pango \ + libv4l2.so:multimedia/libv4l +RUN_DEPENDS= squeak:lang/squeak + +DESKTOP_ENTRIES= "Scratch" \ + "${COMMENT}" \ + "${DATADIR}/icons/128x128/scratch.png" \ + "scratch" \ + "Development;Education;" \ + false +SUB_FILES= pkg-message + +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION}.src + +SC_DIR= ${PREFIX}/share/scratch + +post-patch: + ${REINPLACE_CMD} 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/scratch + +do-install: + @${MKDIR} ${STAGEDIR}${SC_DIR}/Plugins +.for p in Unicode Scratch Camera + ${INSTALL_LIB} ${WRKSRC}/Plugins/so.${p}Plugin ${STAGEDIR}${SC_DIR}/Plugins/ +.endfor +.for f in Help locale Media Projects + @cd ${WRKSRC}/$f && ${COPYTREE_SHARE} . ${STAGEDIR}${SC_DIR}/$f +.endfor +.for f in Scratch.image Scratch.ini + ${INSTALL_DATA} ${WRKSRC}/$f ${STAGEDIR}${SC_DIR}/$f +.endfor + @cd ${WRKSRC}/src/icons && ${COPYTREE_SHARE} . ${STAGEDIR}${SC_DIR}/icons + ${INSTALL_SCRIPT} ${WRKSRC}/src/scratch ${STAGEDIR}${PREFIX}/bin/scratch + ${INSTALL_MAN} ${WRKSRC}/src/man/scratch.1.gz ${STAGEDIR}${PREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/src/scratch.desktop ${STAGEDIR}${PREFIX}/share/applications/scratch.desktop + +.include diff --git a/lang/scratch/distinfo b/lang/scratch/distinfo new file mode 100644 index 000000000000..5e0fcc75d231 --- /dev/null +++ b/lang/scratch/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1483355598 +SHA256 (scratch-1.4.0.7.src.tar.gz) = b94d89278ecef2ba2d1147eec23936dd99697293ffa2c216c0a375ba98226a3e +SIZE (scratch-1.4.0.7.src.tar.gz) = 47617852 diff --git a/lang/scratch/files/patch-Makefile b/lang/scratch/files/patch-Makefile new file mode 100644 index 000000000000..24af7bb07926 --- /dev/null +++ b/lang/scratch/files/patch-Makefile @@ -0,0 +1,15 @@ +--- Makefile.orig 2011-05-25 18:53:42 UTC ++++ Makefile +@@ -4,10 +4,10 @@ build: + $(MAKE) build -C src/plugins/scratch/ + $(MAKE) build -C src/plugins/unicode/ + $(MAKE) build -C src/plugins/camera/ +- $(MAKE) build -C src/plugins/wedo/ ++# $(MAKE) build -C src/plugins/wedo/ + + clean: + $(MAKE) clean -C src/plugins/scratch/ + $(MAKE) clean -C src/plugins/unicode/ + $(MAKE) clean -C src/plugins/camera/ +- $(MAKE) clean -C src/plugins/wedo/ ++# $(MAKE) clean -C src/plugins/wedo/ diff --git a/lang/scratch/files/patch-src_plugins_camera_Makefile b/lang/scratch/files/patch-src_plugins_camera_Makefile new file mode 100644 index 000000000000..c2a62ed7d872 --- /dev/null +++ b/lang/scratch/files/patch-src_plugins_camera_Makefile @@ -0,0 +1,13 @@ +--- src/plugins/camera/Makefile.orig 2011-10-18 21:24:46 UTC ++++ src/plugins/camera/Makefile +@@ -1,8 +1,8 @@ + all: clean build + + build: +- gcc $(CFLAGS) -fPIC -c *.c +- gcc -shared *.o -o ../../../Plugins/so.CameraPlugin ++ $(CC) $(CFLAGS) -fPIC -I ${PREFIX}/include -c *.c ++ $(CC) -shared *.o -o ../../../Plugins/so.CameraPlugin + + clean: + rm -f *.o ../../../Plugins/so.CameraPlugin diff --git a/lang/scratch/files/patch-src_plugins_camera_sqCamera-linux.c b/lang/scratch/files/patch-src_plugins_camera_sqCamera-linux.c new file mode 100644 index 000000000000..0cffc2b0cfe3 --- /dev/null +++ b/lang/scratch/files/patch-src_plugins_camera_sqCamera-linux.c @@ -0,0 +1,11 @@ +--- src/plugins/camera/sqCamera-linux.c.orig 2011-10-18 21:24:46 UTC ++++ src/plugins/camera/sqCamera-linux.c +@@ -45,8 +45,6 @@ + #include + #include + +-#include /* for videodev2.h */ +- + #include + + diff --git a/lang/scratch/files/patch-src_plugins_scratch_Makefile b/lang/scratch/files/patch-src_plugins_scratch_Makefile new file mode 100644 index 000000000000..3e82cf271ee6 --- /dev/null +++ b/lang/scratch/files/patch-src_plugins_scratch_Makefile @@ -0,0 +1,13 @@ +--- src/plugins/scratch/Makefile.orig 2011-06-03 14:56:20 UTC ++++ src/plugins/scratch/Makefile +@@ -1,8 +1,8 @@ + all: clean build + + build: +- gcc $(CFLAGS) -fPIC -c *.c +- gcc -shared *.o -o ../../../Plugins/so.ScratchPlugin ++ $(CC) $(CFLAGS) -fPIC -c *.c ++ $(CC) -shared *.o -o ../../../Plugins/so.ScratchPlugin + + clean: + rm -f *.o ../../../Plugins/so.ScratchPlugin diff --git a/lang/scratch/files/patch-src_plugins_unicode_Makefile b/lang/scratch/files/patch-src_plugins_unicode_Makefile new file mode 100644 index 000000000000..f8b2da8b9394 --- /dev/null +++ b/lang/scratch/files/patch-src_plugins_unicode_Makefile @@ -0,0 +1,13 @@ +--- src/plugins/unicode/Makefile.orig 2011-06-03 14:56:20 UTC ++++ src/plugins/unicode/Makefile +@@ -1,8 +1,8 @@ + all: clean build + + build: +- gcc $(CFLAGS) -fPIC -c `pkg-config --cflags pangocairo` *.c +- gcc -shared `pkg-config --libs pangocairo` -lc *.o -o ../../../Plugins/so.UnicodePlugin ++ $(CC) $(CFLAGS) -fPIC -c `pkg-config --cflags pangocairo` *.c ++ $(CC) -shared `pkg-config --libs pangocairo` -lc *.o -o ../../../Plugins/so.UnicodePlugin + + clean: + rm -f *.o ../../../Plugins/so.UnicodePlugin diff --git a/lang/scratch/files/patch-src_plugins_wedo_Makefile b/lang/scratch/files/patch-src_plugins_wedo_Makefile new file mode 100644 index 000000000000..cfd8b198c5fd --- /dev/null +++ b/lang/scratch/files/patch-src_plugins_wedo_Makefile @@ -0,0 +1,13 @@ +--- src/plugins/wedo/Makefile.orig 2011-06-03 14:56:20 UTC ++++ src/plugins/wedo/Makefile +@@ -1,8 +1,8 @@ + all: clean build + + build: +- gcc $(CFLAGS) -fPIC -Wall -c -O2 *.c +- gcc -shared *.o -o ../../../Plugins/so.WeDoPlugin ++ $(CC) $(CFLAGS) -fPIC -Wall -c -O2 *.c ++ $(CC) -shared *.o -o ../../../Plugins/so.WeDoPlugin + + clean: + rm -f *.o ../../../Plugins/so.WeDoPlugin 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="" diff --git a/lang/scratch/files/pkg-message.in b/lang/scratch/files/pkg-message.in new file mode 100644 index 000000000000..78126221f16d --- /dev/null +++ b/lang/scratch/files/pkg-message.in @@ -0,0 +1,15 @@ +[ +{ type: install + message: <