From nobody Sat May 06 16:17:28 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4QDCPh3ZXYz49mkR; Sat, 6 May 2023 16:17:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4QDCPh3FFPz4Zy4; Sat, 6 May 2023 16:17:28 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683389848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1zx6LttQDiMw0NCG2edtcR7HQc8Gs2cS/dsS8CqVmIc=; b=Hm1r4hRyq8lHd77CKwKMUpTB1PHpFuQcg7EXeH17PrquvvCp2p+IQjO1zV2Fu9pd82gOKz BfQB7iNFbHRbVssZYm1b/LaJuxDeIFyMe9UX5olpdvYjimrQ/AtygTXldQwDV3pmUrNIEE nlETq+Vy9N+Ns4Uekhyaf4gH1GYqNTahpNG8uWYD1P6JCIfBEPHlCdz0styjSVd9caWviD SiMmyvnD9lI0xyf7WHI8JMpRhE9nTo2crjKwuOwSlYd29zVVtV8zciicISSHJprpz11Y2B f7cc6MxhMAFS9mDAd5XzsFopR9H405bdqvXjg/Y2FISp1SuubNUR+qSw3PmEmg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1683389848; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=1zx6LttQDiMw0NCG2edtcR7HQc8Gs2cS/dsS8CqVmIc=; b=weX6LJe/MPG4cYUAQxzb58bPFA3zekx9ibXBUiZDGuu4ywjfDqMVkyyYdhCIgku5Zww9DK 5/NJoJi2jX9pVS1M1v28U1BYGDYczRCLCQnqc2RxYfIG8g5SQGQYoKLEoepwPJRo+vg+id TPZ7EpjcCtqMwuufOpV8SGHMPz7FnZzgQZNZLl1brnLwQCufYR5hSoW2WdAYzRyjlZny2w IZMDdWWqaYU5PWjFyl2JK/GlNDcyGvvexj6PpqwOIHwkRFrNMKAMLvw1pgRL4LlfVxiy0w cDcuXKvmZUDZhod8ZrtHQRDJsVtN1J304vSz05s8iOgkFbtqpNHydLw2jiYnEA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1683389848; a=rsa-sha256; cv=none; b=EEtEqsI6x84Hd728t2Xe39U0ffptjuZe0WzxfOgFQvy1rr2CaWMyRJ9hoL3roJyAYZqOhy IzPvLlkkvAIBqQTsQ4C6bMsUPtrkEIdHajLJNib1veRY45nE65FjgBG5lz4Y+nCz4W13i/ iuo4O16yDmMNj1M33c8IGcRqkJJnOmzzR9KqJcVHj+W0Q+g0EAjZQvSD01UaSGcngakI2X Qeqer19zTV3jYoiBo6AdPIykyg5+17k3B1iKKe7+1IHnmSLVzv+RS8gK8KcysT/nJl8pLB kfgh7RdSUw1B1qLfBXRjolG2BW+CZhbSN3rdjJ++fvcSJeE/jnZhd6lnMpxVAg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4QDCPh2GxCzjWS; Sat, 6 May 2023 16:17:28 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 346GHSxP069277; Sat, 6 May 2023 16:17:28 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 346GHSWW069276; Sat, 6 May 2023 16:17:28 GMT (envelope-from git) Date: Sat, 6 May 2023 16:17:28 GMT Message-Id: <202305061617.346GHSWW069276@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Norikatsu Shigemura Subject: git: 1b05393b7d60 - main - lang/scratch: Add Scratch 1.4.0.7, is a new programing language List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nork X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 1b05393b7d60dfeb0fed25af48214d73971a4e38 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nork: URL: https://cgit.FreeBSD.org/ports/commit/?id=1b05393b7d60dfeb0fed25af48214d73971a4e38 commit 1b05393b7d60dfeb0fed25af48214d73971a4e38 Author: Takeshi Mutoh AuthorDate: 2023-05-06 16:10:52 +0000 Commit: Norikatsu Shigemura CommitDate: 2023-05-06 16:10:52 +0000 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 Approved by: hrs (mentor) --- lang/Makefile | 1 + lang/scratch/Makefile | 52 + lang/scratch/distinfo | 3 + lang/scratch/files/patch-Makefile | 15 + .../files/patch-src_plugins_camera_Makefile | 13 + .../patch-src_plugins_camera_sqCamera-linux.c | 11 + .../files/patch-src_plugins_scratch_Makefile | 13 + .../files/patch-src_plugins_unicode_Makefile | 13 + lang/scratch/files/patch-src_plugins_wedo_Makefile | 13 + lang/scratch/files/patch-src_scratch | 18 + lang/scratch/files/pkg-message.in | 15 + lang/scratch/pkg-descr | 6 + lang/scratch/pkg-plist | 1142 ++++++++++++++++++++ 13 files changed, 1315 insertions(+) diff --git a/lang/Makefile b/lang/Makefile index e36bf445f43c..ab8700913696 100644 --- a/lang/Makefile +++ b/lang/Makefile @@ -324,6 +324,7 @@ SUBDIR += scala SUBDIR += scheme48 SUBDIR += scm + SUBDIR += scratch SUBDIR += sdcc SUBDIR += see SUBDIR += seed7 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: <