Bug 216811

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 Flags
lang/scratch port skelton
none
Port skelton for lang/scratch.
none
Update patch to fix compiler issue.
none
Update lang/scratch to support DESKTOP_ENTRIES
none
scratch-1.4.0.7.shar
none
scratch-1.4.0.7.shar
none
the libv4l2.so is in multimedia/libv4l now.
none
Merge the libv4l2.so patch.
none
Fix build error related pango.
none
reviewed at 2023/04/30, please test on your environment. none

Description takeshi.mutoh 2017-02-05 07:30:12 UTC
Created attachment 179626 [details]
lang/scratch port skelton

New port lang/scratch.

Scratch is block based programing language using for educational purpose.
This version 1.4 is created on Squeak Smalltalk system.

WWW: https://scratch.mit.edu/
Comment 1 Wen Heping freebsd_committer freebsd_triage 2017-04-03 06:56:43 UTC
The attachment seems broken, would you resubmit it ?

wen
Comment 2 takeshi.mutoh 2017-12-22 06:50:38 UTC
(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.
Comment 3 takeshi.mutoh 2017-12-22 06:52:36 UTC
Created attachment 189028 [details]
Port skelton for lang/scratch.

I try to resubmit my patch.
Comment 4 takeshi.mutoh 2017-12-22 07:32:08 UTC
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.
Comment 5 Shane 2017-12-22 09:31:39 UTC
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
Comment 6 takeshi.mutoh 2017-12-25 04:41:08 UTC
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!!
Comment 7 takefu 2021-01-02 06:18:26 UTC
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
Comment 8 takeshi.mutoh 2021-01-02 10:50:30 UTC
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)
Comment 9 takefu 2021-01-06 15:08:59 UTC
Created attachment 221327 [details]
scratch-1.4.0.7.shar

Delete comment line
Mit and CC-BY-SA-3.0 licenses added
Comment 10 Dmitry Marakasov freebsd_committer freebsd_triage 2021-02-18 20:08:26 UTC
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.
Comment 11 takeshi.mutoh 2021-02-22 02:05:18 UTC
Created attachment 222714 [details]
the libv4l2.so is in multimedia/libv4l now.
Comment 12 takeshi.mutoh 2021-02-22 02:09:52 UTC
(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].
Comment 13 Dmitry Marakasov freebsd_committer freebsd_triage 2021-09-07 17:32:16 UTC
Does not build:

UnicodeOps-linux.c:28:10: fatal error: 'pango/pangocairo.h' file not found
#include <pango/pangocairo.h>
         ^~~~~~~~~~~~~~~~~~~~
1 error generated.
Comment 14 Graham Perrin freebsd_committer freebsd_triage 2021-09-16 17:40:58 UTC
Also bug 258521
Comment 15 takeshi.mutoh 2021-09-29 11:27:24 UTC
(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
Comment 16 takeshi.mutoh 2021-09-29 13:08:00 UTC
Created attachment 228251 [details]
Merge the libv4l2.so patch.
Comment 17 Dmitry Marakasov freebsd_committer freebsd_triage 2021-10-05 20:13:11 UTC
(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).
Comment 18 takeshi.mutoh 2022-12-12 06:50:20 UTC
Created attachment 238721 [details]
Fix build error related pango.
Comment 19 takeshi.mutoh 2022-12-12 06:54:29 UTC
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.
Comment 20 Graham Perrin freebsd_committer freebsd_triage 2022-12-12 17:34:48 UTC
Triage: severity reduced to the norm for a new port.
Comment 21 Norikatsu Shigemura freebsd_committer freebsd_triage 2023-04-28 10:31:07 UTC
I'll handle this.
Comment 22 Norikatsu Shigemura freebsd_committer freebsd_triage 2023-04-29 19:02:37 UTC
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'.
Comment 23 takeshi.mutoh 2023-05-03 22:04:51 UTC
(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.
Comment 24 commit-hook freebsd_committer freebsd_triage 2023-05-06 16:18:23 UTC
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(+)
Comment 25 Norikatsu Shigemura freebsd_committer freebsd_triage 2023-05-06 16:22:30 UTC
Commited, done.  Thanks!