debian/0000755000000000000000000000000012273756712007202 5ustar debian/watch0000644000000000000000000000030012257344241010214 0ustar version=3 http://ocsigen.org/download/js_of_ocaml-(.*)\.tar\.gz # Upstream darcs repository: # http://ocsigen.org/darcs/js_of_ocaml/ # http://ocsigen.org/darcsweb/?r=js_of_ocaml;a=summary debian/clean0000644000000000000000000000043112257350720010174 0ustar lib/deriving_json.cmxa lib/deriving_json.cmxs lib/deriving_json/deriving_Json.cmx lib/deriving_json/deriving_Json_lexer.cmx lib/syntax/pa_deriving_Json.cmx lib/syntax/pa_deriving_Json.cmxs lib/syntax/pa_deriving_Json.o lib/syntax/pa_js.cmx lib/syntax/pa_js.cmxs lib/syntax/pa_js.o debian/js-of-ocaml.manpages0000644000000000000000000000002512257344241013013 0ustar debian/js_of_ocaml.1 debian/rules0000755000000000000000000000212112257344241010246 0ustar #!/usr/bin/make -f # -*- makefile -*- DESTDIR=$(CURDIR)/debian/tmp BINDIR=$(DESTDIR)/usr/bin DOCDIR=$(DESTDIR)/usr/share/doc/libjs-of-ocaml-dev include /usr/share/ocaml/ocamlvars.mk export OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR) export OCAMLFIND_LDCONF=ignore %: dh $@ --with ocaml .PHONY: override_dh_install override_dh_install: dh_install -X.so.owner --fail-missing .PHONY: override_dh_compress override_dh_compress: dh_compress -X.js .PHONY: override_dh_auto_build override_dh_auto_build: $(MAKE) BEST=$(OCAML_BEST) .PHONY: override_dh_auto_install override_dh_auto_install: mkdir -p $(OCAMLFIND_DESTDIR) $(BINDIR) $(DESTDIR)$(OCAML_DLL_DIR) $(MAKE) install BINDIR=$(BINDIR) BEST=$(OCAML_BEST) mkdir -p $(DOCDIR)/html $(DOCDIR)/examples cp -a doc/api-html $(DOCDIR)/html/api cp -a examples/* $(DOCDIR)/examples rm -f $(DOCDIR)/examples/*/*.cm* $(DOCDIR)/examples/*/*.byte ifeq ($(OCAML_NATDYNLINK),no) find $(DESTDIR) -name '*.cmxs' -delete endif .PHONY: override_dh_auto_clean override_dh_auto_clean: dh_auto_clean -cd $(CURDIR)/doc && make clean rm -Rf doc/api-html/ debian/js-of-ocaml.install0000644000000000000000000000000712257344241012666 0ustar usr/bindebian/libjs-of-ocaml-doc.links0000644000000000000000000000025612257344241013600 0ustar /usr/share/doc/libjs-of-ocaml-dev/html /usr/share/doc/libjs-of-ocaml-doc/html /usr/share/doc/libjs-of-ocaml-dev/examples /usr/share/doc/libjs-of-ocaml-doc/examples debian/libjs-of-ocaml-doc.ocamldoc0000644000000000000000000000002412257344241014232 0ustar --doc-base-generate debian/libjs-of-ocaml-doc.install0000644000000000000000000000004212257344241014117 0ustar /usr/share/doc/libjs-of-ocaml-dev debian/libjs-of-ocaml-dev.install.in0000644000000000000000000000071612257356431014551 0ustar @OCamlStdlibDir@/js_of_ocaml/*.js @OCamlStdlibDir@/js_of_ocaml/*.a @OCamlStdlibDir@/js_of_ocaml/*.cmi @OCamlStdlibDir@/js_of_ocaml/*.mli @OCamlStdlibDir@/js_of_ocaml/js_of_ocaml.cma @OCamlStdlibDir@/js_of_ocaml/pa_*.cmo OPT: @OCamlStdlibDir@/js_of_ocaml/*.cmx OPT: @OCamlStdlibDir@/js_of_ocaml/*.cmxa OPT: lib/syntax/pa_js.o @OCamlStdlibDir@/js_of_ocaml OPT: lib/syntax/pa_deriving_Json.o @OCamlStdlibDir@/js_of_ocaml DYN: @OCamlStdlibDir@/js_of_ocaml/pa_*.cmxs debian/copyright0000644000000000000000000000753112257344241011133 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Packaged-By: Stéphane Glondu Packaged-Date: Sun, 23 Jan 2011 09:40:34 +0100 Source: http://ocsigen.org/install/js_of_ocaml Upstream-Name: Js_of_ocaml Upstream-Contact: The Ocsigen Team Files: * Copyright: 2010, Jérôme Vouillon and contributors 2010, PPS, CNRS, Université Paris Diderot License: LGPL-2.1+ Files: lib/* Copyright: 2010, Jérôme Vouillon, PPS, CNRS, Université Paris Diderot License: LGPL-2-exception Files: runtime/* Copyright: 2010, Jérôme Vouillon and contributors 2010, PPS, CNRS, Université Paris Diderot 1996, INRIA License: LGPL-2-exception Files: tools/* Copyright: 2001, INRIA License: QPL-exception The software is distributed under the terms of the Q Public License version 1.0 with a change to choice of law. The full text can be found in `/usr/share/doc/ocaml-base-nox/copyright', in ocaml-base-nox package (a dependency of this one). . As a special exception to the Q Public Licence, you may develop application programs, reusable components and other software items that link with the original or modified versions of the software and are not made available to the general public, without any of the additional requirements listed in clause 6c of the Q Public licence. Files: examples/boulderdash/* examples/minesweeper/* Copyright: 2007-2009, Benjamin Canou License: WTFPL These examples were taken from obrowser and adapted to Js_of_ocaml. You are free to use them under the terms of the Do What The Fuck You Want Public License. . DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE Version 2, December 2004 . Copyright (C) 2004 Sam Hocevar 14 rue de Plaisance, 75014 Paris, France Everyone is permitted to copy and distribute verbatim or modified copies of this license document, and changing it is allowed as long as the name is changed. . DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION . 0. You just DO WHAT THE FUCK YOU WANT TO. Files: debian/* Copyright: 2011, Stéphane Glondu License: LGPL-2.1+ License: LGPL-2.1+ This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, with linking exception; either version 2.1 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 Lesser General Public License for more details. On Debian systems, the full text can be found in `/usr/share/common-licenses/LGPL-2.1'. License: LGPL-2-exception This Library is distributed under the terms of the GNU Library General Public License version 2. On Debian systems, the full text can be found in `/usr/share/common-licenses/LGPL-2'. . As a special exception to the GNU Library General Public License, you may link, statically or dynamically, a "work that uses the Library" with a publicly distributed version of the Library to produce an executable file containing portions of the Library, and distribute that executable file under terms of your choice, without any of the additional requirements listed in clause 6 of the GNU Library General Public License. By "a publicly distributed version of the Library", we mean either the unmodified Library as distributed by INRIA, or a modified version of the Library that is distributed under the conditions defined in clause 2 of the GNU Library General Public License. This exception does not however invalidate any other reasons why the executable file might be covered by the GNU Library General Public License. debian/libjs-of-ocaml-doc.doc-base.examples0000644000000000000000000000041212257344241015744 0ustar Document: libjs-of-ocaml-doc-ocamldoc-examples Title: Examples of Js_of_ocaml Abstract: Examples of Js_of_ocaml Section: Programming/OCaml Format: HTML Index: /usr/share/doc/libjs-of-ocaml-doc/examples/index.html Files: /usr/share/doc/libjs-of-ocaml-doc/examples/* debian/libjs-of-ocaml.install.in0000644000000000000000000000023112257356431013765 0ustar @OCamlDllDir@/*.so @OCamlStdlibDir@/js_of_ocaml/META @OCamlStdlibDir@/js_of_ocaml/deriving_json.cma DYN: @OCamlStdlibDir@/js_of_ocaml/deriving_json.cmxs debian/source/0000755000000000000000000000000012257344241010472 5ustar debian/source/format0000644000000000000000000000001412257344241011700 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000212257344241010370 0ustar 8 debian/control0000644000000000000000000000743312257357006010607 0ustar Source: js-of-ocaml Section: ocaml Priority: optional Maintainer: Debian OCaml Maintainers Uploaders: Stéphane Glondu , Nicolas Dandrimont Build-Depends: debhelper (>= 8), dh-ocaml (>= 0.9~), ocaml-findlib (>= 1.4), liblwt-ocaml-dev (>= 2.4), libderiving-ocsigen-ocaml-dev (>= 0.3), camlp4, ocaml-nox (>= 4.01) Standards-Version: 3.9.5 Homepage: http://ocsigen.org/js_of_ocaml Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ocaml-maint/packages/js-of-ocaml.git Vcs-Git: git://anonscm.debian.org/pkg-ocaml-maint/packages/js-of-ocaml.git Package: js-of-ocaml Architecture: any Depends: libjs-of-ocaml-dev, ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Provides: ${ocaml:Provides} Recommends: ocaml-findlib Description: OCaml bytecode to JavaScript compiler (compiler) Js_of_ocaml is a compiler of OCaml bytecode to JavaScript. It makes it possible to run OCaml programs in a web browser. Its key features are the following: * the whole language, and most of the standard library are supported; * the generated code can be used with any web server and browser; * you can use a standard installation of OCaml to compile your programs. In particular, you do not have to recompile a library to use it with Js_of_ocaml. You just have to link your program with a specific library to interface with the browser APIs. . This package contains the compiler itself. Package: libjs-of-ocaml-dev Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Breaks: libjs-of-ocaml (<< 1.4) Replaces: libjs-of-ocaml (<< 1.4) Provides: ${ocaml:Provides} Recommends: ocaml-findlib Description: OCaml bytecode to JavaScript compiler (development files) Js_of_ocaml is a compiler of OCaml bytecode to JavaScript. It makes it possible to run OCaml programs in a web browser. Its key features are the following: * the whole language, and most of the standard library are supported; * the generated code can be used with any web server and browser; * you can use a standard installation of OCaml to compile your programs. In particular, you do not have to recompile a library to use it with Js_of_ocaml. You just have to link your program with a specific library to interface with the browser APIs. . This package contains development files needed to compile server-side (using regular OCaml compiler) and client-side (using Js_of_ocaml) programs. Package: libjs-of-ocaml Architecture: any Depends: ${ocaml:Depends}, ${shlibs:Depends}, ${misc:Depends} Breaks: libjs-of-ocaml-dev (<< 1.4) Replaces: libjs-of-ocaml-dev (<< 1.4) Provides: ${ocaml:Provides} Recommends: ocaml-findlib Description: OCaml bytecode to JavaScript compiler (runtime) Js_of_ocaml is a compiler of OCaml bytecode to JavaScript. It makes it possible to run OCaml programs in a web browser. Its key features are the following: * the whole language, and most of the standard library are supported; * the generated code can be used with any web server and browser; * you can use a standard installation of OCaml to compile your programs. In particular, you do not have to recompile a library to use it with Js_of_ocaml. You just have to link your program with a specific library to interface with the browser APIs. . This package contains runtime libraries that may be needed by server-side programs communicating with clients compiled with Js_of_ocaml using JSON. Package: libjs-of-ocaml-doc Section: doc Architecture: all Depends: ${misc:Depends} Description: OCaml bytecode to JavaScript compiler (documentation) Js_of_ocaml is a compiler of OCaml bytecode to JavaScript. It makes it possible to run OCaml programs in a web browser. . This package contains the API reference and examples. debian/gbp.conf0000644000000000000000000000003612257344241010610 0ustar [DEFAULT] pristine-tar = True debian/changelog0000644000000000000000000000765712273756712011073 0ustar js-of-ocaml (1.4-1build1) trusty; urgency=medium * Rebuild for new OCaml ABIs. -- Colin Watson Mon, 03 Feb 2014 18:19:54 +0000 js-of-ocaml (1.4-1) unstable; urgency=medium * New upstream release * Update Vcs-* * Bump Standards-Version to 3.9.5 (no changes) -- Stéphane Glondu Fri, 27 Dec 2013 20:20:21 +0100 js-of-ocaml (1.3.2-4) unstable; urgency=low * Upload to unstable -- Stéphane Glondu Sat, 07 Dec 2013 10:42:24 +0100 js-of-ocaml (1.3.2-3) experimental; urgency=low * Compile with OCaml >= 4.01 -- Stéphane Glondu Mon, 11 Nov 2013 08:00:20 +0100 js-of-ocaml (1.3.2-2) unstable; urgency=low [ Nicolas Dandrimont ] * Add a manpage for js_of_ocaml [ Stéphane Glondu ] * Use format version 1.0 in debian/copyright * Bump Standards-Version to 3.9.4 * Upload to unstable -- Stéphane Glondu Fri, 10 May 2013 11:14:25 +0200 js-of-ocaml (1.3.2-1) experimental; urgency=low * New upstream release -- Stéphane Glondu Fri, 07 Dec 2012 20:52:08 +0100 js-of-ocaml (1.3.1-1) experimental; urgency=low * New upstream release - bump build-dependency to lwt -- Stéphane Glondu Fri, 07 Dec 2012 17:50:36 +0100 js-of-ocaml (1.2-2) unstable; urgency=low * Update upstream changelog and version (Closes: #691257) -- Stéphane Glondu Wed, 14 Nov 2012 12:18:20 +0100 js-of-ocaml (1.2-1) unstable; urgency=low * New upstream release -- Stéphane Glondu Fri, 08 Jun 2012 07:23:02 +0200 js-of-ocaml (1.1.1-1) unstable; urgency=low * New upstream release -- Stéphane Glondu Sat, 17 Mar 2012 11:39:42 +0100 js-of-ocaml (1.1-1) unstable; urgency=low * New upstream release - remove patch (merged upstream) -- Stéphane Glondu Sun, 04 Mar 2012 20:30:02 +0100 js-of-ocaml (1.0.9b-1) unstable; urgency=low * New upstream release * Update debian/watch -- Stéphane Glondu Sun, 01 Jan 2012 15:01:11 +0100 js-of-ocaml (1.0.9-1) unstable; urgency=low * New upstream release * Fix FTBFS on bytecode architectures * Do not install plugins on architectures without natdynlink -- Stéphane Glondu Sat, 03 Dec 2011 13:43:57 +0100 js-of-ocaml (1.0.8-1) unstable; urgency=low * New upstream release * Add libderiving-ocsigen-ocaml-dev to Build-Depends * Add new binary packages: js-of-ocaml, libjs-of-ocaml -- Stéphane Glondu Tue, 29 Nov 2011 07:46:26 +0100 js-of-ocaml (1.0.7-1) unstable; urgency=low * New upstream release -- Stéphane Glondu Tue, 22 Nov 2011 07:12:18 +0100 js-of-ocaml (1.0.6-1) unstable; urgency=low * New upstream release -- Stéphane Glondu Thu, 29 Sep 2011 08:43:35 +0200 js-of-ocaml (1.0.5-1) unstable; urgency=low * New upstream release -- Stéphane Glondu Thu, 22 Sep 2011 11:53:08 +0200 js-of-ocaml (1.0.3-1) unstable; urgency=low * New upstream release - do no longer remove examples, update debian/copyright accordingly -- Stéphane Glondu Sat, 30 Jul 2011 18:31:12 +0200 js-of-ocaml (1.0.2+dfsg-1) unstable; urgency=low * New upstream release - Bump required Lwt version to 2.3.0 - Update license to LGPLv2 - Drop patches (fixed upstream) * Bump Standards-Version to 3.9.2 (no changes) -- Nicolas Dandrimont Fri, 20 May 2011 00:33:08 +0200 js-of-ocaml (1.0+dfsg-2) unstable; urgency=low * Team upload. * Do not compile native js_of_ocaml on bytecode architectures, use bytecode version instead. -- Mehdi Dogguy Sat, 23 Apr 2011 13:39:26 +0200 js-of-ocaml (1.0+dfsg-1) unstable; urgency=low * Initial release (Closes: #610392) -- Stéphane Glondu Sun, 23 Jan 2011 12:40:04 +0100 debian/js_of_ocaml.10000644000000000000000000000537712257344241011543 0ustar .TH JS_OF_OCAML 1 .SH NAME js_of_ocaml \- OCaml bytecode to Javascript compiler .SH DESCRIPTION .BR js_of_ocaml (1) is a compiler from OCaml bytecode programs to Javascript. It makes it possible to write OCaml programs that run on web browsers. It comes with bindings for a large part of the browser APIs, and the generated programs have been measured to typically run faster the OCaml bytecode interpreter. .SH USAGE Your program must be first compiled using the OCaml bytecode compiler .BR ocamlc (1). Javascript bindings, as well as a corresponding syntax extension, are provided by the .B js_of_ocaml package. .PP ocamlfind ocamlc \-package js_of_ocaml \-package js_of_ocaml.syntax \\ \-syntax camlp4o \-linkpkg \-o input_file.byte input_file.ml .PP Then, run the .BR js_of_ocaml (1) compiler to produce Javascript code. .B js_of_ocaml [ .I options ] .I input_file.byte .SH OPTIONS The following command-line options are recognized by .BR js_of_ocaml (1). .TP .BI \-debug \ name debug module .I name .TP .BI \-disable \ name disable optimization .I name .TP .B \-pretty pretty print the output .TP .B \-debuginfo output debug info .TP .B \-noinline disable inlining .TP .B \-noruntime do not include the standard runtime .TP .B \-toplevel compile a toplevel .TP .BI \-I \ dir Add .I dir to the list of include directories .TP .BI \-o \ file set output file name to .I file .TP .B \-help Display the list of options .TP .B \-\-help Display the list of options .SH FEATURES, LIMITATIONS The whole OCaml standard library should be supported, except for input/output channels, weak references, and most functions of the Sys module. Extra libraries such as Bigarray, Unix, Thread or Str are not supported. Tail call is not optimized in general. However, self-recursive functions (when the tail calls are to the function itself) are compiled into a loop. Recursive modules are not supported at the moment. Data representation differs from the usual one, for performance reasons. Most notably, integers are 32 bit (instead of 31 or 63 bits) and floats are not boxed. As a consequence, marshalling, polymorphic comparison, and hashing functions can yield results different than usual: .IP \[bu] 2 marshalling of floats is not supported (unmarshalling works); .IP \[bu] the polymorphic hash function will not give the same results on data structures containing floats; .IP \[bu] these functions may be more prone to stack overflow, as the Javascript stack is small. .SH SEE ALSO .BR ocamlc (1), \ ocamlfind (1). .br .I http://ocsigen.org/js_of_ocaml/ The js_of_ocaml website .SH AUTHORS .TP .BR "The Ocsigen Team" " <\&dev@ocsigen\&.org\&>" .RB "Wrote the " js_of_ocaml " software\&." .TP .BR "Nicolas Dandrimont" " <\&nicolas\&.dandrimont@crans\&.org\&>" Wrote this manpage for the Debian system\&.