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: Dmitry Marakasov <amdmi3>
Status: Open ---    
Severity: Affects Many People CC: FreeBSD, grahamperrin, takefu, takeshi.mutoh, wen
Priority: ---    
Version: Latest   
Hardware: Any   
OS: Any   
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

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 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 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 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 2021-09-16 17:40:58 UTC
Also bug 258521