debian/0000755000000000000000000000000012174621276007176 5ustar debian/compat0000644000000000000000000000000212173532361010367 0ustar 9 debian/watch0000644000000000000000000000007212173532361010221 0ustar version=3 http://haxe.org/file/haxe-(.+)-linux32\.tar\.gz debian/changelog0000644000000000000000000003134712174621272011054 0ustar haxe (1:3.0.0~svn6707-4) unstable; urgency=low * QA upload. * debian/haxe.install: Fix typo that resulted in misplaced .el files. * debian/rules: Comment out chmod call specifying odd /usr/lib permissions. -- Aaron M. Ucko Fri, 26 Jul 2013 21:26:38 -0400 haxe (1:3.0.0~svn6707-3) unstable; urgency=low * QA upload. * Upload to unstable. * Bytecompiling builds all archs. (Closes: #621890). -- Barry deFreese Fri, 26 Jul 2013 09:04:49 -0400 haxe (1:3.0.0~svn6707-2) experimental; urgency=low * QA upload. * Bytecompile everything. -- Barry deFreese Tue, 23 Jul 2013 11:05:26 -0400 haxe (1:3.0.0~svn6707-1) experimental; urgency=low * QA upload. + Set maintainer to Debian QA Group . * New upstream release. * Use upstream Makefile to build. * Make VCS tags canonical. * Fix grammar errors in manpages. * Add watch file. * Bump debhelper build-dep and compat to 9. + Convert rules to simple dh style. * Bump Standards Version to 3.9.4. -- Barry deFreese Thu, 18 Jul 2013 13:24:29 -0400 haxe (1:2.7+20110131-3) unstable; urgency=low * Fix linking so that it works with multiarch-enabled zlib by simply passing -lz to the ocaml compiler, thanks to Steve Langasek. (Closes: #622853) * Include a small test case to sanity-check the build. -- Jens Peter Secher Sat, 16 Apr 2011 15:01:20 +0200 haxe (1:2.7+20110131-2) unstable; urgency=low * Updated man page and bash comletion to include new macro options. -- Jens Peter Secher Sun, 06 Feb 2011 22:27:47 +0100 haxe (1:2.7+20110131-1) experimental; urgency=low * New upstream version. * Install standard library in /usr/share/haxe/std to cater for the haXe executable mangling of the class path: the path has to end in /std. * Include the upstream repository in Debian version to allow updating the upstream tarball. -- Jens Peter Secher Tue, 01 Feb 2011 00:29:31 +0100 haxe (1:2.6-1) experimental; urgency=low * New upstream version, which uses new features not present in the Debian version of ocaml extlib (see #596622), so reverting part of #519630 by using newest version of extlib directly from Motion-Twin CVS. * Bumped Standards-Version to 3.9.1, no changes. -- Jens Peter Secher Wed, 15 Sep 2010 21:42:56 +0200 haxe (1:2.5-1) unstable; urgency=low * New upstream version, taken from new upstream subversion repository. -- Jens Peter Secher Sun, 31 Jan 2010 23:08:43 +0100 haxe (1:2.4-4) unstable; urgency=low * Converted to dpkg-source format 3.0 (quilt). * Use mercurial-buildpackage for repository maintenance, so old repository does not exist any more. -- Jens Peter Secher Sun, 31 Jan 2010 22:37:10 +0100 haxe (1:2.4-3) unstable; urgency=low * Rebuild because the i386 had broken dependencies on neko. -- Jens Peter Secher Sat, 14 Nov 2009 11:29:58 +0100 haxe (1:2.4-2) unstable; urgency=low * Reinclude haxe-mode for Emacs after fixing emacs23 problem. * Depend on neko because haxelib and haxedoc need the libraries. * Bumped Standards-Version to 3.8.3, no change. -- Jens Peter Secher Tue, 08 Sep 2009 15:43:54 +0200 haxe (1:2.4-1) unstable; urgency=low * New upstream version (CVS 2009-08-01). * Removed obsolete parts of the copyright file now that ExtLib is not included anymore. * Included patch for Ubuntu location of zlib, thanks to Alessio Treglia. (Closes: #533159) * Removed haxe-mode to get it into its own package. (Closes: #521222) * Included new commands in bash_completion. * Removed obsolete Lintian overrides. * Bumped Standards-Version to 3.8.2, no change. -- Jens Peter Secher Mon, 03 Aug 2009 21:29:45 +0200 haxe (1:2.3-1~bpo40+1) etch-backports; urgency=low * Backport to Lenny, adapt to old ocaml and debhelper 5. -- Jens Peter Secher Mon, 15 Jun 2009 21:40:08 +0200 haxe (1:2.3-1~bpo50+1) lenny-backports; urgency=low * Backport to Lenny, adapt to old camlp4. -- Jens Peter Secher Thu, 28 May 2009 20:06:08 +0200 haxe (1:2.3-1) unstable; urgency=low * New upstream version. * Remove patch ocaml-3.11-compile.diff because it is included upstream. * Bumped debhelper version to 7. * Updated the haxe manpage. -- Jens Peter Secher Mon, 25 May 2009 22:05:05 +0200 haxe (1:2.2-2) unstable; urgency=low * Use ocamlfind to locate and use the libraries xml-light and extlib which already exist in Debian as separate packages. (Closes: #519630) * Fixed compile error with camlp4 3.11, thanks to Stéphane Glondu. (Closes: #519627) * Use quilt instead of dpatch for patches, and describe how to use quilt in Debian.source (thanks to Russ Allbery). * Added a Vcs-Hg control filed to indicate the location of the public repository. * Bumped Standards-Version to 3.8.1. -- Jens Peter Secher Wed, 18 Mar 2009 23:09:50 +0100 haxe (1:2.2-1) experimental; urgency=low * New upstream release. * Updated install scripts to include OCaml optimisations. * Updated man page to include swf9 option. * Fixed broken bash completion. -- Jens Peter Secher Sun, 14 Dec 2008 18:22:19 +0100 haxe (1:2.1-1) experimental; urgency=low * Fixed build failure when using byte-code version of ocaml. (Closes: #501538) * Synchronise with 2.1 release. -- Jens Peter Secher Thu, 09 Oct 2008 21:30:03 +0200 haxe (1:2.0.1-1) experimental; urgency=low * Newest CVS checkout for experimental. * Build against neko 1.8.0. -- Jens Peter Secher Sun, 05 Oct 2008 11:24:49 +0200 haxe (1:2.0-1~bpo40+1) etch-backports; urgency=low * Backport to Etch, which requires dropping the dependency on camlp4 and lowering dependency on emacs22 to emacs21. -- Jens Peter Secher Sun, 03 Aug 2008 14:28:20 +0200 haxe (1:2.0-1) unstable; urgency=low * New upstream release. -- Jens Peter Secher Thu, 31 Jul 2008 13:44:35 +0200 haxe (1:1.19-3) unstable; urgency=low * Remove bashism in script. (Closes: #484390) * Upgrade to Policy 3.8.0 by including a README.source explaining how to use dpatch. -- Jens Peter Secher Sun, 15 Jun 2008 11:04:09 +0200 haxe (1:1.19-2~bpo40+1) etch-backports; urgency=low * Backport to Etch, which requires dropping the dependency on camlp4. -- Jens Peter Secher Sat, 17 May 2008 15:08:08 +0200 haxe (1:1.19-2) unstable; urgency=low * Remove bashism in script. (Closes: #477202) -- Jens Peter Secher Sat, 26 Apr 2008 11:31:11 +0200 haxe (1:1.19-1) unstable; urgency=low * New upstream release. -- Jens Peter Secher Thu, 10 Apr 2008 21:47:44 +0200 haxe (1:1.18-1~bpo40+1) etch-backports; urgency=low * Backport to Etch, which requires dropping the dependency on camlp4. -- Jens Peter Secher Sat, 01 Mar 2008 12:32:55 +0100 haxe (1:1.18-1) unstable; urgency=low * New upstream release. -- Jens Peter Secher Tue, 26 Feb 2008 19:55:05 +0100 haxe (1:1.17-1~bpo40+2) etch-backports; urgency=low * Rebuild with fixed neko backport to get dependency right. -- Jens Peter Secher Tue, 05 Feb 2008 22:10:39 +0100 haxe (1:1.17-1~bpo40+1) etch-backports; urgency=low * Backport to Etch, which requires dropping the dependency on camlp4. -- Jens Peter Secher Tue, 05 Feb 2008 22:10:39 +0100 haxe (1:1.17-1) unstable; urgency=low * New upstream release. * Added a bash completion specification. * Bumped Standards-Version to 3.7.3. -- Jens Peter Secher Mon, 14 Jan 2008 23:17:46 +0100 haxe (1:1.16-1~bpo40+1) etch-backports; urgency=low * Backport to Etch, which requires dropping the dependency on camlp4. -- Jens Peter Secher Mon, 19 Nov 2007 21:31:56 +0100 haxe (1:1.16-1) unstable; urgency=low * New upstream release. -- Jens Peter Secher Wed, 07 Nov 2007 22:15:33 +0100 haxe (1:1.15-2) unstable; urgency=low * Make sure there is a Caml Preprocessor & Pretty Printer (camlp4) when building. (Closes: #441510) -- Jens Peter Secher Mon, 10 Sep 2007 23:18:51 +0200 haxe (1:1.15-1) unstable; urgency=low * New upstream release. -- Jens Peter Secher Wed, 29 Aug 2007 21:28:45 +0200 haxe (1:1.14-3) unstable; urgency=low * The bytecode compiler should have the same name as the native compiler, which fixes FTBFS on S390, M68k, Arm, and MIPS. -- Jens Peter Secher Sun, 29 Jul 2007 15:07:57 +0200 haxe (1:1.14-2) unstable; urgency=low * Use $CURDIR everywhere in debian/rules. (Closes: #435026) -- Jens Peter Secher Sun, 29 Jul 2007 01:11:06 +0200 haxe (1:1.14-1) unstable; urgency=low * New upstream release. * Updated man pages. * Prefer emacs22 over emacs21. (Closes: #434918) * Simplify install, removal, and load-path by using symlinks instead of copying source files. -- Jens Peter Secher Sat, 28 Jul 2007 11:43:58 +0200 haxe (1:1.13-1bpo1) stable; urgency=low * Backport to etch (no change). -- Jens Peter Secher Sun, 27 May 2007 10:58:46 +0200 haxe (1:1.13-1) unstable; urgency=low * New upstream release. * Updated man pages. -- Jens Peter Secher Sun, 27 May 2007 00:44:04 +0200 haxe (1:1.12-1) unstable; urgency=low * Switched to upstream version numbers. * New version of haxe-mode.el which is now properly setup for emacsen (but only for emacs-snapshot or emacs22, since haxe-mode depends on a recent cc-mode). -- Jens Peter Secher Sun, 18 Mar 2007 15:25:36 +0100 haxe (20070307-1) experimental; urgency=low * New upstream release (~1.12). * Updated man page accordingly. -- Jens Peter Secher Wed, 7 Mar 2007 00:30:04 +0100 haxe (20070224-1) experimental; urgency=low * New upstream release (~1.11) matches Neko version 1.5.3. * New version of haxe-mode for Emacs. -- Jens Peter Secher Sat, 24 Feb 2007 16:10:56 +0100 haxe (20070106-1) experimental; urgency=low * New upstream release (~1.10). * Updated manpages. * Include haxe-mode for Emacs. -- Jens Peter Secher Sat, 6 Jan 2007 19:01:42 +0100 haxe (20061201-1) experimental; urgency=low * New upstream release. * Include lintian overrides for unstripped bytecode files. -- Jens Peter Secher Fri, 1 Dec 2006 19:18:02 +0100 haxe (20061106-1bpo1) stable; urgency=low * Change the dependencies to backport to Sarge. -- Jens Peter Secher Sun, 12 Nov 2006 15:16:31 +0100 haxe (20061106-1) experimental; urgency=low * New upstream release (~1.08). - Fixes flash6 code generation. (Closes: #396141) * Use neko to build haxelib and haxedoc executables, both of which searches for the libneko.so by use of -rpath in /usr/lib/neko since we do not want this private library to end up in /usr/lib. -- Jens Peter Secher Mon, 6 Nov 2006 18:21:09 +0100 haxe (20060912-2) unstable; urgency=low * Fixed build failure on architectures without a native ocaml compiler. * Added Tag field to control file to test Enrico Zini's debtags-updatecontrol. * Changed description to match that on haxe.org . -- Jens Peter Secher Wed, 13 Sep 2006 09:38:12 +0200 haxe (20060912-1) unstable; urgency=low * New upstream release (1.07). -- Jens Peter Secher Tue, 12 Sep 2006 21:39:22 +0200 haxe (20060715-2) unstable; urgency=low * Fixed build failure on architectures without a native ocaml compiler, thanks to Samuel Mimram and Paul Wise. (Closes: #378373) * Fixed misspelling in package description. (Closes: #378631) * Updated manual page. -- Jens Peter Secher Sat, 22 Jul 2006 10:39:48 +0200 haxe (20060715-1) unstable; urgency=low * New upstream release. -- Jens Peter Secher Sat, 15 Jul 2006 11:13:35 +0200 haxe (20060606-2) experimental; urgency=low * Avoid splitting off the arch-independent library files into a separate package. -- Jens Peter Secher Wed, 7 Jun 2006 23:05:35 +0200 haxe (20060606-1) experimental; urgency=low * Included all copyright holders from the OCaml Extended standard Library (ExtLib). * Bumped Standards-Version to 3.7.2. -- Jens Peter Secher Tue, 6 Jun 2006 21:50:56 +0200 haxe (1.0-1) experimental; urgency=low * Inital package. (Closes: #365425). -- Jens Peter Secher Sun, 30 Apr 2006 00:17:24 +0200 debian/rules0000755000000000000000000000144212174621241010247 0ustar #!/usr/bin/make -f # debian/rules for haXe. %: dh $@ override_dh_auto_configure: override_dh_auto_install: override_dh_install: mkdir -p $(CURDIR)/debian/haxe/etc/bash_completion.d cp debian/bash_completion $(CURDIR)/debian/haxe/etc/bash_completion.d/haxe mkdir -p $(CURDIR)/debian/haxe/usr/bin mkdir -p $(CURDIR)/debian/haxe/usr/lib cp std/tools/haxelib/haxelib.sh $(CURDIR)/debian/haxe/usr/bin/haxelib cp std/tools/haxedoc/haxedoc.sh $(CURDIR)/debian/haxe/usr/bin/haxedoc dh_install rm -f $(CURDIR)/debian/haxe/usr/share/haxe/std/tools/haxelib/haxelib.sh rm -f $(CURDIR)/debian/haxe/usr/share/haxe/std/tools/haxedoc/haxedoc.sh override_dh_clean: find $(CURDIR) -name '*.cmx' |xargs rm -f find $(CURDIR) -name '*.cmo' |xargs rm -f find $(CURDIR) -name '*.cma' |xargs rm -f dh_clean debian/install_bytecode.ml0000644000000000000000000001036512173532361013054 0ustar (* * This file is based on http://haxe.org/file/install.ml and * was modified by Jens Peter Secher for the Debian distribution * to use ocamlfind to locate external ocaml libraries. The original * file had the following boilerplate: *) (* * Haxe installer * Copyright (c)2005 Nicolas Cannasse * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *) #load "unix.cma" (* ----- BEGIN CONFIGURATION ---- *) let bytecode = true let native = false (* ------ END CONFIGURATION ----- *) let os_type = Sys.os_type (* remove the comment to compile with windows using ocaml cygwin *) (* let os_type = "Cygwin" *) let obj_ext = match os_type with "Win32" -> ".obj" | _ -> ".o" let exe_ext = match os_type with "Win32" | "Cygwin" -> ".exe" | _ -> "" let ocamloptflags = match os_type with "Unix" -> "-cclib -fno-stack-protector " | _ -> "" let msg m = prerr_endline m; flush stdout let command c = msg ("> " ^ c); if Sys.command c <> 0 then failwith ("Error while running " ^ c) let ocamlc file = if bytecode then command ("ocamlfind ocamlc -c " ^ file); if native then command ("ocamlfind ocamlopt -c " ^ ocamloptflags ^ file) let modules l ext = String.concat " " (List.map (fun f -> f ^ ext) l) ;; let compile_libs() = (* EXTLIB *) Sys.chdir "ocaml/extlib-dev"; command ("ocaml install.ml -nodoc -d .. " ^ (if bytecode then "-b " else "") ^ (if native then "-n" else "")); msg ""; Sys.chdir "../.."; (* EXTC *) Sys.chdir "ocaml/extc"; let c_opts = (if Sys.ocaml_version < "3.08" then " -ccopt -Dcaml_copy_string=copy_string " else " ") in command ("ocamlfind ocamlc" ^ c_opts ^ " -I .. -I ../ extc_stubs.c"); let options = "-cclib ../ocaml/extc/extc_stubs" ^ obj_ext ^ " -cclib -lz extc.ml" in if bytecode then command ("ocamlfind ocamlc -a -I .. -o extc.cma " ^ options); if native then command ("ocamlfind ocamlopt -a -I .. -o extc.cmxa " ^ options); Sys.chdir "../.."; (* SWFLIB *) Sys.chdir "ocaml/swflib"; let files = "-I .. -I ../extc as3.mli as3hl.mli as3code.ml as3parse.ml as3hlparse.ml swf.ml actionScript.ml swfParser.ml" in if bytecode then command ("ocamlfind ocamlc -a -o swflib.cma " ^ files); if native then command ("ocamlfind ocamlopt -a -o swflib.cmxa " ^ files); Sys.chdir "../.."; in let compile() = (try Unix.mkdir "bin" 0o740 with Unix.Unix_error(Unix.EEXIST,_,_) -> ()); compile_libs(); (* HAXE *) Sys.chdir "haxe"; command "ocamllex lexer.mll"; let libs = [ "../ocaml/extLib"; "../ocaml/extc/extc"; "../ocaml/swflib/swflib"; "/usr/lib/ocaml/xml-light/xml-light"; "unix"; "str" ] in let neko = "../neko/libs/include/ocaml" in let paths = [ "../ocaml"; "../ocaml/swflib"; "/usr/lib/ocaml/xml-light"; "../ocaml/extc"; neko ] in let mlist = [ "ast";"lexer";"type";"common";"parser";"typecore"; "genxml";"typeload";"codegen";"optimizer"; neko^"/nast";neko^"/binast";neko^"/nxml"; "genneko";"genas3";"genjs";"genswf8";"genswf9";"genswf";"genphp";"gencpp"; "interp";"typer";"main"; ] in let pkgs_str = " -linkpkg -package xml-light" in let path_str = String.concat " " (List.map (fun s -> "-I " ^ s) paths) in let libs_str ext = " " ^ String.concat " " (List.map (fun l -> l ^ ext) libs) ^ " " in ocamlc (path_str ^ pkgs_str ^ " -pp camlp4o " ^ modules mlist ".ml"); if bytecode then command ("ocamlfind ocamlc -custom -o ../bin/haxe" ^ pkgs_str ^ libs_str ".cma" ^ modules mlist ".cmo"); if native then command ("ocamlfind ocamlopt -o ../bin/haxe" ^ pkgs_str ^ libs_str ".cmxa" ^ modules mlist ".cmx"); in let startdir = Sys.getcwd() in try compile(); Sys.chdir startdir; with Failure msg -> Sys.chdir startdir; prerr_endline msg; exit 1 debian/haxe.10000644000000000000000000000574312173532361010211 0ustar .TH HAXE 1 "Feb 06, 2011" "" .SH NAME haxe \- compile haXe programs to SWF, Neko, JavaScript, PHP, or C++. .SH SYNOPSIS \fBhaxe\fR \fB-main\fR \fIclass\fR [\fB-swf9\fR|\fB-swf\fR|\fB-js\fR|\fB-neko\fR|\fB-php\fR|\fB-cpp\fR|\fB-as3\fR] \fIoutput\fR [options...] .SH DESCRIPTION .B haxe is a command-line compiler which compiles haXe programs into Flash SWF, JavaScript, ActionScript, PHP, C++, or Neko bytecode. .PP haXe programs are similar to JavaScript, but have a full-featured type system with generics. .SH OPTIONS .TP .BI "\-cp " path Add a directory to find source files. .TP .BI "\-js " file Compile code to JavaScript file. .TP .BI "\-swf " file Compile code to Flash SWF file. .TP .BI "\-as3 " directory Generate AS3 code into target directory. .TP .BI "\-neko " file Compile code to Neko Binary. .TP .BI "\-php " file Generate PHP code into target directory. .TP .BI "\-cpp " file Generate C++ code into target directory. .TP .BI "\-xml " file Generate XML types description. .TP .BI "\-main " class Select startup class. .TP .BI "\-lib " library[:version] Use a haxelib library. .TP .BI "\-D " var Define a conditional compilation flag. .TP .B "\-v" Turn on verbose mode. .TP .B "\-debug" Add debug information to the compiled code. .TP .BI "\-swf\-version " version Change the SWF version (6 to 10). .TP .BI "\-swf\-header " header Define SWF header (width:height:fps:color). .TP .BI "\-swf\-lib " file Add the SWF library to the compiled SWF. .TP .BI "\-x " file Shorthand for compiling and executing a neko file. .TP .BI "\-resource " file[@name] Add a named resource file. .TP .B "\-prompt" Prompt on error. .TP .B "\-cmd" Run the specified command after successful compilation. .TP .B "\-\-flash\-strict" More type strict flash API. .TP .B "\-\-no\-traces" Do not compile trace calls in the program. .TP .B "\-\-flash\-use\-stage" Place objects found on the stage of the SWF lib. .TP .B "\-\-neko\-source" Keep generated neko source. .TP .BI "\-\-gen\-hx\-classes " file Generate hx headers from SWF9 file. .TP .B "\-\-next" Separate several haxe compilations. .TP .B "\-\-display" Display code tips. .TP .B "\-\-no\-output" Compiles but does not generate any file. .TP .B "\-\-times" Measure compilation times. .TP .B "\-\-no-inline" Disable inlining. .TP .B "\-\-no-opt" Disable code optimizations. .TP .BI "\-\-php-front " file Select the name for the php front file. .TP .BI "\-\-php-lib " file select the name for the php lib folder. .TP .BI "\-\-js\-namespace " namespace Create a namespace where root types are defined. .TP .BI "\-\-remap " package:target Remap a package to another one. .TP .B "\-\-interp" Interpret the program using internal macro system. .TP .B "\-\-macro" Call the given macro before typing anything else. .TP .B "\-\-dead-code-elimination" Remove unused methods. .TP .B "\-help" Display this list of options. .TP .B "\-\-help" Display this list of options. .SH AUTHOR haXe is written by Nicolas Cannasse for Motion-Twin. .SH SEE ALSO .BR "haxelib" (1), .BR "haxedoc" (1). .IR "http://haxe.org" . debian/control0000644000000000000000000000157412173532361010603 0ustar Source: haxe Section: devel Priority: optional Maintainer: Debian QA Group Standards-Version: 3.9.4 Build-Depends: debhelper (>= 9), ocaml, ocaml-best-compilers | ocaml-native-compilers, ocaml-findlib, libxml-light-ocaml-dev, camlp4 (>= 3.11), zlib1g-dev, neko (>= 1.8.1~) Vcs-Hg: http://anonscm.debian.org/hg/collab-maint/haxe Homepage: http://haxe.org Package: haxe Architecture: any Depends: neko (>= 1.8.1), ${shlibs:Depends}, ${misc:Depends}, ${ocaml:Depends} Description: Web-oriented universal programming language Programming language similar to JavaScript, but with full-featured static type system and generics. The command-line compiler can generate Flash SWF files for client-side use, Neko bytecode for server-side use on Apache, or JavaScript/PHP using Browser DHTML API to create AJAX web applications. . haXe was written by Nicolas Cannasse. debian/copyright0000644000000000000000000000716512173532361011135 0ustar This is the Debian packaging of the haXe compiler, compiled by Jens Peter Secher . The original source was extracted from the public CVS repository (:pserver:anonymous@cvs.motion-twin.com:/cvsroot) as described in the get-orig-source target in the debian/rules file of the Debian source package. ---[ haXe compiler License begin ]--- Copyright (c)2005 Nicolas Cannasse This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. ---[ haXe compiler License end ]--- The full GNU General Public License is located in the file /usr/share/common-licenses/GPL-2 on a Debian system. The haXe compile-time library in /usr/share/haxe is distributed under the following license. ---[ haXe library license begin ]--- Copyright (c) 2005, The haXe Project Contributors All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE HAXE PROJECT CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE HAXE PROJECT CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ---[ haXe library license end ]--- The Emacs mode for haXe was written by yours truly and has the following license. ---[ haxe-mode license begin ]--- Copyright (C) 2006-2009 Jens Peter Secher This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . ---[ haxe-mode license end ]--- The full GNU General Public License is located in the file /usr/share/common-licenses/GPL-3 on a Debian system. debian/install_native.ml0000644000000000000000000001036512173532361012544 0ustar (* * This file is based on http://haxe.org/file/install.ml and * was modified by Jens Peter Secher for the Debian distribution * to use ocamlfind to locate external ocaml libraries. The original * file had the following boilerplate: *) (* * Haxe installer * Copyright (c)2005 Nicolas Cannasse * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *) #load "unix.cma" (* ----- BEGIN CONFIGURATION ---- *) let bytecode = false let native = true (* ------ END CONFIGURATION ----- *) let os_type = Sys.os_type (* remove the comment to compile with windows using ocaml cygwin *) (* let os_type = "Cygwin" *) let obj_ext = match os_type with "Win32" -> ".obj" | _ -> ".o" let exe_ext = match os_type with "Win32" | "Cygwin" -> ".exe" | _ -> "" let ocamloptflags = match os_type with "Unix" -> "-cclib -fno-stack-protector " | _ -> "" let msg m = prerr_endline m; flush stdout let command c = msg ("> " ^ c); if Sys.command c <> 0 then failwith ("Error while running " ^ c) let ocamlc file = if bytecode then command ("ocamlfind ocamlc -c " ^ file); if native then command ("ocamlfind ocamlopt -c " ^ ocamloptflags ^ file) let modules l ext = String.concat " " (List.map (fun f -> f ^ ext) l) ;; let compile_libs() = (* EXTLIB *) Sys.chdir "ocaml/extlib-dev"; command ("ocaml install.ml -nodoc -d .. " ^ (if bytecode then "-b " else "") ^ (if native then "-n" else "")); msg ""; Sys.chdir "../.."; (* EXTC *) Sys.chdir "ocaml/extc"; let c_opts = (if Sys.ocaml_version < "3.08" then " -ccopt -Dcaml_copy_string=copy_string " else " ") in command ("ocamlfind ocamlc" ^ c_opts ^ " -I .. -I ../ extc_stubs.c"); let options = "-cclib ../ocaml/extc/extc_stubs" ^ obj_ext ^ " -cclib -lz extc.ml" in if bytecode then command ("ocamlfind ocamlc -a -I .. -o extc.cma " ^ options); if native then command ("ocamlfind ocamlopt -a -I .. -o extc.cmxa " ^ options); Sys.chdir "../.."; (* SWFLIB *) Sys.chdir "ocaml/swflib"; let files = "-I .. -I ../extc as3.mli as3hl.mli as3code.ml as3parse.ml as3hlparse.ml swf.ml actionScript.ml swfParser.ml" in if bytecode then command ("ocamlfind ocamlc -a -o swflib.cma " ^ files); if native then command ("ocamlfind ocamlopt -a -o swflib.cmxa " ^ files); Sys.chdir "../.."; in let compile() = (try Unix.mkdir "bin" 0o740 with Unix.Unix_error(Unix.EEXIST,_,_) -> ()); compile_libs(); (* HAXE *) Sys.chdir "haxe"; command "ocamllex lexer.mll"; let libs = [ "../ocaml/extLib"; "../ocaml/extc/extc"; "../ocaml/swflib/swflib"; "/usr/lib/ocaml/xml-light/xml-light"; "unix"; "str" ] in let neko = "../neko/libs/include/ocaml" in let paths = [ "../ocaml"; "../ocaml/swflib"; "/usr/lib/ocaml/xml-light"; "../ocaml/extc"; neko ] in let mlist = [ "ast";"lexer";"type";"common";"parser";"typecore"; "genxml";"typeload";"codegen";"optimizer"; neko^"/nast";neko^"/binast";neko^"/nxml"; "genneko";"genas3";"genjs";"genswf8";"genswf9";"genswf";"genphp";"gencpp"; "interp";"typer";"main"; ] in let pkgs_str = " -linkpkg -package xml-light" in let path_str = String.concat " " (List.map (fun s -> "-I " ^ s) paths) in let libs_str ext = " " ^ String.concat " " (List.map (fun l -> l ^ ext) libs) ^ " " in ocamlc (path_str ^ pkgs_str ^ " -pp camlp4o " ^ modules mlist ".ml"); if bytecode then command ("ocamlfind ocamlc -custom -o ../bin/haxe" ^ pkgs_str ^ libs_str ".cma" ^ modules mlist ".cmo"); if native then command ("ocamlfind ocamlopt -o ../bin/haxe" ^ pkgs_str ^ libs_str ".cmxa" ^ modules mlist ".cmx"); in let startdir = Sys.getcwd() in try compile(); Sys.chdir startdir; with Failure msg -> Sys.chdir startdir; prerr_endline msg; exit 1 debian/emacsen-startup0000644000000000000000000000221612173532361012230 0ustar ;; -*-emacs-lisp-*- (if (not (file-exists-p "/usr/share/emacs/site-lisp/haxe-mode")) (message "Package haxe needs reinstall. Skipping setup.") (let ((haxedir (concat "/usr/share/" (symbol-name debian-emacs-flavor) "/site-lisp/haxe-mode"))) ;; Only load haxe-mode if it has been installed. (if (zerop (length (file-expand-wildcards haxedir))) (message "haxe-mode not for this flavor. Skipping.") ;; The haxe package follows the Debian/GNU Linux 'emacsen' policy and ;; byte-compiles its elisp files for each 'emacs flavor'. The compiled code ;; is then installed in a subdirectory of the respective site-lisp directory. (debian-pkg-add-load-path-item haxedir) ;; Automatically start haXe files in haxe-mode. (add-to-list (quote auto-mode-alist) (quote ("\\.hx\\'" . haxe-mode))) ;; Make sure that Help can find the source code. Has to be at the end. (setq load-path (nconc load-path (list "/usr/share/emacs/site-lisp/haxe-mode"))) (autoload 'haxe-mode "haxe-mode" "Major mode for editing haXe code." t)))) debian/bash_completion0000644000000000000000000000674512173532361012276 0ustar # -*- shell-script -*- # haxe(1) bash-completion specification. # Put in the public domain 2008 by Jens Peter Secher. # Inputs: # $1 -- name of the command whose arguments are being completed # $2 -- word being completed # $3 -- word preceding the word being completed # $COMP_LINE -- current command line # $COMP_PONT -- cursor position # $COMP_WORDS -- array containing individual words in the current # command line # $COMP_CWORD -- index into ${COMP_WORDS} of the word containing the # current cursor position # Output: # COMPREPLY array variable contains possible completions _haxe() { local cur prev options firstchar COMPREPLY=() cur=${COMP_WORDS[COMP_CWORD]} prev=${COMP_WORDS[COMP_CWORD-1]} ## All available options to haxe. options='-cp -js -as3 -swf -as3 -neko -php -cpp -xml -main -lib \ -D -v -debug -swf-version -swf-header -swf-lib -x -resource -prompt -cmd --flash-strict --no-traces \ --flash-use-stage --neko-source --gen-hx-classes --next \ --display --no-output --times --no-inline --no-opt \ --php-front --php-lib --js-namespace --remap --interp --macro --dead-code-elimination -help --help' case $prev in -cp|-as3) COMPREPLY=( $( compgen -o dirnames -- ${cur} ) ) ;; -js) COMPREPLY=( $( compgen -o filenames -G "${cur}*.js" ) ) ;; -swf) COMPREPLY=( $( compgen -o filenames -G "${cur}*.swf" ) ) ;; -swf-lib|-resource) COMPREPLY=( $( compgen -o filenames -- ${cur} ) ) ;; -neko) COMPREPLY=( $( compgen -o filenames -G "${cur}*.n" ) ) ;; -php|--php-front) COMPREPLY=( $( compgen -o filenames -G "${cur}*.php" ) ) ;; --php-lib) COMPREPLY=( $( compgen -o filenames -- ${cur} ) ) ;; -cpp) COMPREPLY=( $( compgen -o filenames -G "${cur}*" ) ) ;; -xml) COMPREPLY=( $( compgen -o filenames -G "${cur}*.xml" ) ) ;; --gen-hx-classes) COMPREPLY=( $( compgen -o filenames -G "${cur}*.hx" ) ) ;; -swf-version) local swf_versions='6 7 8 9 10 10.1 10.2' COMPREPLY=( $( compgen -W "${swf_versions}" -- ${cur} ) ) ;; -swf-header) ## An improvement here would be to restrict to n:n:n:c. ;; -main) ## An improvement here would be to find class Xxx in *.hx ## files, alternatively just Xxx.hx. ;; -lib) ## Complete on installed haxelibs. if haxelib list 2>&1 > /dev/null; then local libraries=`haxelib list | sed 's/:.*//g'` COMPREPLY=( $( compgen -W "${libraries}" -- ${cur} ) ) fi ;; -D) ## An improvement here would be to grep in hx files after #if xxx. ;; *) ## The previous commandline argument is not an option that ## needs a value, so look at current argument. If first ## character is a dash, complete on options, otherwise do ## normal shell completion. firstchar=`expr substr "${cur}" 1 1` if [ "$firstchar" = "-" ]; then COMPREPLY=( $( compgen -W "${options}" -- ${cur} ) ) else COMPREPLY=( $( compgen -o default -- ${cur} ) ) fi ;; esac return 0 } complete -F _haxe -o filenames haxe debian/haxe.changelogs0000644000000000000000000000002512173532361012147 0ustar haxe/doc/CHANGES.txt debian/haxe.install0000644000000000000000000000013612174620657011515 0ustar haxe usr/bin std/* usr/share/haxe/std debian/haxe-mode.el usr/share/emacs/site-lisp/haxe-mode debian/haxe-mode.el0000644000000000000000000002427512173532361011374 0ustar ;;; Commentary: ;; ------------------------------------------------------------------------ ;; Copyright (C) 2006-2009 Jens Peter Secher ;; This program is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by ;; the Free Software Foundation, either version 3 of the License, or ;; (at your option) any later version. ;; This program is distributed in the hope that it will be useful, ;; but WITHOUT ANY WARRANTY; without even the implied warranty of ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ;; GNU General Public License for more details. ;; You should have received a copy of the GNU General Public License ;; along with this program. If not, see . ;; ------------------------------------------------------------------------ ;; This is haxe-mode, an Emacs major mode for the haXe programming ;; language (http://haxe.org). ;; haxe-mode is built on top of the excellent cc-mode, inspired by the ;; guide http://cc-mode.sourceforge.net/derived-mode-ex.el. ;; haxe-mode is NOT part of GNU Emacs. ;;; Versions: ;; ;; 0.1.0 - Initial release. ;; 0.1.1 - Fixed typedef indentation. ;; Fixed lexical analysis so that type names can contain digits. ;; 0.2.0 - Base on java-mode instead of c++-mode. ;; Added compile-error parser for the haXe compiler output. ;; Loads of improvements. ;; 0.2.1 - Fix buffer-local comment-start-skip problem. ;; 0.2.2 - Recognise keyword override. ;; 0.3.0 - Switched to GPLv3 license because that is what cc-mode is using. ;; 0.3.1 - Fix compile problem with emacs23. ;; ;;; Usage: ;; ;; Include something like this in your .emacs: ;; (require 'haxe-mode) ;; (defconst my-haxe-style ;; '("java" (c-offsets-alist . ((case-label . +) ;; (arglist-intro . +) ;; (arglist-cont-nonempty . 0) ;; (arglist-close . 0) ;; (cpp-macro . 0)))) ;; "My haXe Programming Style") ;; (add-hook 'haxe-mode-hook ;; (function (lambda () (c-add-style "haxe" my-haxe-style t)))) ;; (add-hook 'haxe-mode-hook ;; (function ;; (lambda () ;; (setq tab-width 4) ;; (setq indent-tabs-mode t) ;; (setq fill-column 80) ;; (local-set-key [(return)] 'newline-and-indent)))) ;;; Code: (require 'cc-mode) (require 'cc-fonts) (require 'cc-langs) (require 'cc-bytecomp) (require 'compile) ;; The language constants are needed when compiling. (eval-when-compile (let ((load-path (if (and (boundp 'byte-compile-dest-file) (stringp byte-compile-dest-file)) (cons (file-name-directory byte-compile-dest-file) load-path) load-path))) (load "cc-mode" nil t) (load "cc-fonts" nil t) (load "cc-langs" nil t) (load "cc-bytecomp" nil t))) (eval-and-compile ;; Tell the language constant system about haXe and base it on Java. (c-add-language 'haxe-mode 'java-mode)) ;;; Lexer-level syntax (identifiers, tokens etc). ;; No other operators in identifiers. (c-lang-defconst c-after-id-concat-ops haxe nil) ;; Conditional compilation prefix. (c-lang-defconst c-opt-cpp-prefix haxe "\\s *#") ;; No strings in conditional compilation. (c-lang-defconst c-cpp-message-directives haxe nil) ;; No file name in angle brackets or quotes in conditional compilation. (c-lang-defconst c-cpp-include-directives haxe nil) ;; No macro definition in conditional compilation. (c-lang-defconst c-opt-cpp-macro-define haxe nil) ;; Conditional compilation directives followed by expressions. (c-lang-defconst c-cpp-expr-directives haxe '("if" "else")) ;; No functions in conditional compilation. (c-lang-defconst c-cpp-expr-functions haxe nil) ;; haXe operators. (c-lang-defconst c-operators haxe `( ;; Preprocessor. (prefix "#") ;; Standard operators. ,@(c-lang-const c-identifier-ops) ;; Generics. (postfix-if-paren "<" ">") ;; Postfix. (left-assoc "." "->") (postfix "++" "--" "[" "]" "(" ")") ;; Unary. (prefix "++" "--" "+" "-" "!" "~" "new") ;; Multiplicative. (left-assoc "*" "/" "%") ;; Additive. (left-assoc "+" "-") ;; Shift. (left-assoc "<<" ">>" ">>>") ;; Relational. (left-assoc "<" ">" "<=" ">=") ;; Iteration. (left-assoc "...") ;; Equality. (left-assoc "==" "!=" "===" "!==") ;; Bitwise and. (left-assoc "&") ;; Bitwise exclusive or. (left-assoc "^") ;; Bitwise or. (left-assoc "|") ;; Logical and. (left-assoc "&&") ;; Logical or. (left-assoc "||") ;; Assignment. (right-assoc ,@(c-lang-const c-assignment-operators)) ;; Exception. (prefix "throw") ;; Sequence. (left-assoc ","))) ;; No overloading. (c-lang-defconst c-overloadable-operators haxe nil) (c-lang-defconst c-opt-op-identitier-prefix haxe nil) ;;; Keywords. ;; I will treat types uniformly below since they all start with capital ;; letters. (c-lang-defconst c-primitive-type-kwds haxe nil) ;; TODO: check double occurrence of enum. ;; Type-introduction is straight forward in haXe. (c-lang-defconst c-class-decl-kwds haxe '( "class" "interface" "enum" "typedef" )) ;; Recognises enum constants. ;; TODO: find a way to also recognise parameterised constants. (c-lang-defconst c-brace-list-decl-kwds haxe '( "enum" )) ;; Keywords introducing declarations where the identifier follows directly ;; after the keyword, without any type. (c-lang-defconst c-typeless-decl-kwds haxe (append '( "function" "var" ) (c-lang-const c-class-decl-kwds) (c-lang-const c-brace-list-decl-kwds))) ;; Definition modifiers. (c-lang-defconst c-modifier-kwds haxe '( "private" "public" "static" "override")) (c-lang-defconst c-other-decl-kwds haxe nil) ;; Namespaces. (c-lang-defconst c-ref-list-kwds haxe '( "import" "package")) ;; Statement keywords followed directly by a substatement. (c-lang-defconst c-block-stmt-1-kwds haxe '( "do" "else" "try" )) ;; Statement keywords followed by a paren sexp and then by a substatement. (c-lang-defconst c-block-stmt-2-kwds haxe '( "for" "if" "switch" "while" "catch" )) ;; Statement keywords followed by an expression or nothing. (c-lang-defconst c-simple-stmt-kwds haxe '( "break" "continue" "return" "default" "new" )) ;; No ';' inside 'for'. (c-lang-defconst c-paren-stmt-kwds haxe nil) ;; Keywords for constants. (c-lang-defconst c-constant-kwds haxe '( "false" "true" "null" )) ;; Keywords for expressions. (c-lang-defconst c-primary-expr-kwds haxe '( "this" "super" )) (c-lang-defconst c-decl-hangon-kwds haxe '( "in" )) ;; No other labels. (c-lang-defconst c-before-label-kwds haxe nil) ;; No classes inside expressions. (c-lang-defconst c-inexpr-class-kwds haxe nil) ;; No brace lists inside expressions. (c-lang-defconst c-inexpr-brace-list-kwds haxe nil) ;; All identifiers starting with a capital letter are types. (c-lang-defconst c-cpp-matchers haxe (append (c-lang-const c-cpp-matchers c) '(("\\<\\([A-Z][A-Za-z0-9_]*\\)\\>" 1 font-lock-type-face)))) ;; Generic types. (c-lang-defconst c-recognize-<>-arglists haxe t) ;; Fontification degrees. (defconst haxe-font-lock-keywords-1 (c-lang-const c-matchers-1 haxe) "Minimal highlighting for haxe mode.") (defconst haxe-font-lock-keywords-2 (c-lang-const c-matchers-2 haxe) "Fast normal highlighting for haxe mode.") (defconst haxe-font-lock-keywords-3 (c-lang-const c-matchers-3 haxe) "Accurate normal highlighting for haxe mode.") (defvar haxe-font-lock-keywords haxe-font-lock-keywords-3 "Default expressions to highlight in haxe mode.") (defvar haxe-mode-syntax-table nil "Syntax table used in HaXe mode buffers.") (or haxe-mode-syntax-table (setq haxe-mode-syntax-table (funcall (c-lang-const c-make-mode-syntax-table haxe)))) (defvar haxe-mode-abbrev-table nil "Abbreviation table used in haxe mode buffers.") (c-define-abbrev-table 'haxe-mode-abbrev-table ;; Keywords that, if they occur first on a line, might alter the ;; syntactic context, and which therefore should trigger ;; reindentation when they are completed. '(("else" "else" c-electric-continued-statement 0) ("while" "while" c-electric-continued-statement 0) ("catch" "catch" c-electric-continued-statement 0))) (defvar haxe-mode-map () "Keymap used in haxe mode buffers.") (if haxe-mode-map nil (setq haxe-mode-map (c-make-inherited-keymap))) (add-to-list 'auto-mode-alist '("\\.hx\\'" . haxe-mode)) ;; Tell compilation-mode how to parse error messages. You need to set ;; compilation-error-screen-columns to nil to get the right ;; interpretation of tabs. (add-to-list 'compilation-error-regexp-alist '("^\\([^: ]+\\):\\([0-9]+\\): characters \\([0-9]+\\)-[0-9]+ : " 1 2 3)) (defcustom haxe-mode-hook nil "*Hook called by `haxe-mode'." :type 'hook :group 'c) (defun haxe-mode () "Major mode for editing haXe code. The hook `c-mode-common-hook' is run with no args at mode initialization, then `haxe-mode-hook'. Key bindings: \\{haxe-mode-map}" (interactive) (kill-all-local-variables) (c-initialize-cc-mode t) (set-syntax-table haxe-mode-syntax-table) (setq major-mode 'haxe-mode mode-name "haXe" local-abbrev-table haxe-mode-abbrev-table abbrev-mode t) (use-local-map haxe-mode-map) ;; `c-init-language-vars' is a macro that is expanded at compile ;; time to a large `setq' with all the language variables and their ;; customized values for our language. (c-init-language-vars haxe-mode) ;; `c-common-init' initializes most of the components of a CC Mode ;; buffer, including setup of the mode menu, font-lock, etc. ;; There's also a lower level routine `c-basic-common-init' that ;; only makes the necessary initialization to get the syntactic ;; analysis and similar things working. (c-common-init 'haxe-mode) (run-hooks 'c-mode-common-hook 'haxe-mode-hook) (c-update-modeline)) (provide 'haxe-mode) ;;; haxe-mode.el ends here. debian/emacsen-remove0000644000000000000000000000047012173532361012023 0ustar #!/bin/sh -e # /usr/lib/emacsen-common/packages/remove/haxe-mode FLAVOR=$1 PACKAGE=haxe-mode if [ ${FLAVOR} = emacs22 -o ${FLAVOR} = emacs23 -o ${FLAVOR} = emacs-snapshot ]; then echo remove/${PACKAGE}: purging byte-compiled files for ${FLAVOR} rm -rf /usr/share/${FLAVOR}/site-lisp/${PACKAGE} fi exit 0 debian/emacsen-install0000644000000000000000000000161112173532361012172 0ustar #!/bin/sh -e #/usr/lib/emacsen-common/packages/install/haxe-mode FLAVOR=$1 if [ ${FLAVOR} != emacs22 -a ${FLAVOR} != emacs23 -a ${FLAVOR} != emacs-snapshot ]; then exit 0; fi PACKAGE=haxe-mode echo install/${PACKAGE}: Handling install for emacsen flavor ${FLAVOR} # The byte-compiled files goes into the site-lisp directory. BCDIR=/usr/share/${FLAVOR}/site-lisp/${PACKAGE} install -m 755 -d ${BCDIR} # The elisp source files are in the generic site-list directory. SRCDIR=/usr/share/emacs/site-lisp/${PACKAGE} SRC=`find ${SRCDIR} -name '*.el' -exec basename '{}' ';'` # Prepare for byte-compiling the source files. cd ${BCDIR} ln -sf ${SRCDIR}/*.el . cat << EOF > path.el (setq load-path (cons "." load-path) byte-compile-warnings nil) EOF # Byte-compile elisp files. FLAGS="--no-site-file --no-init-file --batch -l path.el -f batch-byte-compile" ${FLAVOR} ${FLAGS} ${SRC} rm -f path.el exit 0 debian/haxedoc.10000644000000000000000000000055312173532361010671 0ustar .TH HAXEDOC 1 "Nov 6, 2006" "" .SH NAME haxedoc \- Haxe Documentation Generator .SH SYNOPSIS \fBhaxedoc\fR [xmlfiles...] [\fB-f \fIfilter\fR] .SH DESCRIPTION .PP haxedoc is a command-line tool to produce documentation from haXe programs. .SH AUTHOR haXe is written by Nicolas Cannasse for Motion-Twin. .SH SEE ALSO .BR "haxe" (1), .SH WEB .IR "http://haxe.org" . debian/haxe.manpages0000644000000000000000000000006012173532361011627 0ustar debian/haxe.1 debian/haxelib.1 debian/haxedoc.1 debian/haxelib.10000644000000000000000000000371512173532361010675 0ustar .TH HAXELIB 1 "Nov 6, 2006" "" .SH NAME haxelib \- Haxe Library Manager .SH SYNOPSIS .BR "haxelib " "[command] [options...]" .SH DESCRIPTION .PP haxelib is a command-line tool to manage both the global repository and your local repository of haXe libraries and projects. .SH COMMANDS .TP .BI "install " "library [version]" Install a given library from the global repository. Once a project is installed, you can simply use \fBhaxe \-lib \fR\fB\fIlibrary\fR \fI...\fR to be able to use it from your application. By default, this is the current version of the project that is used. If you want to use a specific version of the project, use \fBhaxe \-lib \fIlibrary\fR:\fIversion\fR ... .TP .B "list" List all installed libraries and their versions. .TP .B "upgrade" Upgrade all installed libraries to their latest version. .TP .BI "remove " "library [version]" Remove a given library. .TP .BI "set " "library [version]" Set the current version for a library. The version must be already installed. .TP .BI "search " word List global libraries matching a word. .TP .BI "info " library List information on a given library. .TP .BI "user " library List information on a given user on the global repository. .TP .BI "register " name Register a new user in the global repository. .TP .BI "submit " library Submit or update a library to the global repository. .TP .B "setup" Set the haxelib repository path. .TP .BI "config " library Print the local repository path. .TP .BI "path " libraries... List the path to the given libraries. .TP .BI "run " "library [arguments...]" Run the specified library with arguments if it provides a run script. Be careful about trusting libraries this way since the script can damage your system. .TP .BI "test " library install the specified library locally. .TP .BI "dev" Set the development directory for a given project. .SH AUTHOR haXe is written by Nicolas Cannasse for Motion-Twin. .SH SEE ALSO .BR "haxe" (1), .BR "haxedoc" (1). .SH WEB .IR "http://haxe.org" . debian/patches/0000755000000000000000000000000012173533401010614 5ustar debian/patches/fix_paths.diff0000644000000000000000000000612512173532361013443 0ustar Description: Update other paths specific to Debian installations. Author: Barry deFreese Index: haxe-3.0.0~svn6707/genneko.ml =================================================================== --- haxe-3.0.0~svn6707.orig/genneko.ml 2013-07-18 12:39:57.000000000 -0400 +++ haxe-3.0.0~svn6707/genneko.ml 2013-07-23 11:05:00.000000000 -0400 @@ -710,7 +710,7 @@ var @b = if( @s == "Windows" ) @env("HAXEPATH") + "\\lib\\" else try $loader.loadprim("std@file_contents",1)(@env("HOME")+"/.haxelib") + "/" - catch e if( @s == "Linux" ) "/usr/lib/haxe/lib/" else "/usr/local/lib/haxe/lib/"; + catch e if( @s == "Linux" ) "/usr/share/haxe/std/" else "/usr/local/lib/haxe/lib/"; if( $loader.loadprim("std@sys_is64",0)() ) @s = @s + 64; @s = @s + "/" *) @@ -732,7 +732,7 @@ op "+" (call p (loadp "file_contents" 1) [op "+" (call p (ident p "@env") [str p "HOME"]) (str p "./haxelib")]) (str p "/"), "e", (EIf (op "==" es (str p "Linux"), - str p "/usr/lib/haxe/lib/", + str p "/usr/share/haxe/lib/", Some (str p "/usr/local/lib/haxe/lib/") ),p) ),p) Index: haxe-3.0.0~svn6707/std/tools/haxelib/Main.hx =================================================================== --- haxe-3.0.0~svn6707.orig/std/tools/haxelib/Main.hx 2013-07-18 12:39:54.000000000 -0400 +++ haxe-3.0.0~svn6707/std/tools/haxelib/Main.hx 2013-07-23 11:05:00.000000000 -0400 @@ -671,7 +671,7 @@ File.getContent("/etc/.haxelib") catch( e : Dynamic ) { if( setup ) { - (win ? haxepath : "/usr/lib/haxe/")+REPNAME; + (win ? haxepath : "/usr/share/haxe/")+REPNAME; } else if( win ) { // Windows have a default directory (no need for setup) if( haxepath == null ) Index: haxe-3.0.0~svn6707/std/tools/hxinst/Main.hx =================================================================== --- haxe-3.0.0~svn6707.orig/std/tools/hxinst/Main.hx 2013-07-18 12:39:54.000000000 -0400 +++ haxe-3.0.0~svn6707/std/tools/hxinst/Main.hx 2013-07-23 11:05:00.000000000 -0400 @@ -40,7 +40,7 @@ libDir = "/usr/local/lib"; binDir = "/usr/local/bin"; } else { - libDir = "/usr/lib"; + libDir = "/usr/share"; binDir = "/usr/bin"; } baseDir = if( SYS == "Windows" ) { @@ -166,8 +166,8 @@ function install() { // CLEANUP var dirs = [ - "/usr/local/lib/neko", - "/usr/local/lib/haxe", + "/usr/lib/neko", + "/usr/share/haxe", "/opt/neko", "/opt/haxe", "c:/motion-twin", Index: haxe-3.0.0~svn6707/main.ml =================================================================== --- haxe-3.0.0~svn6707.orig/main.ml 2013-07-23 11:05:00.000000000 -0400 +++ haxe-3.0.0~svn6707/main.ml 2013-07-23 11:08:24.487140318 -0400 @@ -792,7 +792,7 @@ Parser.display_error := (fun e p -> com.error (Parser.error_msg e) p); Parser.use_doc := !Common.display_default || (!global_cache <> None); (try - let p = Sys.getenv "HAXE_STD_PATH" in + let p = "/usr/share/haxe/std" in let rec loop = function | drive :: path :: l -> if String.length drive = 1 && ((drive.[0] >= 'a' && drive.[0] <= 'z') || (drive.[0] >= 'A' && drive.[0] <= 'Z')) then debian/patches/debian-file-locations.diff0000644000000000000000000000153212173532361015603 0ustar Description: Set class path to ./haxe/std/ and /usr/share/haxe/. Author: Jens Peter Secher Index: haxe-3.0~svn6707/main.ml =================================================================== --- haxe-3.0~svn6707.orig/main.ml 2013-07-18 12:39:57.000000000 -0400 +++ haxe-3.0~svn6707/main.ml 2013-07-18 14:54:03.220102949 -0400 @@ -807,7 +807,7 @@ with Not_found -> if Sys.os_type = "Unix" then - com.class_path <- ["/usr/lib/haxe/std/";"/usr/local/lib/haxe/std/";"/usr/lib/haxe/extraLibs/";"/usr/local/lib/haxe/extraLibs/";"";"/"] + com.class_path <- ["./haxe/std/";"/usr/shre/haxe/std/";"./haxe/extraLibs/";"/usr/share/haxe/extraLibs/";"";"/"] else let base_path = normalize_path (Extc.get_real_path (try executable_path() with _ -> "./")) in com.class_path <- [base_path ^ "std/";base_path ^ "extraLibs/";""]); debian/patches/upstream_eval_order.diff0000644000000000000000000000501012173533401015504 0ustar Description: Pull patch from upstream to fix eval order when byte compiled. Author: Barry deFreese Index: haxe-3.0~svn6707/interp.ml =================================================================== --- haxe-3.0~svn6707.orig/interp.ml 2013-07-23 12:59:39.776241289 -0400 +++ haxe-3.0~svn6707/interp.ml 2013-07-23 12:59:39.772241269 -0400 @@ -484,7 +484,10 @@ let vm = Extc.dlcall1 (load "neko_vm_alloc") null in ignore(Extc.dlcall1 (load "neko_vm_select") vm); let loader = Extc.dlcall2 (load "neko_default_loader") null null in - let loadprim = Extc.dlcall2 (load "neko_val_field") loader (Extc.dlcall1 (load "neko_val_id") (Extc.dlstring "loadprim")) in + let loadprim = + let l1 = load "neko_val_field" in + let l2 = Extc.dlcall1 (load "neko_val_id") (Extc.dlstring "loadprim") in + Extc.dlcall2 (l1) loader (l2) in let callN = load "neko_val_callN" in let callEx = load "neko_val_callEx" in @@ -4542,4 +4545,4 @@ decode_expr_ref := decode_expr; encode_clref_ref := encode_clref; enc_string_ref := enc_string; -enc_hash_ref := enc_hash \ No newline at end of file +enc_hash_ref := enc_hash Index: haxe-3.0~svn6707/matcher.ml =================================================================== --- haxe-3.0~svn6707.orig/matcher.ml 2013-07-23 12:59:39.776241289 -0400 +++ haxe-3.0~svn6707/matcher.ml 2013-07-23 12:59:39.772241269 -0400 @@ -534,7 +534,8 @@ pc_sub_vars = None; pc_reify = false; } in - loop pctx e t, pctx.pc_locals + let x = loop pctx e t in + x, pctx.pc_locals let get_pattern_locals ctx e t = try @@ -1304,4 +1305,4 @@ end; ;; match_expr_ref := match_expr; -get_pattern_locals_ref := get_pattern_locals \ No newline at end of file +get_pattern_locals_ref := get_pattern_locals Index: haxe-3.0~svn6707/libs/ttflib/Makefile =================================================================== --- haxe-3.0~svn6707.orig/libs/ttflib/Makefile 2013-07-18 12:39:59.000000000 -0400 +++ haxe-3.0~svn6707/libs/ttflib/Makefile 2013-07-23 13:01:50.788890945 -0400 @@ -4,11 +4,16 @@ OUTPUT=ttf -all: +all: native bytecode + +native: ocamlopt $(FLAGS) $(FILES:=.ml) -g -a -o ttf.cmxa +bytecode: + ocamlc $(FLAGS) $(FILES:=.ml) -g -a -o ttf.cma + exec: ocamlopt $(FLAGS) $(LIBS:=.cmxa) $(FILES:=.ml) main.ml -g -o $(OUTPUT) clean: - rm -rf ttf.cmxa ttf.lib ttf.a $(wildcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) \ No newline at end of file + rm -rf ttf.cmxa ttf.lib ttf.a $(wildcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) debian/patches/series0000644000000000000000000000013212173532361012031 0ustar debian-file-locations.diff fix_paths.diff build_system_byte.diff upstream_eval_order.diff debian/patches/build_system_byte.diff0000644000000000000000000002634312173532361015210 0ustar Description: Some Debian archs don't have ocamlopt so bytecompile everything. Author: Barry deFreese Index: haxe-3.0.0~svn6707/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/Makefile 2013-07-18 12:39:57.000000000 -0400 +++ haxe-3.0.0~svn6707/Makefile 2013-07-23 11:09:10.183366913 -0400 @@ -8,23 +8,23 @@ # - use 'make -f Makefile.win' to build for Windows # - use 'make MSVC=1 -f Makefile.win' to build for Windows with OCaml/MSVC # -.SUFFIXES : .ml .mli .cmo .cmi .cmx .mll .mly +.SUFFIXES : .ml .mli .cmo .cmi .cmo .mll .mly INSTALL_DIR=/usr OUTPUT=haxe EXTENSION= -OCAMLOPT=ocamlopt +OCAMLOPT=ocamlc CFLAGS= -g -I libs/extlib -I libs/extc -I libs/neko -I libs/javalib -I libs/ziplib -I libs/swflib -I libs/xml-light -I libs/ttflib CC_CMD = $(OCAMLOPT) $(CFLAGS) -c $< CC_PARSER_CMD = $(OCAMLOPT) -pp camlp4o $(CFLAGS) -c parser.ml -LIBS=unix.cmxa str.cmxa libs/extlib/extLib.cmxa libs/xml-light/xml-light.cmxa libs/swflib/swflib.cmxa \ - libs/extc/extc.cmxa libs/neko/neko.cmxa libs/javalib/java.cmxa libs/ziplib/zip.cmxa libs/ttflib/ttf.cmxa +LIBS=unix.cma str.cma libs/extlib/extLib.cma libs/xml-light/xml-light.cma libs/swflib/swflib.cma \ + -I ${CURDIR}/libs/extc libs/extc/extc.cma -I ${CURDIR}/libs/neko libs/neko/neko.cma libs/javalib/java.cma libs/ziplib/zip.cma libs/ttflib/ttf.cma -NATIVE_LIBS=-cclib libs/extc/extc_stubs.o -cclib -lz +NATIVE_LIBS=-cclib ${CURDIR}/libs/extc/extc_stubs.o -cclib -lz -ccopt -L${CURDIR} RELDIR=../../.. @@ -39,17 +39,17 @@ all: libs haxe libs: - make -C libs/extlib opt - make -C libs/extc native - make -C libs/neko - make -C libs/javalib - make -C libs/ziplib - make -C libs/swflib - make -C libs/xml-light xml-light.cmxa - make -C libs/ttflib + make -C libs/extlib bytecode + make -C libs/extc bytecode + make -C libs/neko bytecode + make -C libs/javalib bytecode + make -C libs/ziplib bytecode + make -C libs/swflib bytecode + make -C libs/xml-light bytecode + make -C libs/ttflib bytecode -haxe: $(MODULES:=.cmx) - $(OCAMLOPT) -o $(OUTPUT) $(NATIVE_LIBS) $(LIBS) $(MODULES:=.cmx) +haxe: $(MODULES:=.cmo) + $(OCAMLOPT) -custom -o $(OUTPUT) $(NATIVE_LIBS) $(LIBS) $(MODULES:=.cmo) haxelib: $(CURDIR)/$(OUTPUT) --cwd "$(CURDIR)/std/tools/haxelib" haxelib.hxml @@ -86,58 +86,58 @@ cp haxe*.exe doc/CHANGES.txt $(EXPORT) rsync -a --exclude .svn --exclude *.n --exclude std/libs --delete std $(EXPORT) -codegen.cmx: optimizer.cmx typeload.cmx typecore.cmx type.cmx genxml.cmx common.cmx ast.cmx +codegen.cmo: optimizer.cmo typeload.cmo typecore.cmo type.cmo genxml.cmo common.cmo ast.cmo -common.cmx: type.cmx ast.cmx +common.cmo: type.cmo ast.cmo -dce.cmx: ast.cmx common.cmx type.cmx +dce.cmo: ast.cmo common.cmo type.cmo -genas3.cmx: type.cmx common.cmx codegen.cmx ast.cmx +genas3.cmo: type.cmo common.cmo codegen.cmo ast.cmo -gencommon.cmx: type.cmx common.cmx codegen.cmx ast.cmx +gencommon.cmo: type.cmo common.cmo codegen.cmo ast.cmo -gencpp.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx +gencpp.cmo: type.cmo lexer.cmo common.cmo codegen.cmo ast.cmo -gencs.cmx: type.cmx lexer.cmx gencommon.cmx common.cmx codegen.cmx ast.cmx +gencs.cmo: type.cmo lexer.cmo gencommon.cmo common.cmo codegen.cmo ast.cmo -genjava.cmx: type.cmx gencommon.cmx common.cmx codegen.cmx ast.cmx +genjava.cmo: type.cmo gencommon.cmo common.cmo codegen.cmo ast.cmo -genjs.cmx: type.cmx optimizer.cmx lexer.cmx common.cmx codegen.cmx ast.cmx +genjs.cmo: type.cmo optimizer.cmo lexer.cmo common.cmo codegen.cmo ast.cmo -genneko.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx +genneko.cmo: type.cmo lexer.cmo common.cmo codegen.cmo ast.cmo -genphp.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx +genphp.cmo: type.cmo lexer.cmo common.cmo codegen.cmo ast.cmo -genswf.cmx: type.cmx genswf9.cmx genswf8.cmx common.cmx ast.cmx +genswf.cmo: type.cmo genswf9.cmo genswf8.cmo common.cmo ast.cmo -genswf8.cmx: type.cmx lexer.cmx common.cmx codegen.cmx ast.cmx +genswf8.cmo: type.cmo lexer.cmo common.cmo codegen.cmo ast.cmo -genswf9.cmx: type.cmx lexer.cmx genswf8.cmx common.cmx codegen.cmx ast.cmx +genswf9.cmo: type.cmo lexer.cmo genswf8.cmo common.cmo codegen.cmo ast.cmo -genxml.cmx: type.cmx lexer.cmx common.cmx ast.cmx +genxml.cmo: type.cmo lexer.cmo common.cmo ast.cmo -interp.cmx: typecore.cmx type.cmx lexer.cmx genneko.cmx common.cmx codegen.cmx ast.cmx genswf.cmx parser.cmx +interp.cmo: typecore.cmo type.cmo lexer.cmo genneko.cmo common.cmo codegen.cmo ast.cmo genswf.cmo parser.cmo -matcher.cmx: optimizer.cmx codegen.cmx typecore.cmx type.cmx typer.cmx common.cmx ast.cmx +matcher.cmo: optimizer.cmo codegen.cmo typecore.cmo type.cmo typer.cmo common.cmo ast.cmo -main.cmx: dce.cmx matcher.cmx typer.cmx typeload.cmx typecore.cmx type.cmx parser.cmx optimizer.cmx lexer.cmx interp.cmx genxml.cmx genswf.cmx genphp.cmx genneko.cmx genjs.cmx gencpp.cmx genas3.cmx common.cmx codegen.cmx ast.cmx gencommon.cmx genjava.cmx gencs.cmx +main.cmo: dce.cmo matcher.cmo typer.cmo typeload.cmo typecore.cmo type.cmo parser.cmo optimizer.cmo lexer.cmo interp.cmo genxml.cmo genswf.cmo genphp.cmo genneko.cmo genjs.cmo gencpp.cmo genas3.cmo common.cmo codegen.cmo ast.cmo gencommon.cmo genjava.cmo gencs.cmo -optimizer.cmx: typecore.cmx type.cmx parser.cmx common.cmx ast.cmx +optimizer.cmo: typecore.cmo type.cmo parser.cmo common.cmo ast.cmo -parser.cmx: parser.ml lexer.cmx common.cmx ast.cmx +parser.cmo: parser.ml lexer.cmo common.cmo ast.cmo $(CC_PARSER_CMD) -type.cmx: ast.cmx +type.cmo: ast.cmo -typecore.cmx: type.cmx common.cmx ast.cmx +typecore.cmo: type.cmo common.cmo ast.cmo -typeload.cmx: typecore.cmx type.cmx parser.cmx optimizer.cmx lexer.cmx common.cmx ast.cmx +typeload.cmo: typecore.cmo type.cmo parser.cmo optimizer.cmo lexer.cmo common.cmo ast.cmo -typer.cmx: typeload.cmx typecore.cmx type.cmx parser.cmx optimizer.cmx lexer.cmx interp.cmx genneko.cmx genjs.cmx common.cmx codegen.cmx ast.cmx +typer.cmo: typeload.cmo typecore.cmo type.cmo parser.cmo optimizer.cmo lexer.cmo interp.cmo genneko.cmo genjs.cmo common.cmo codegen.cmo ast.cmo -lexer.cmx: lexer.ml +lexer.cmo: lexer.ml -lexer.cmx: ast.cmx +lexer.cmo: ast.cmo clean: clean_libs clean_haxe clean_tools @@ -153,13 +153,13 @@ make -C libs/ttflib clean clean_haxe: - rm -f $(MODULES:=.obj) $(MODULES:=.o) $(MODULES:=.cmx) $(MODULES:=.cmi) lexer.ml + rm -f $(MODULES:=.obj) $(MODULES:=.o) $(MODULES:=.cmo) $(MODULES:=.cmi) lexer.ml clean_tools: rm -f $(OUTPUT) haxelib haxedoc # SUFFIXES -.ml.cmx: +.ml.cmo: $(CC_CMD) .mli.cmi: Index: haxe-3.0.0~svn6707/libs/extlib/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/libs/extlib/Makefile 2013-07-18 12:40:00.000000000 -0400 +++ haxe-3.0.0~svn6707/libs/extlib/Makefile 2013-07-23 11:10:52.795875741 -0400 @@ -9,10 +9,16 @@ MLI = $(MODULES:=.mli) SRC = $(MLI) $(MODULES:=.ml) extLib.ml -all: +all: bytecode native + +opt: native + +bytecode: ocamlc -a -o extLib.cma $(SRC) -opt: + +native: ocamlopt -g -a -o extLib.cmxa $(SRC) + doc: ocamlc -c $(MODULES:=.mli) mkdir -p doc/ Index: haxe-3.0.0~svn6707/libs/javalib/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/libs/javalib/Makefile 2013-07-18 12:40:00.000000000 -0400 +++ haxe-3.0.0~svn6707/libs/javalib/Makefile 2013-07-23 11:11:27.576048206 -0400 @@ -1,5 +1,10 @@ -all: +all: bytecode native + +native: ocamlopt -g -I ../extlib -a -o java.cmxa jData.ml jReader.ml + +bytecode: + ocamlc -g -I ../extlib -a -o java.cma jData.ml jReader.ml clean: rm -rf java.cmxa java.lib java.a $(wildcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) Index: haxe-3.0.0~svn6707/libs/neko/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/libs/neko/Makefile 2013-07-18 12:40:00.000000000 -0400 +++ haxe-3.0.0~svn6707/libs/neko/Makefile 2013-07-23 11:12:52.392468788 -0400 @@ -1,5 +1,10 @@ -all: +all: bytecode native + +native: ocamlopt -I ../extlib -a -o neko.cmxa nast.ml nxml.ml binast.ml nbytecode.ml ncompile.ml +bytecode: + ocamlc -I ../extlib -a -o neko.cma nast.ml nxml.ml binast.ml nbytecode.ml ncompile.ml + clean: - rm -rf neko.cmxa neko.lib neko.a $(wilcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) \ No newline at end of file + rm -rf neko.cmxa neko.lib neko.a $(wilcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) Index: haxe-3.0.0~svn6707/libs/swflib/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/libs/swflib/Makefile 2013-07-18 12:39:59.000000000 -0400 +++ haxe-3.0.0~svn6707/libs/swflib/Makefile 2013-07-23 11:13:47.400741560 -0400 @@ -4,29 +4,47 @@ CFLAGS= -I ../extlib -I ../extc -g LIBS= -LFLAGS= -o swflib.cmxa -a MODULES=as3code.cmx png.cmx swf.cmx actionScript.cmx as3parse.cmx swfPic.cmx as3hlparse.cmx swfParser.cmx -all: swflib.cmxa +all: native bytecode + +native: swflib.cmxa + +bytecode: swflib.cma swflib.cmxa: $(MODULES) - ocamlopt $(LFLAGS) $(LIBS) $(MODULES) + ocamlopt -o swflib.cmxa $(LIBS) $(MODULES) + +swflib.cma: $(MODULES:.cmx=.cmo) + ocamlc -o swflib.cma -a $(LFLAGS) $(LIBS) $(MODULES:.cmx=.cmo) actionScript.cmx: swf.cmx +as3code.cmo: as3.cmi + as3code.cmx: as3.cmi as3hl.cmi: as3.cmi +as3hlparse.cmo: as3parse.cmo as3hl.cmi as3code.cmo as3.cmi + as3hlparse.cmx: as3parse.cmx as3hl.cmi as3code.cmx as3.cmi +as3parse.cmo: as3code.cmo as3.cmi + as3parse.cmx: as3code.cmx as3.cmi +png.cmo: png.cmi + png.cmx: png.cmi +swf.cmo: as3.cmi + swf.cmx: as3.cmi +swfParser.cmo: swf.cmo as3parse.cmo actionScript.cmo + swfParser.cmx: swf.cmx as3parse.cmx actionScript.cmx swfPic.cmx: swf.cmx png.cmi @@ -50,4 +68,3 @@ .mly.ml: ocamlyacc $< - Index: haxe-3.0.0~svn6707/libs/xml-light/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/libs/xml-light/Makefile 2013-07-18 12:39:59.000000000 -0400 +++ haxe-3.0.0~svn6707/libs/xml-light/Makefile 2013-07-23 11:15:23.293217065 -0400 @@ -7,9 +7,13 @@ LFLAGS= -a LIBS= -all: xml-light.cma test.exe doc +all: bytecode test.exe doc -opt: xml-light.cmxa test_opt.exe +opt: native + +native: xml-light.cmxa + +bytecode: xml-light.cma installcommon: all cp xml.mli xmlParser.mli dtd.mli xml.cmi xmlParser.cmi dtd.cmi $(INSTALLDIR) Index: haxe-3.0.0~svn6707/libs/ziplib/Makefile =================================================================== --- haxe-3.0.0~svn6707.orig/libs/ziplib/Makefile 2013-07-18 12:40:00.000000000 -0400 +++ haxe-3.0.0~svn6707/libs/ziplib/Makefile 2013-07-23 11:16:19.233494458 -0400 @@ -1,5 +1,10 @@ -all: +all: native bytecode + +native: ocamlopt -g -I ../extlib -I ../extc -a -o zip.cmxa zlib.mli zlib.ml zip.mli zip.ml + +bytecode: + ocamlc -g -I ../extlib -I ../extc -a -o zip.cma zlib.mli zlib.ml zip.mli zip.ml clean: - rm -rf zip.cmxa zip.lib zip.a $(wildcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) \ No newline at end of file + rm -rf zip.cmxa zip.lib zip.a $(wildcard *.cmx) $(wildcard *.obj) $(wildcard *.o) $(wildcard *.cmi) debian/source/0000755000000000000000000000000012173532361010471 5ustar debian/source/format0000644000000000000000000000001412173532361011677 0ustar 3.0 (quilt)