| Summary: | [New port] lang/scratch: block based programing language using for educational purpose | ||
|---|---|---|---|
| Product: | Ports & Packages | Reporter: | takeshi.mutoh |
| Component: | Individual Port(s) | Assignee: | Norikatsu Shigemura <nork> |
| Status: | Closed FIXED | ||
| Severity: | Affects Only Me | CC: | FreeBSD, grahamperrin, nork, swills, takefu, takeshi.mutoh, wen |
| Priority: | --- | Keywords: | needs-qa |
| Version: | Latest | ||
| Hardware: | Any | ||
| OS: | Any | ||
| URL: | https://scratch.mit.edu/ | ||
| See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258521 | ||
| Attachments: | |||
|
Description
takeshi.mutoh
2017-02-05 07:30:12 UTC
The attachment seems broken, would you resubmit it ? wen (In reply to Wen Heping from comment #1) I'm sorry about my reply is too late. But I can download my patch from https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=216811 . Anyway, I will try to attach patch at this thread. Created attachment 189028 [details]
Port skelton for lang/scratch.
I try to resubmit my patch.
Created attachment 189029 [details]
Update patch to fix compiler issue.
Now, old patch can't work because Makefile assume gcc compiler.
So I create new patch.
A kid here thanks you for this.
I would suggest adding a desktop entry, this will add it to the dynamic application menus and show it when you search to add an item to the taskbar etc. You can add a simple entry by adding -
DESKTOP_ENTRIES= "Scratch" "${COMMENT}" "" "scratch" "Development;Education;" ""
to the Makefile, maybe you could find/make a nice icon for it too. See 6.9.5 of the portters handbook for more info - https://www.freebsd.org/doc/en/books/porters-handbook/using-x11.html
Created attachment 189091 [details]
Update lang/scratch to support DESKTOP_ENTRIES
Merry Xmas!!
I try to support DESKTOP_ENTRIES.
Please check this patch.
Have fun!!
Created attachment 221189 [details]
scratch-1.4.0.7.shar
Is there demand?
For the time being, I tried to be able to build.
:-o
Thank you for your patch. I needs this port;-). So please commit your patch. I think that your comment-outed entries (find & chowm) are no longer needed. (In reply to takefu from comment #7) Created attachment 221327 [details]
scratch-1.4.0.7.shar
Delete comment line
Mit and CC-BY-SA-3.0 licenses added
This does not build
===> scratch-1.4.0.7 depends on shared library: libv4l2.so - not found
*** Error code 1
> libv4l2.so:multimedia/v4l_compat
There's no such library in v4l_compat.
Created attachment 222714 [details]
the libv4l2.so is in multimedia/libv4l now.
(In reply to Dmitry Marakasov from comment #10) I'm sorry that libv4l2.so is in multimedia/libv4l now. So please try patch for Makefile attached as attachment 222714 [details]. Does not build:
UnicodeOps-linux.c:28:10: fatal error: 'pango/pangocairo.h' file not found
#include <pango/pangocairo.h>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
Also bug 258521 (In reply to Dmitry Marakasov from comment #13) I can't replay this error. What version of FreeBSD OS do you use? I want to more information. I can build at FreeBSD freebsd12 12.2-RELEASE FreeBSD 12.2-RELEASE r366954 GENERIC amd64 Created attachment 228251 [details]
Merge the libv4l2.so patch.
(In reply to takeshi.mutoh from comment #15) > What version of FreeBSD OS do you use? Please test the port in poudriere. The error is reproducible on all FreeBSD versions (I test with 12.2/13.0/14 × i386/amd64). Created attachment 238721 [details]
Fix build error related pango.
I update lang/scratch port for fixing build error about pango. Please test this one. I want to check with poudriere, but it fail building lang/rust at my environment. I'm sorry that I can't check with poudriere. Thanks in advance. Triage: severity reduced to the norm for a new port. I'll handle this. Created attachment 241858 [details] reviewed at 2023/04/30, please test on your environment. Hi Mutoh-san. I reviewed your latest patch, so I found some problems. Please review new patch on your environment. - not ports-mgmt/portlint happy Please run following command with sh's family. > portlint -A -M "DEVELOPER=yes PL_GIT_IGNORE=." 2> /dev/null - not ports-mgmt/portfmt happy Please run following command with ksh/bash/zsh family. > diff -u Makefile <(portfmt Makefile) - MASTER_SITES available I found a new URL, please change http:// -> https://. - BUILD_DEPENDS issue Ah, OK. Specify 'pkg-config' instead of pkgconf, because pkg-config is used in scratch. - PREFIX not clean issue Please take care of PREFIX clean. NOW STATUS: I am try to 'poudriere testport lang/scratch'. (In reply to Norikatsu Shigemura from comment #22) Hello, Shigemura-sam. Thank you for checking and updating my port. I checked the operation and there was no problem. I would be glad if you could continue the commit work. Thank you very much. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=1b05393b7d60dfeb0fed25af48214d73971a4e38 commit 1b05393b7d60dfeb0fed25af48214d73971a4e38 Author: Takeshi Mutoh <takeshi.mutoh@gmail.com> AuthorDate: 2023-05-06 16:10:52 +0000 Commit: Norikatsu Shigemura <nork@FreeBSD.org> 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 <takeshi.mutoh@gmail.com> Approved by: hrs (mentor) lang/Makefile | 1 + lang/scratch/Makefile (new) | 52 + lang/scratch/distinfo (new) | 3 + lang/scratch/files/patch-Makefile (new) | 15 + .../files/patch-src_plugins_camera_Makefile (new) | 13 + ...patch-src_plugins_camera_sqCamera-linux.c (new) | 11 + .../files/patch-src_plugins_scratch_Makefile (new) | 13 + .../files/patch-src_plugins_unicode_Makefile (new) | 13 + .../files/patch-src_plugins_wedo_Makefile (new) | 13 + lang/scratch/files/patch-src_scratch (new) | 18 + lang/scratch/files/pkg-message.in (new) | 15 + lang/scratch/pkg-descr (new) | 6 + lang/scratch/pkg-plist (new) | 1142 ++++++++++++++++++++ 13 files changed, 1315 insertions(+) Commited, done. Thanks! |