From saper@saper.info  Sat Sep  6 02:00:12 2008
Return-Path: <saper@saper.info>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6F6F51065673
	for <freebsd-gnats-submit@freebsd.org>; Sat,  6 Sep 2008 02:00:12 +0000 (UTC)
	(envelope-from saper@saper.info)
Received: from system.pl (ns356865.ovh.net [91.121.143.223])
	by mx1.freebsd.org (Postfix) with ESMTP id B92D78FC13
	for <freebsd-gnats-submit@freebsd.org>; Sat,  6 Sep 2008 02:00:10 +0000 (UTC)
	(envelope-from saper@saper.info)
Received: (qmail 11044 invoked by uid 10); 6 Sep 2008 04:00:08 +0200
Received: from radziecki.saper.info (localhost [127.0.0.1])
	by radziecki.saper.info (8.14.2/8.14.2) with ESMTP id m861ti8Q088959
	(version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO);
	Sat, 6 Sep 2008 03:55:44 +0200 (CEST)
	(envelope-from saper@saper.info)
Received: (from saper@localhost)
	by radziecki.saper.info (8.14.2/8.14.2/Submit) id m861thG5088946;
	Sat, 6 Sep 2008 03:55:43 +0200 (CEST)
	(envelope-from saper)
Message-Id: <200809060155.m861thG5088946@radziecki.saper.info>
Date: Sat, 6 Sep 2008 03:55:43 +0200 (CEST)
From: Marcin Cieslak <saper@SYSTEM.PL>
To: FreeBSD-gnats-submit@freebsd.org
Cc: stas@FreeBSD.system.pl, amdmi3@freebsd.org
Subject: [NEW PORT] lang/mtasc: Motion-Twin ActionScript 2 Compiler [review req]
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         127130
>Category:       ports
>Synopsis:       [NEW PORT] lang/mtasc: Motion-Twin ActionScript 2 Compiler [review req]
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    chinsan
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Sep 06 02:10:01 UTC 2008
>Closed-Date:    Sat Sep 06 04:29:00 UTC 2008
>Last-Modified:  Sat Sep 06 23:32:40 UTC 2008
>Originator:     Marcin Cieslak
>Release:        FreeBSD 7.0-STABLE amd64
>Organization:
http://saper.info
>Environment:
System: FreeBSD radziecki.saper.info 7.0-STABLE FreeBSD 7.0-STABLE #0: Wed Jul 23 05:06:20 CEST 2008
>Description:
MTASC is the first ActionScript 2 Open Source free compiler.

It can compile large number of .as class files in a very short time
and generate directly the corresponding SWF bytecode without relying
on Macromedia Flash or other tools.

WWW:    http://mtasc.org/

1. I had to create my own distfiles out of CVS:

http://saper.info/distfiles/mtasc-1.14.tar.gz

It would be nice if it could be hosted off the FreeBSD local directories.

2. Since I have never had anything to do with OCaml, this port should be reviewed.

This compiler should be able to compile graphics/gnash test files.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- mtasc-1.14.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mtasc
#	mtasc/distinfo
#	mtasc/Makefile
#	mtasc/pkg-descr
#	mtasc/files
#	mtasc/files/patch-basepath
#	mtasc/pkg-plist
#
echo c - mtasc
mkdir -p mtasc > /dev/null 2>&1
echo x - mtasc/distinfo
sed 's/^X//' >mtasc/distinfo << 'dac7aec6bd11e437417cc98a4ae80c05'
XMD5 (mtasc-1.14.tar.gz) = a1ffda6f414d443b5c5b380a483710d6
XSHA256 (mtasc-1.14.tar.gz) = 2808f65fe7865399657c058d9abeb04c47903241b8d33523fce52cdaae85537f
XSIZE (mtasc-1.14.tar.gz) = 727167
dac7aec6bd11e437417cc98a4ae80c05
echo x - mtasc/Makefile
sed 's/^X//' >mtasc/Makefile << '26be653a9224ca2a2932f6420a64f59f'
X# New ports collection makefile for:	mtasc
X# Date created:		2008-09-06
X# Whom:			Marcin Cieslak <saper@SYSTEM.PL>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mtasc
XPORTVERSION=	1.14
XCATEGORIES=	lang www
XMASTER_SITES=	${MASTER_SITE_LOCAL}
X#MASTER_SITE_SUBDIR=
X
XMAINTAINER=	saper@SYSTEM.PL
XCOMMENT=	Motion-Twin ActionScript 2 Compiler
X
XBUILD_DEPENDS=	${OCAML_SITELIBDIR}/extlib/extLib.cmi:${PORTSDIR}/devel/ocaml-extlib \
X		ocamlfind:${PORTSDIR}/devel/ocaml-findlib
X
XWRKSRC=		${WRKDIR}/ocaml
XUSE_OCAML=	yes
X
XOCAMLLEX?=	${LOCALBASE}/bin/ocamllex
XOCAMLOPT?=	${LOCALBASE}/bin/ocamlopt
XOCAML_LIBS?=	${LOCALBASE}/${OCAML_SITELIBDIR}
X
XZLIB_OPTS=	-cclib "${WRKSRC}/extc/extc_stubs.o" -cclib -lz extc.mli extc.ml
XSWFLIB_INC=	-I ${WRKSRC}/extc -I ${WRKSRC}/swflib
XSWFLIB_FILES=	as3.mli as3code.ml as3parse.ml swf.ml swfZip.ml actionScript.ml \
X		swfParser.ml
XMTASC_OBJ=	expr.cmx lexer.cmx parser.cmx typer.cmx class.cmx plugin.cmx\
X		genSwf.cmx main.cmx
X
XMAN1=		mtasc.1
X
X.if !defined(NOPORTDATA)
XPORTDATA=	std std8
X.endif
X
X.include <bsd.port.pre.mk>
X
Xdo-build:
X	(cd ${WRKSRC}/extc &&    \
X		${OCAMLOPT}   ${WRKSRC}/extc/extc_stubs.c   && \
X		${OCAMLOPT}   -a -o extc.cmxa ${ZLIB_OPTS}  )
X	(cd ${WRKSRC}/swflib &&  \
X		${OCAMLFIND} ocamlopt -package extlib \
X			-a -o swflib.cmxa ${SWFLIB_INC} ${SWFLIB_FILES} )
X	(cd ${WRKSRC}/mtasc &&   \
X		${OCAMLLEX}   lexer.mll && \
X		${OCAMLOPT}   -c expr.ml lexer.ml && \
X		${OCAMLOPT}   -c -pp camlp4o parser.ml && \
X		${OCAMLFIND} ocamlopt -package extlib -c ${SWFLIB_INC} \
X			      typer.ml class.ml plugin.ml \
X			      genSwf.ml main.ml )
X	(cd ${WRKSRC}/mtasc &&   \
X		${OCAMLFIND} ocamlopt -package extlib -linkpkg \
X			-o ${WRKSRC}/mtasc-bin \
X			${WRKSRC}/extc/extc.cmxa \
X			${WRKSRC}/swflib/swflib.cmxa \
X			${MTASC_OBJ} )
X
Xdo-install:
X	${INSTALL_PROGRAM} ${WRKSRC}/mtasc-bin	${PREFIX}/bin/mtasc
X.if !defined(NOPORTDATA)
X	@${MKDIR} ${DATADIR}
X	(cd ${WRKSRC}/mtasc && ${FIND} ${PORTDATA} -type f | ${CPIO} -pdmnu ${DATADIR})
X	@${FIND} ${DATADIR} -type d -exec ${CHMOD} 555 {} \;
X	@${FIND} ${DATADIR} -type f -exec ${CHMOD} 444 {} \;
X.endif
X.if !defined(NO_INSTALL_MANPAGES)
X	${INSTALL_MAN} ${WRKSRC}/mtasc/doc/mtasc.1	${PREFIX}/man/man1
X.endif
X.if !defined(NOPORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X	${INSTALL_DATA}	${WRKSRC}/mtasc/doc/*.txt ${DOCSDIR}
X.endif
X.if !defined(NOPORTEXAMPLES)
X	@${MKDIR} ${EXAMPLESDIR}
X	${INSTALL_DATA}	${WRKSRC}/mtasc/doc/HelloWorld.as ${EXAMPLESDIR}
X.endif
X
X.include <bsd.port.post.mk>
26be653a9224ca2a2932f6420a64f59f
echo x - mtasc/pkg-descr
sed 's/^X//' >mtasc/pkg-descr << '1b2e8e4f4e5982a4a34582fbb3929b3a'
XMTASC is the first ActionScript 2 Open Source free compiler.
X
XIt can compile large number of .as class files in a very short time
Xand generate directly the corresponding SWF bytecode without relying
Xon Macromedia Flash or other tools.
X
XWWW:    http://mtasc.org/
1b2e8e4f4e5982a4a34582fbb3929b3a
echo c - mtasc/files
mkdir -p mtasc/files > /dev/null 2>&1
echo x - mtasc/files/patch-basepath
sed 's/^X//' >mtasc/files/patch-basepath << 'a90ebbdd20c271fc59e1f84f7d5f1ece'
X--- mtasc/main.ml.orig	2008-09-06 03:09:02.176005686 +0200
X+++ mtasc/main.ml	2008-09-06 03:11:37.642045225 +0200
X@@ -113,7 +113,7 @@
X ;;
X try	
X 	let usage = "Motion-Twin ActionScript2 Compiler 1.14 - (c)2004-2008 Motion-Twin\n Usage : mtasc.exe [options] <files...>\n Options :" in
X-	let base_path = normalize_path (try Extc.executable_path() with _ -> ".") in
X+	let base_path = normalize_path (try Extc.executable_path() ^ "/.." with _ -> "..") in
X 	let files = ref [] in
X 	let time = Sys.time() in
X 	Plugin.class_path := [base_path;"";"/"];
X@@ -132,8 +132,8 @@
X 		),": use precompiled mx package");
X 	] @ !Plugin.options in
X 	Arg.parse args_spec (fun file -> files := file :: !files) usage;
X-	Plugin.class_path := (base_path ^ "std/") :: !Plugin.class_path;
X-	if (match !GenSwf.version with Some x -> x >= 8 | None -> false) then Plugin.class_path := (base_path ^ "std8/") :: !Plugin.class_path;
X+	Plugin.class_path := (base_path ^ "share/mtasc/std/") :: !Plugin.class_path;
X+	if (match !GenSwf.version with Some x -> x >= 8 | None -> false) then Plugin.class_path := (base_path ^ "share/mtasc/std8/") :: !Plugin.class_path;
X 	Hashtbl.remove Lexer.keywords "add";
X 	Parser.warning := (fun msg pos -> report ~do_exit:false (msg,pos) "Warning" (fun msg -> msg));
X 	if !files = [] then begin
a90ebbdd20c271fc59e1f84f7d5f1ece
echo x - mtasc/pkg-plist
sed 's/^X//' >mtasc/pkg-plist << '874a16d92f717af47782e752b371d8e1'
X@comment $FreeBSD$
Xbin/mtasc
X%%PORTDOCS%%%%DOCSDIR%%/CHANGES.txt
X%%PORTDOCS%%%%DOCSDIR%%/Future.txt
X%%PORTDOCS%%%%DOCSDIR%%/INSTALL.txt
X%%PORTDOCS%%%%DOCSDIR%%/Readme.txt
X%%PORTDOCS%%@dirrm %%DOCSDIR%%
X%%PORTEXAMPLES%%%%EXAMPLESDIR%%/HelloWorld.as
X%%PORTEXAMPLES%%@dirrm %%EXAMPLESDIR%%
874a16d92f717af47782e752b371d8e1
exit
--- mtasc-1.14.shar ends here ---

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->chinsan 
Responsible-Changed-By: chinsan 
Responsible-Changed-When: Sat Sep 6 02:55:54 UTC 2008 
Responsible-Changed-Why:  
I'll take this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127130 
State-Changed-From-To: open->closed 
State-Changed-By: chinsan 
State-Changed-When: Sat Sep 6 04:28:59 UTC 2008 
State-Changed-Why:  
Committed with some modification, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=127130 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/127130: commit references a PR
Date: Sat,  6 Sep 2008 04:26:40 +0000 (UTC)

 chinsan     2008-09-06 04:26:26 UTC
 
   FreeBSD ports repository
 
   Modified files:
     lang                 Makefile 
   Added files:
     lang/mtasc           Makefile distinfo pkg-descr pkg-plist 
     lang/mtasc/files     patch-basepath 
   Log:
   Add mtasc 1.14, motion-Twin ActionScript 2 Compiler.
   
   PR:             ports/127130
   Submitted by:   Marcin Cieslak <saper at SYSTEM.PL>
   
   Revision  Changes    Path
   1.602     +1 -0      ports/lang/Makefile
   1.1       +82 -0     ports/lang/mtasc/Makefile (new)
   1.1       +3 -0      ports/lang/mtasc/distinfo (new)
   1.1       +22 -0     ports/lang/mtasc/files/patch-basepath (new)
   1.1       +7 -0      ports/lang/mtasc/pkg-descr (new)
   1.1       +9 -0      ports/lang/mtasc/pkg-plist (new)
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 

From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: Marcin Cieslak <saper@SYSTEM.PL>
Date: Sat, 6 Sep 2008 16:38:04 +0400

 * Marcin Cieslak (saper@SYSTEM.PL) wrote:
 
 > 1. I had to create my own distfiles out of CVS:
 > http://saper.info/distfiles/mtasc-1.14.tar.gz
 If you're using CVS head, you should also add snapshot date to
 PORTVERSION and, thus, distname. I.e. mtasc-1.14-20080906.tar.gz.
 
 > It would be nice if it could be hosted off the FreeBSD local directories.
 Can do. Can't you host it on saper.info?
 
 > 2. Since I have never had anything to do with OCaml, this port should be reviewed.
 Me too actuallyr. But I can suggest some improvements.
 
 First of all, ocaml-extlib dependency drives tinderbox crazy cause it's
 actually incorrect: should use ${LOCALBASE}/${OCAML_SITELIBDIR} (or
 ${OCAML_LIBS}) instead of just ${OCAML_SITELIBDIR}.
 
 Also there's USE_OCAML_FINDLIB support in bsd.ocaml.mk - it defined both
 build and run dependency. Are you sure you don't need run dependency?
 
 Next, better to
 
 -.if !defined(NO_INSTALL_MANPAGES)
          ${INSTALL_MAN} ${WRKSRC}/mtasc/doc/mtasc.1 ${PREFIX}/man/man1
 -.endif
 
 as the port will have broken plist if NO_INSTALL_MANPAGES is defined. It
 doesn't seem to be fully supported bu port.mk.
 
 That's all for now, the port compiles fine on 6.3/7.0 i386/amd64 in a
 tinderbox.
 
 I'd also suggest to improve bsd.ocaml.mk to include missing binaries
 (OCAMLLEX, OCAMLOPT) and maybe change it for variables to have more
 intuitive meaning (i.e. OCAML_SITELIBDIR should be global path, just
 like RUBY_SITELIBDIR, PYTHON_SITELIBDIR and PERL_SITELIBDIR), but it's
 up to stas@.
 
 -- 
 Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
 amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru

From: Marcin Cieslak <saper@SYSTEM.PL>
To: Dmitry Marakasov <amdmi3@amdmi3.ru>
Cc: bug-followup@FreeBSD.org, stas@FreeBSD.org
Subject: Re: ports/127130: [NEW PORT] lang/mtasc: Motion-Twin ActionScript
 2 Compiler [review req]
Date: Sat, 06 Sep 2008 15:43:25 +0200

 This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
 --------------enig980D0F28D046C20300FAE3AC
 Content-Type: text/plain; charset=ISO-8859-2; format=flowed
 Content-Transfer-Encoding: quoted-printable
 
 Dmitry Marakasov wrote:
 > * Marcin Cieslak (saper@SYSTEM.PL) wrote:
 >=20
 >> 1. I had to create my own distfiles out of CVS:
 >> http://saper.info/distfiles/mtasc-1.14.tar.gz
 > If you're using CVS head, you should also add snapshot date to
 > PORTVERSION and, thus, distname. I.e. mtasc-1.14-20080906.tar.gz.
 
 I pulled off CVS version that is the same as 1.14, I have planned to=20
 have 20080906 suffix but finally decided to go for a plain version number=
 =2E
 
 >> It would be nice if it could be hosted off the FreeBSD local directori=
 es.
 > Can do. Can't you host it on saper.info?
 
 Well, we'll see :) We have now this and LOCAL subdirectory.
 
 >> 2. Since I have never had anything to do with OCaml, this port should =
 be reviewed.
 > Me too actuallyr. But I can suggest some improvements.
 >=20
 > First of all, ocaml-extlib dependency drives tinderbox crazy cause it's=
 
 > actually incorrect: should use ${LOCALBASE}/${OCAML_SITELIBDIR} (or
 > ${OCAML_LIBS}) instead of just ${OCAML_SITELIBDIR}.
 
 I think chinsan@ fixed this.
 
 >=20
 > Also there's USE_OCAML_FINDLIB support in bsd.ocaml.mk - it defined bot=
 h
 > build and run dependency. Are you sure you don't need run dependency?
 
 I think no, since it seems that extension are statically compiled-in.
 
 > That's all for now, the port compiles fine on 6.3/7.0 i386/amd64 in a
 > tinderbox.
 >=20
 > I'd also suggest to improve bsd.ocaml.mk to include missing binaries
 > (OCAMLLEX, OCAMLOPT) and maybe change it for variables to have more
 > intuitive meaning (i.e. OCAML_SITELIBDIR should be global path, just
 > like RUBY_SITELIBDIR, PYTHON_SITELIBDIR and PERL_SITELIBDIR), but it's
 > up to stas@.
 
 Yep, Cc:'d (now correctly).
 
 Btw, can you run gnash suite on FreeBSD without problems? Is this mtasc=20
 dealing with this properly? I can see some issues with gnash CVS since=20
 for example my gstream has no flash support (and actually respective=20
 port is broken).
 
 --=20
                << Marcin Cieslak // saper@system.pl >>
 
 
 --------------enig980D0F28D046C20300FAE3AC
 Content-Type: application/pgp-signature; name="signature.asc"
 Content-Description: OpenPGP digital signature
 Content-Disposition: attachment; filename="signature.asc"
 
 -----BEGIN PGP SIGNATURE-----
 
 iQCVAwUBSMKJAT2W2v2wY27ZAQMU+AP/bkxlOK3di+3WvHXpgV1kGt5niitPTunn
 BwpD5OIpF0PokRWCAjE9wSQFzZLL6L7eMssQW8HF8QVkKZksue0isK8zE/i3b5aK
 kEFrm4pFSrceGe8UWZ4LWa3J9Dkv14+dT9ZSb5hvjHAtvk4R2kK+koXXyCfoF5Ol
 wEF1dFsYVeM=
 =Ylx1
 -----END PGP SIGNATURE-----
 
 --------------enig980D0F28D046C20300FAE3AC--

From: Dmitry Marakasov <amdmi3@amdmi3.ru>
To: Marcin Cieslak <saper@SYSTEM.PL>
Cc: bug-followup@FreeBSD.org, stas@FreeBSD.org
Subject: Re: ports/127130: [NEW PORT] lang/mtasc: Motion-Twin ActionScript
	2 Compiler [review req]
Date: Sun, 7 Sep 2008 03:00:31 +0400

 * Marcin Cieslak (saper@SYSTEM.PL) wrote:
 
 >>> It would be nice if it could be hosted off the FreeBSD local directories.
 >> Can do. Can't you host it on saper.info?
 > Well, we'll see :) We have now this and LOCAL subdirectory.
 I've put it into my MASTER_SITE_LOCAL too, it should be available as
 soon as ftp mirrors catch up.
 It's available right now from http://www.amdmi3.ru/distfiles/.
 
 >> First of all, ocaml-extlib dependency drives tinderbox crazy cause it's
 >> actually incorrect: should use ${LOCALBASE}/${OCAML_SITELIBDIR} (or
 >> ${OCAML_LIBS}) instead of just ${OCAML_SITELIBDIR}.
 > I think chinsan@ fixed this.
 Yep. I wasn't aware it was committed already.
 
 >> Also there's USE_OCAML_FINDLIB support in bsd.ocaml.mk - it defined both
 >> build and run dependency. Are you sure you don't need run dependency?
 > I think no, since it seems that extension are statically compiled-in.
 Then we now have an extra run dependency :)
 
 >> That's all for now, the port compiles fine on 6.3/7.0 i386/amd64 in a
 >> tinderbox.
 >>
 >> I'd also suggest to improve bsd.ocaml.mk to include missing binaries
 >> (OCAMLLEX, OCAMLOPT) and maybe change it for variables to have more
 >> intuitive meaning (i.e. OCAML_SITELIBDIR should be global path, just
 >> like RUBY_SITELIBDIR, PYTHON_SITELIBDIR and PERL_SITELIBDIR), but it's
 >> up to stas@.
 > Yep, Cc:'d (now correctly).
 >
 > Btw, can you run gnash suite on FreeBSD without problems? Is this mtasc  
 > dealing with this properly? I can see some issues with gnash CVS since  
 > for example my gstream has no flash support (and actually respective  
 > port is broken).
 Sorry, but I'm out of sync with gnash stuff for now, but I have
 been plaiing to update gnash-devel to latest snapshot for some time.
 Actually, plugins don't even work for me since I've switched to
 Firefox 3 (neither gnash, nor djvu and java).
 
 How's mtasc linked with gnash at all?
 
 -- 
 Dmitry Marakasov   .   55B5 0596 FF1E 8D84 5F56  9510 D35A 80DD F9D2 F77D
 amdmi3@amdmi3.ru  ..:  jabber: amdmi3@jabber.ru    http://www.amdmi3.ru
>Unformatted:
