diff --git a/packages/batteries-windows/batteries-windows.2.8.0/descr b/packages/batteries-windows/batteries-windows.2.8.0/descr new file mode 100644 index 00000000..f1a9d0e7 --- /dev/null +++ b/packages/batteries-windows/batteries-windows.2.8.0/descr @@ -0,0 +1 @@ +a community-maintained standard library extension \ No newline at end of file diff --git a/packages/batteries-windows/batteries-windows.2.8.0/files/batteries-2.8.0-windows.patch b/packages/batteries-windows/batteries-windows.2.8.0/files/batteries-2.8.0-windows.patch new file mode 100644 index 00000000..5911f91e --- /dev/null +++ b/packages/batteries-windows/batteries-windows.2.8.0/files/batteries-2.8.0-windows.patch @@ -0,0 +1,42 @@ +Only in batteries-2.8.0-mine: _build +diff -crB batteries-2.8.0/Makefile batteries-2.8.0-mine/Makefile +*** batteries-2.8.0/Makefile 2018-01-27 20:24:55.902964300 +0000 +--- batteries-2.8.0-mine/Makefile 2018-01-27 20:25:35.072742500 +0000 +*************** +*** 107,123 **** + + man: all batteries.odocl + -mkdir man +! ocamlfind ocamldoc -package threads.posix -sort -man -hide-warnings -d man -I _build/libs -I _build/src libs/uniclib.mli src/*.mli + + install: all uninstall_packages +! ocamlfind install $(NAME) $(INSTALL_FILES) \ + -optional $(OPT_INSTALL_FILES) + + test_install: + ./scripts/test_install.sh + + uninstall_packages: +! ocamlfind remove $(NAME) + + uninstall: uninstall_packages + ${RM} -r $(DOCROOT) +--- 107,123 ---- + + man: all batteries.odocl + -mkdir man +! ocamlfind -toolchain windows ocamldoc -package threads.posix -sort -man -hide-warnings -d man -I _build/libs -I _build/src libs/uniclib.mli src/*.mli + + install: all uninstall_packages +! ocamlfind -toolchain windows install $(NAME) $(INSTALL_FILES) \ + -optional $(OPT_INSTALL_FILES) + + test_install: + ./scripts/test_install.sh + + uninstall_packages: +! ocamlfind -toolchain windows remove $(NAME) + + uninstall: uninstall_packages + ${RM} -r $(DOCROOT) +Only in batteries-2.8.0-mine: setup.data diff --git a/packages/batteries-windows/batteries-windows.2.8.0/opam b/packages/batteries-windows/batteries-windows.2.8.0/opam new file mode 100644 index 00000000..45f09d6f --- /dev/null +++ b/packages/batteries-windows/batteries-windows.2.8.0/opam @@ -0,0 +1,34 @@ +opam-version: "1.2" +name: "batteries-windows" +version: "2.8.0" +maintainer: "thelema314@gmail.com" +authors: "OCaml batteries-included team" +homepage: "http://batteries.forge.ocamlcore.org/" +bug-reports:"https://github.com/ocaml-batteries-team/batteries-included/issues" +dev-repo: "https://github.com/ocaml-batteries-team/batteries-included.git" +license: "LGPL-2.1+ with OCaml linking exception" +doc: "http://ocaml-batteries-team.github.io/batteries-included/hdoc2/" +build: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" + "ocaml" "setup.ml" "-configure" + "--prefix" "%{prefix}%/windows-sysroot" + "--override" "ext_dll" ".dll"] +] +install: [ + "env" "OCAMLBUILDFLAGS=-no-links -use-ocamlfind -ocamlopt '-toolchain windows ocamlopt' -ocamldep '-toolchain windows ocamldep'" + "env" "BATTERIES_NATIVE_SHLIB=no" + make "all" "install" "-j" jobs +] +remove: ["ocamlfind" "-toolchain" "windows" "remove" "batteries"] +depends: [ + "ocamlfind" {>= "1.5.3"} + "ocamlfind-windows" {>= "1.5.3"} + "ocamlbuild" {build} + "qtest" {test & >= "2.5"} + "qcheck" {test & >= "0.6"} + "bisect" {test} + "num" + "ocaml-windows" +] +available: [ocaml-version >= "3.12.1" & ocaml-version < "4.07.0"] +patches: ["batteries-2.8.0-windows.patch"] diff --git a/packages/batteries-windows/batteries-windows.2.8.0/url b/packages/batteries-windows/batteries-windows.2.8.0/url new file mode 100644 index 00000000..81d3eaa2 --- /dev/null +++ b/packages/batteries-windows/batteries-windows.2.8.0/url @@ -0,0 +1,3 @@ +http: + "https://github.com/ocaml-batteries-team/batteries-included/releases/download/v2.8.0/batteries-2.8.0.tar.gz" +checksum: "2d9a811dcb47bae9f1159676d880a46b" diff --git a/packages/camlp4-windows/camlp4-windows.4.04+1/descr b/packages/camlp4-windows/camlp4-windows.4.04+1/descr new file mode 100644 index 00000000..50a70f65 --- /dev/null +++ b/packages/camlp4-windows/camlp4-windows.4.04+1/descr @@ -0,0 +1,10 @@ +Camlp4 is a system for writing extensible parsers for programming languages + +It provides a set of OCaml libraries that are used to define grammars as well +as loadable syntax extensions of such grammars. Camlp4 stands for Caml +Preprocessor and Pretty-Printer and one of its most important applications is +the definition of domain-specific extensions of the syntax of OCaml. + +Camlp4 was part of the official OCaml distribution until its version 4.01.0. +Since then it has been replaced by a simpler system which is easier to maintain +and to learn: ppx rewriters and extension points. diff --git a/packages/camlp4-windows/camlp4-windows.4.04+1/opam b/packages/camlp4-windows/camlp4-windows.4.04+1/opam new file mode 100644 index 00000000..665ae136 --- /dev/null +++ b/packages/camlp4-windows/camlp4-windows.4.04+1/opam @@ -0,0 +1,26 @@ +opam-version: "1.2" +maintainer: "jeremie@dimino.org" +name: "camlp4-windows" +version: "4.04+1" +homepage: "https://github.com/ocaml/camlp4" +bug-reports: "https://github.com/ocaml/camlp4/issues" +dev-repo: "https://github.com/ocaml/camlp4.git" +license: "LGPLv2" +build: [ + ["./configure" "--bindir=%{prefix}%/windows-sysroot/bin" "--libdir=%{prefix}%/windows-sysroot/lib/ocaml" "--pkgdir=%{prefix}%/windows-sysroot/lib"] + ["env" "OCAMLFIND_TOOLCHAIN=windows" make "all"] +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install" "install-META"] +depends: ["ocaml-windows" "ocamlfind" {build}] +remove: [ + ["rm" "-rf" "%{prefix}%/windows-sysroot/lib/camlp4"] + ["rm" "-f" "%{prefix}%/windows-sysroot/bin/camlp4" "%{prefix}%/windows-sysroot/bin/camlp4boot" "%{prefix}%/windows-sysroot/bin/mkcamlp4" + "%{prefix}%/windows-sysroot/bin/camlp4r" "%{prefix}%/windows-sysroot/bin/camlp4rf" "%{prefix}%/windows-sysroot/bin/camlp4orf" + "%{prefix}%/windows-sysroot/bin/camlp4o" "%{prefix}%/windows-sysroot/bin/camlp4of" "%{prefix}%/windows-sysroot/bin/camlp4oof" + "%{prefix}%/windows-sysroot/bin/camlp4prof" "%{prefix}%/windows-sysroot/bin/camlp4rf.opt" "%{prefix}%/windows-sysroot/bin/camlp4orf.opt" + "%{prefix}%/windows-sysroot/bin/camlp4o.opt" "%{prefix}%/windows-sysroot/bin/camlp4oof.opt" "%{prefix}%/windows-sysroot/bin/camlp4r.opt" + ] +] +depexts: [ + [ ["centos"] ["which"] ] +] diff --git a/packages/camlp4-windows/camlp4-windows.4.04+1/url b/packages/camlp4-windows/camlp4-windows.4.04+1/url new file mode 100644 index 00000000..605d3843 --- /dev/null +++ b/packages/camlp4-windows/camlp4-windows.4.04+1/url @@ -0,0 +1,2 @@ +archive: "https://github.com/ocaml/camlp4/archive/4.04+1.tar.gz" +checksum: "305f61ffd98c4c03eb0d9b7749897e59" diff --git a/packages/cppo-windows/cppo-windows.1.6.0/descr b/packages/cppo-windows/cppo-windows.1.6.0/descr new file mode 100644 index 00000000..b9cb7ba9 --- /dev/null +++ b/packages/cppo-windows/cppo-windows.1.6.0/descr @@ -0,0 +1 @@ +Equivalent of the C preprocessor for OCaml programs diff --git a/packages/cppo-windows/cppo-windows.1.6.0/opam b/packages/cppo-windows/cppo-windows.1.6.0/opam new file mode 100644 index 00000000..a4f67b24 --- /dev/null +++ b/packages/cppo-windows/cppo-windows.1.6.0/opam @@ -0,0 +1,19 @@ +opam-version: "1.2" +maintainer: "martin@mjambon.com" +authors: ["Martin Jambon"] +name: "cppo-windows" +version: "1.6.0" +homepage: "http://mjambon.com/cppo.html" +dev-repo: "https://github.com/mjambon/cppo.git" +bug-reports: "https://github.com/mjambon/cppo/issues" +license: "BSD-3-Clause" +build: [ + ["jbuilder-windows" "subst"] {pinned} + ["jbuilder-windows" "build" "-p" "cppo" "-x" "windows" "-j" jobs "--install-prefix" "windows-sysroot"] +] +depends: [ + "ocaml-windows" + "jbuilder-windows" {build & >= "1.0+beta10"} + "base-bytes" + "base-unix" +] diff --git a/packages/cppo-windows/cppo-windows.1.6.0/url b/packages/cppo-windows/cppo-windows.1.6.0/url new file mode 100644 index 00000000..a6a686f0 --- /dev/null +++ b/packages/cppo-windows/cppo-windows.1.6.0/url @@ -0,0 +1,2 @@ +archive: "https://github.com/mjambon/cppo/archive/v1.6.0.tar.gz" +checksum: "aee411b3546bc5d198c71ae9185cade4" diff --git a/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/descr b/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/descr new file mode 100644 index 00000000..460ffd39 --- /dev/null +++ b/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/descr @@ -0,0 +1 @@ +ocamlbuild support for cppo, OCaml-friendly source preprocessor diff --git a/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/opam b/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/opam new file mode 100644 index 00000000..33c4a291 --- /dev/null +++ b/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/opam @@ -0,0 +1,23 @@ +opam-version: "1.2" +maintainer: "martin@mjambon.com" +authors: ["Martin Jambon"] +name: "cppo_ocamlbuild-windows" +version: "1.6.0" +homepage: "http://mjambon.com/cppo.html" +bug-reports: "https://github.com/mjambon/cppo/issues" +license: "BSD-3-Clause" +build: [ + ["jbuilder-windows" "subst"] {pinned} + ["jbuilder-windows" "build" "-p" "cppo_ocamlbuild" "-x" "windows" "-j" jobs "--install-prefix" "windows-sysroot"] +] +depends: [ + "ocaml-windows" + "jbuilder-windows" {build & >= "1.0+beta10"} + "ocamlbuild-windows" + + # Earlier versions of cppo (opam package) used to install + # cppo_ocamlbuild (ocamlfind package). + # Requiring cppo >= 1.6 ensures we don't install it twice. + "cppo-windows" {>= "1.6.0"} +] + diff --git a/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/url b/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/url new file mode 100644 index 00000000..a6a686f0 --- /dev/null +++ b/packages/cppo_ocamlbuild-windows/cppo_ocamlbuild-windows.1.6.0/url @@ -0,0 +1,2 @@ +archive: "https://github.com/mjambon/cppo/archive/v1.6.0.tar.gz" +checksum: "aee411b3546bc5d198c71ae9185cade4" diff --git a/packages/ctypes-windows.0.11.0/descr b/packages/ctypes-windows/ctypes-windows.0.11.0/descr similarity index 100% rename from packages/ctypes-windows.0.11.0/descr rename to packages/ctypes-windows/ctypes-windows.0.11.0/descr diff --git a/packages/ctypes-windows.0.11.0/files/asneeded.config b/packages/ctypes-windows/ctypes-windows.0.11.0/files/asneeded.config similarity index 100% rename from packages/ctypes-windows.0.11.0/files/asneeded.config rename to packages/ctypes-windows/ctypes-windows.0.11.0/files/asneeded.config diff --git a/packages/ctypes-windows.0.11.0/files/libffi.config b/packages/ctypes-windows/ctypes-windows.0.11.0/files/libffi.config similarity index 100% rename from packages/ctypes-windows.0.11.0/files/libffi.config rename to packages/ctypes-windows/ctypes-windows.0.11.0/files/libffi.config diff --git a/packages/ctypes-windows.0.11.0/findlib b/packages/ctypes-windows/ctypes-windows.0.11.0/findlib similarity index 100% rename from packages/ctypes-windows.0.11.0/findlib rename to packages/ctypes-windows/ctypes-windows.0.11.0/findlib diff --git a/packages/ctypes-windows.0.11.0/opam b/packages/ctypes-windows/ctypes-windows.0.11.0/opam similarity index 56% rename from packages/ctypes-windows.0.11.0/opam rename to packages/ctypes-windows/ctypes-windows.0.11.0/opam index fe095171..16ae3e42 100644 --- a/packages/ctypes-windows.0.11.0/opam +++ b/packages/ctypes-windows/ctypes-windows.0.11.0/opam @@ -1,10 +1,13 @@ opam-version: "1.2" maintainer: "whitequark@whitequark.org" build: [ - ["sh" "-c" "echo \"libffi_opt=$(%{conf-gcc-windows:prefix}%pkg-config --cflags libffi)\" >>libffi.config"] - ["sh" "-c" "echo \"libffi_lib=$(%{conf-gcc-windows:prefix}%pkg-config --libs libffi)\" >>libffi.config"] + ["sh" "-c" "echo \"libffi_opt=$(%{conf-gcc-windows:prefix}%pkg-config --cflags libffi)\" >>libffi.config"] {ctypes-foreign-windows:installed} + ["sh" "-c" "echo \"libffi_lib=$(%{conf-gcc-windows:prefix}%pkg-config --libs libffi)\" >>libffi.config"] {ctypes-foreign-windows:installed} + ["touch" "libffi.config"] {!ctypes-foreign-windows:installed} [make "OCAMLFIND=ocamlfind -toolchain windows" "HOSTOCAMLFIND=ocamlfind" - "ctypes-base" "ctypes-stubs" "ctypes-foreign"] + "ctypes-base" "ctypes-stubs" ] + [make "OCAMLFIND=ocamlfind -toolchain windows" "HOSTOCAMLFIND=ocamlfind" + "ctypes-foreign" ] {ctypes-foreign-windows:installed} ] install: [ [make "OCAMLFIND=ocamlfind -toolchain windows" "install"] diff --git a/packages/ctypes-windows.0.11.0/url b/packages/ctypes-windows/ctypes-windows.0.11.0/url similarity index 100% rename from packages/ctypes-windows.0.11.0/url rename to packages/ctypes-windows/ctypes-windows.0.11.0/url diff --git a/packages/ctypes-windows/ctypes-windows.0.13.1/descr b/packages/ctypes-windows/ctypes-windows.0.13.1/descr new file mode 100644 index 00000000..78333e29 --- /dev/null +++ b/packages/ctypes-windows/ctypes-windows.0.13.1/descr @@ -0,0 +1,18 @@ +Combinators for binding to C libraries without writing any C. + +ctypes is a library for binding to C libraries using pure OCaml. The primary +aim is to make writing C extensions as straightforward as possible. + +The core of ctypes is a set of combinators for describing the structure of C +types -- numeric types, arrays, pointers, structs, unions and functions. You +can use these combinators to describe the types of the functions that you want +to call, then bind directly to those functions -- all without writing or +generating any C! + +To install the optional `ctypes.foreign` interface (which uses `libffi` to +provide dynamic access to foreign libraries), you will need to also install +the `ctypes-foreign` optional dependency: + + opam install ctypes ctypes-foreign + +This will make the `ctypes.foreign` ocamlfind subpackage available. diff --git a/packages/ctypes-windows/ctypes-windows.0.13.1/files/asneeded.config b/packages/ctypes-windows/ctypes-windows.0.13.1/files/asneeded.config new file mode 100644 index 00000000..98b51bb1 --- /dev/null +++ b/packages/ctypes-windows/ctypes-windows.0.13.1/files/asneeded.config @@ -0,0 +1 @@ +as_needed_flags= diff --git a/packages/ctypes-windows/ctypes-windows.0.13.1/files/libffi.config b/packages/ctypes-windows/ctypes-windows.0.13.1/files/libffi.config new file mode 100644 index 00000000..a6b2cb0e --- /dev/null +++ b/packages/ctypes-windows/ctypes-windows.0.13.1/files/libffi.config @@ -0,0 +1 @@ +libffi_available=true diff --git a/packages/ctypes-windows/ctypes-windows.0.13.1/findlib b/packages/ctypes-windows/ctypes-windows.0.13.1/findlib new file mode 100644 index 00000000..16c34dd3 --- /dev/null +++ b/packages/ctypes-windows/ctypes-windows.0.13.1/findlib @@ -0,0 +1 @@ +ctypes diff --git a/packages/ctypes-windows/ctypes-windows.0.13.1/opam b/packages/ctypes-windows/ctypes-windows.0.13.1/opam new file mode 100644 index 00000000..4fbe4dcc --- /dev/null +++ b/packages/ctypes-windows/ctypes-windows.0.13.1/opam @@ -0,0 +1,26 @@ +opam-version: "1.2" +maintainer: "whitequark@whitequark.org" +build: [ + ["sh" "-c" "echo \"libffi_opt=$(%{conf-gcc-windows:prefix}%pkg-config --cflags libffi)\" >>libffi.config"] {ctypes-foreign-windows:installed} + ["sh" "-c" "echo \"libffi_lib=$(%{conf-gcc-windows:prefix}%pkg-config --libs libffi)\" >>libffi.config"] {ctypes-foreign-windows:installed} + ["touch" "libffi.config"] {!ctypes-foreign-windows:installed} + [make "OCAMLFIND=ocamlfind -toolchain windows" "HOSTOCAMLFIND=ocamlfind" + "ctypes-base" "ctypes-stubs" ] + [make "OCAMLFIND=ocamlfind -toolchain windows" "HOSTOCAMLFIND=ocamlfind" + "ctypes-foreign" ] {ctypes-foreign-windows:installed} +] +install: [ + [make "OCAMLFIND=ocamlfind -toolchain windows" "install"] +] +remove: [ + ["ocamlfind" "-toolchain" "windows" "remove" "ctypes"] +] +depends: [ + "conf-gcc-windows" + "ocaml-windows" + "ocamlfind" {build} + "integers-windows" +] +depexts: [ + [["mxe"] ["libffi"]] +] diff --git a/packages/ctypes-windows/ctypes-windows.0.13.1/url b/packages/ctypes-windows/ctypes-windows.0.13.1/url new file mode 100644 index 00000000..1f6def3c --- /dev/null +++ b/packages/ctypes-windows/ctypes-windows.0.13.1/url @@ -0,0 +1,2 @@ +archive: "https://github.com/ocamllabs/ocaml-ctypes/archive/0.13.1.tar.gz" +checksum: "0e1b70d28b5b9adc8c4596d9f4dff5b9" diff --git a/packages/fileutils-windows/fileutils-windows.0.5.3/descr b/packages/fileutils-windows/fileutils-windows.0.5.3/descr new file mode 100644 index 00000000..6342ccca --- /dev/null +++ b/packages/fileutils-windows/fileutils-windows.0.5.3/descr @@ -0,0 +1 @@ +Functions to manipulate real file (POSIX like) and filename. \ No newline at end of file diff --git a/packages/fileutils-windows/fileutils-windows.0.5.3/opam b/packages/fileutils-windows/fileutils-windows.0.5.3/opam new file mode 100644 index 00000000..32bfa081 --- /dev/null +++ b/packages/fileutils-windows/fileutils-windows.0.5.3/opam @@ -0,0 +1,27 @@ +opam-version: "1.2" +maintainer: "Sylvain Le Gall " +authors: [ "Sylvain Le Gall" ] +name: "fileutils-windows" +version: "0.5.3" +homepage: "http://ocaml-fileutils.forge.ocamlcore.org/" +license: "LGPL-2.1 with OCaml linking exception" +dev-repo: "https://github.com/gildor478/ocaml-fileutils.git" +bug-reports: "https://github.com/gildor478/ocaml-fileutils/issues" +build: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" "ocaml" "setup.ml" "-configure" "--prefix" "%{prefix}%/windows-sysroot"] + ["env" "OCAMLFIND_TOOLCHAIN=windows" "ocaml" "setup.ml" "-build"] +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" "ocaml" "setup.ml" "-install"] +remove: [ + ["ocamlfind" "-toolchain" "windows" "remove" "fileutils"] +] +build-doc: [ "ocaml" "setup.ml" "-doc" ] +depends: [ + "ocaml-windows" + "base-unix" + "base-bytes" + "ocamlbuild-windows" {build} + "ocamlfind" {build} + "ounit" {test & >= "2.0.0"} +] +available: os != "win32" diff --git a/packages/fileutils-windows/fileutils-windows.0.5.3/url b/packages/fileutils-windows/fileutils-windows.0.5.3/url new file mode 100644 index 00000000..bb3de194 --- /dev/null +++ b/packages/fileutils-windows/fileutils-windows.0.5.3/url @@ -0,0 +1,2 @@ +archive: "https://forge.ocamlcore.org/frs/download.php/1728/ocaml-fileutils-0.5.3.tar.gz" +checksum: "9b719b19b96525004c88bf7bc846fa1d" diff --git a/packages/fix-windows/fix-windows.20130611/descr b/packages/fix-windows/fix-windows.20130611/descr new file mode 100644 index 00000000..d6715165 --- /dev/null +++ b/packages/fix-windows/fix-windows.20130611/descr @@ -0,0 +1 @@ +a least fixed point computation library, using an efficient imperative algorithm diff --git a/packages/fix-windows/fix-windows.20130611/opam b/packages/fix-windows/fix-windows.20130611/opam new file mode 100644 index 00000000..78f04ed1 --- /dev/null +++ b/packages/fix-windows/fix-windows.20130611/opam @@ -0,0 +1,12 @@ +opam-version: "1" +maintainer: "jonathan.protzenko@gmail.com" +name: "fix-windows" +version: "20130611" +build: ["env" "OCAMLFIND_TOOLCHAIN=windows" make] +remove: [["ocamlfind" "-toolchain" "windows" "remove" "fix"]] +depends: [ + "ocaml-windows" + "ocamlfind" {build} + "ocamlbuild-windows" {build} +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"] diff --git a/packages/fix-windows/fix-windows.20130611/url b/packages/fix-windows/fix-windows.20130611/url new file mode 100644 index 00000000..61ce85ab --- /dev/null +++ b/packages/fix-windows/fix-windows.20130611/url @@ -0,0 +1,2 @@ +archive: "http://gallium.inria.fr/~fpottier/fix/fix-20130611.tar.gz" +checksum: "056dec3341ef008458fa722ebf2e3c57" diff --git a/packages/gen-windows/gen-windows.0.5/descr b/packages/gen-windows/gen-windows.0.5/descr new file mode 100644 index 00000000..099d05f3 --- /dev/null +++ b/packages/gen-windows/gen-windows.0.5/descr @@ -0,0 +1,4 @@ +Simple and efficient iterators (modules Gen and GenLabels). + +Now provides additional modules GenClone and GenMList for lower-level control +over persistency and duplication of iterators. diff --git a/packages/gen-windows/gen-windows.0.5/opam b/packages/gen-windows/gen-windows.0.5/opam new file mode 100644 index 00000000..7665aa17 --- /dev/null +++ b/packages/gen-windows/gen-windows.0.5/opam @@ -0,0 +1,27 @@ +opam-version: "1.2" +maintainer: "simon.cruanes.2007@m4x.org" +author: "Simon Cruanes" +name: "gen-windows" +version: "0.5" +build: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" "./configure" "--disable-docs" "--disable-tests" "--disable-bench" "--prefix" "%{prefix}%/windows-sysroot"] + ["env" "OCAMLFIND_TOOLCHAIN=windows" make "all"] +] +install: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows"make "install"] +] +remove: [ + ["ocamlfind" "-toolchain" "windows" "remove" "gen"] +] +depends: [ + "ocaml-windows" + "ocamlfind" {build} + "ocamlfind-windows" + "ocamlbuild" {build} + "base-bytes" +] +tags: [ "gen" "iterator" "iter" "fold" ] +homepage: "https://github.com/c-cube/gen/" +doc: "http://cedeela.fr/~simon/software/gen/" +bug-reports: "https://github.com/c-cube/gen/issues" +dev-repo: "https://github.com/c-cube/gen.git" diff --git a/packages/gen-windows/gen-windows.0.5/url b/packages/gen-windows/gen-windows.0.5/url new file mode 100644 index 00000000..dcebf316 --- /dev/null +++ b/packages/gen-windows/gen-windows.0.5/url @@ -0,0 +1,2 @@ +http: "https://github.com/c-cube/gen/archive/0.5.tar.gz" +checksum: "521a106f9d200ca71635fa5887535436" diff --git a/packages/integers-windows/integers-windows.0.2.2/descr b/packages/integers-windows/integers-windows.0.2.2/descr new file mode 100644 index 00000000..f5cf8fc5 --- /dev/null +++ b/packages/integers-windows/integers-windows.0.2.2/descr @@ -0,0 +1 @@ +Various signed and unsigned integer types for OCaml diff --git a/packages/integers-windows/integers-windows.0.2.2/opam b/packages/integers-windows/integers-windows.0.2.2/opam new file mode 100644 index 00000000..6569c628 --- /dev/null +++ b/packages/integers-windows/integers-windows.0.2.2/opam @@ -0,0 +1,27 @@ +version: "0.2.2" +opam-version: "1.2" +name: "integers-windows" +maintainer: "yallop@gmail.com" +authors: ["Jeremy Yallop" + "Demi Obenour" + "Stephane Glondu" + "Andreas Hauptmann"] +homepage: "https://github.com/ocamllabs/ocaml-integers" +bug-reports: "https://github.com/ocamllabs/ocaml-integers/issues" +dev-repo: "https://github.com/ocamllabs/ocaml-integers.git" +license: "MIT" +build: +[[ "ocaml" "pkg/pkg.ml" "build" + "--pinned" "%{pinned}%" + "--toolchain" "windows" + "--pkg-name" "integers"]] +install: [["opam-installer" "--prefix=%{prefix}%/windows-sysroot" "integers.install"]] +remove: [["ocamlfind" "-toolchain" "windows" "remove" "integers"]] +depends: [ + "ocaml-windows" + "ocamlbuild-windows" {build} + "ocamlfind" {build} + "topkg" {build} +] + +doc: "http://ocamllabs.github.io/ocaml-integers/api.docdir/" diff --git a/packages/integers-windows/integers-windows.0.2.2/url b/packages/integers-windows/integers-windows.0.2.2/url new file mode 100644 index 00000000..984c24f6 --- /dev/null +++ b/packages/integers-windows/integers-windows.0.2.2/url @@ -0,0 +1,2 @@ +archive: "https://github.com/ocamllabs/ocaml-integers/releases/download/v0.2.2/integers-0.2.2.tbz" +checksum: "ae226532930965fe0b43c02f2469cadc" \ No newline at end of file diff --git a/packages/menhir-windows/menhir-windows.20171222/descr b/packages/menhir-windows/menhir-windows.20171222/descr new file mode 100644 index 00000000..ce1c204c --- /dev/null +++ b/packages/menhir-windows/menhir-windows.20171222/descr @@ -0,0 +1 @@ +LR(1) parser generator diff --git a/packages/menhir-windows/menhir-windows.20171222/files/menhir-20171222.windows-2.patch b/packages/menhir-windows/menhir-windows.20171222/files/menhir-20171222.windows-2.patch new file mode 100644 index 00000000..e2fc7b58 --- /dev/null +++ b/packages/menhir-windows/menhir-windows.20171222/files/menhir-20171222.windows-2.patch @@ -0,0 +1,59 @@ +*** Makefile 2018-01-27 16:13:32.881698500 +0000 +--- Makefile 2018-01-27 16:14:22.911803700 +0000 +*************** +*** 109,115 **** + # The directories where things are built. + + # For Menhir and MenhirLib. +! BUILDDIR := src/_stage2 + # For MenhirSdk. + SDKDIR := src/_sdk + +--- 109,115 ---- + # The directories where things are built. + + # For Menhir and MenhirLib. +! BUILDDIR := src/_stage1 + # For MenhirSdk. + SDKDIR := src/_sdk + +*************** +*** 193,201 **** + @if `$(BUILDDIR)/menhir.$(TARGET) --suggest-ocamlfind | tr -d '\r'` ; then \ + echo 'Installing MenhirLib and MenhirSdk via ocamlfind.' ; \ + cp -f src/menhirLib.META META ; \ +! ocamlfind install menhirLib META $(patsubst %,$(BUILDDIR)/%,$(MENHIRLIB)) ; \ + cp -f src/menhirSdk.META META ; \ +! ocamlfind install menhirSdk META $(patsubst %,$(SDKDIR)/%,$(MENHIRSDK)) ; \ + rm -f META ; \ + else \ + echo 'Installing MenhirLib and MenhirSdk manually.' ; \ +--- 193,201 ---- + @if `$(BUILDDIR)/menhir.$(TARGET) --suggest-ocamlfind | tr -d '\r'` ; then \ + echo 'Installing MenhirLib and MenhirSdk via ocamlfind.' ; \ + cp -f src/menhirLib.META META ; \ +! ocamlfind -toolchain windows install menhirLib META $(patsubst %,$(BUILDDIR)/%,$(MENHIRLIB)) ; \ + cp -f src/menhirSdk.META META ; \ +! ocamlfind -toolchain windows install menhirSdk META $(patsubst %,$(SDKDIR)/%,$(MENHIRSDK)) ; \ + rm -f META ; \ + else \ + echo 'Installing MenhirLib and MenhirSdk manually.' ; \ +*************** +*** 212,219 **** + uninstall: + @if `$(bindir)/$(MENHIREXE) --suggest-ocamlfind` ; then \ + echo 'Un-installing MenhirLib and MenhirSdk via ocamlfind.' ; \ +! ocamlfind remove menhirLib ; \ +! ocamlfind remove menhirSdk ; \ + fi + rm -rf $(bindir)/$(MENHIREXE) + rm -rf $(libdir) +--- 212,219 ---- + uninstall: + @if `$(bindir)/$(MENHIREXE) --suggest-ocamlfind` ; then \ + echo 'Un-installing MenhirLib and MenhirSdk via ocamlfind.' ; \ +! ocamlfind -toolchain windows remove menhirLib ; \ +! ocamlfind -toolchain windows remove menhirSdk ; \ + fi + rm -rf $(bindir)/$(MENHIREXE) + rm -rf $(libdir) diff --git a/packages/menhir-windows/menhir-windows.20171222/files/menhir-20171222.windows.patch b/packages/menhir-windows/menhir-windows.20171222/files/menhir-20171222.windows.patch new file mode 100644 index 00000000..210cc71c --- /dev/null +++ b/packages/menhir-windows/menhir-windows.20171222/files/menhir-20171222.windows.patch @@ -0,0 +1,38 @@ +*** src/Makefile 2018-01-27 14:34:24.519115900 +0000 +--- src/Makefile 2018-01-27 15:13:50.773953200 +0000 +*************** +*** 10,16 **** + # ---------------------------------------------------------------------------- + # Ocamlbuild tool and settings. + +! OCAMLBUILD := ocamlbuild -classic-display -j 0 + ifeq ($(TARGET),byte) + OCAMLBUILD := $(OCAMLBUILD) -byte-plugin + endif +--- 10,16 ---- + # ---------------------------------------------------------------------------- + # Ocamlbuild tool and settings. + +! OCAMLBUILD := ocamlbuild -toolchain windows -use-ocamlfind -classic-display -j 0 + ifeq ($(TARGET),byte) + OCAMLBUILD := $(OCAMLBUILD) -byte-plugin + endif +*************** +*** 27,34 **** + + bootstrap: + @ $(MAKE) stage1 +! @ $(MAKE) stage2 +! @ $(MAKE) stage3 + + # ---------------------------------------------------------------------------- + # Stage 1. +--- 27,34 ---- + + bootstrap: + @ $(MAKE) stage1 +! # @ $(MAKE) stage2 +! # @ $(MAKE) stage3 + + # ---------------------------------------------------------------------------- + # Stage 1. diff --git a/packages/menhir-windows/menhir-windows.20171222/opam b/packages/menhir-windows/menhir-windows.20171222/opam new file mode 100644 index 00000000..29d71c69 --- /dev/null +++ b/packages/menhir-windows/menhir-windows.20171222/opam @@ -0,0 +1,27 @@ +opam-version: "1.2" +maintainer: "francois.pottier@inria.fr" +name: "menhir-windows" +version: "20171222" +authors: [ + "François Pottier " + "Yann Régis-Gianas " +] +homepage: "http://gallium.inria.fr/~fpottier/menhir/" +dev-repo: "https://gitlab.inria.fr/fpottier/menhir.git" +bug-reports: "menhir@inria.fr" +build: [ + [make "-f" "Makefile" "PREFIX=%{prefix}%/windows-sysroot" "docdir=%{prefix}%/windows-sysroot/doc/menhir" "libdir=%{prefix}%/windows-sysroot/lib/menhir" "mandir=%{prefix}%/windows-sysroot/man/man1"] +] +install: [ + [make "-f" "Makefile" "install" "PREFIX=%{prefix}%/windows-sysroot" "docdir=%{prefix}%/windows-sysroot/doc/menhir" "libdir=%{prefix}%/windows-sysroot/lib/menhir" "mandir=%{prefix}%/windows-sysroot/man/man1"] +] +remove: [ + [make "-f" "Makefile" "uninstall" "PREFIX=%{prefix}%/windows-sysroot" "docdir=%{prefix}%/windows-sysroot/doc/menhir" "libdir=%{prefix}%/windows-sysroot/lib/menhir" "mandir=%{prefix}%/windows-sysroot/man/man1"] +] +depends: [ + "ocaml-windows" + "ocamlfind" + "ocamlbuild" {build} +] +available: [ ocaml-version >= "4.02" ] +patches: ["menhir-20171222.windows.patch" "menhir-20171222.windows-2.patch"] diff --git a/packages/menhir-windows/menhir-windows.20171222/url b/packages/menhir-windows/menhir-windows.20171222/url new file mode 100644 index 00000000..722fd68c --- /dev/null +++ b/packages/menhir-windows/menhir-windows.20171222/url @@ -0,0 +1,2 @@ +archive: "http://gallium.inria.fr/~fpottier/menhir/menhir-20171222.tar.gz" +checksum: "6bbea6ad7b390904c9ce6d3e11d73438" diff --git a/packages/ocaml-windows64.4.04.0/files/install.sh b/packages/ocaml-windows64.4.04.0/files/install.sh index d6d6edee..e8ff2ace 100755 --- a/packages/ocaml-windows64.4.04.0/files/install.sh +++ b/packages/ocaml-windows64.4.04.0/files/install.sh @@ -19,7 +19,7 @@ END chmod +x "${PREFIX}/windows-sysroot/bin/${bin}" done -for pkg in bigarray bytes compiler-libs dynlink findlib graphics num num-top stdlib str threads unix; do +for pkg in bigarray bytes compiler-libs dynlink graphics num num-top stdlib str threads unix; do cp -r "${PREFIX}/lib/${pkg}" "${PREFIX}/windows-sysroot/lib/" done diff --git a/packages/ocaml-windows64.4.04.0/files/remove.sh b/packages/ocaml-windows64.4.04.0/files/remove.sh index b77fffc3..54d3a66e 100755 --- a/packages/ocaml-windows64.4.04.0/files/remove.sh +++ b/packages/ocaml-windows64.4.04.0/files/remove.sh @@ -6,5 +6,9 @@ for bin in ocaml ocamlc ocamlcp ocamldebug ocamldep ocamldoc ocamllex ocamlmklib rm -f "${PREFIX}/windows-sysroot/bin/${bin}" done +for pkg in bigarray bytes compiler-libs dynlink graphics num num-top stdlib str threads unix; do + rm -rf "${PREFIX}/windows-sysroot/lib/${pkg}" +done + rm -rf "${PREFIX}/windows-sysroot/lib/ocaml" rm -rf "${PREFIX}/lib/findlib.conf.d/windows.conf" diff --git a/packages/ocamlbuild-windows.0.12.0/files/ocamlbuild-windows.0.12.0.patch b/packages/ocamlbuild-windows.0.12.0/files/ocamlbuild-windows.0.12.0.patch new file mode 100644 index 00000000..4c3d388d --- /dev/null +++ b/packages/ocamlbuild-windows.0.12.0/files/ocamlbuild-windows.0.12.0.patch @@ -0,0 +1,49 @@ +diff -crB ocamlbuild-0.12.0/configure.make ocamlbuild-0.12.0-mine/configure.make +*** configure.make 2018-01-28 17:17:05.582083400 +0000 +--- configure.make 2018-01-28 17:10:42.420020000 +0000 +*************** +*** 6,12 **** + # from the main Makefile, but this made it not robust to addition of + # new variables to this ocaml/Makefile.config that we do not control. + +! include $(shell ocamlc -where)/Makefile.config + + OCAML_PREFIX = $(PREFIX) + OCAML_BINDIR = $(BINDIR) +--- 6,12 ---- + # from the main Makefile, but this made it not robust to addition of + # new variables to this ocaml/Makefile.config that we do not control. + +! include $(shell ocamlfind ocamlc -where)/Makefile.config + + OCAML_PREFIX = $(PREFIX) + OCAML_BINDIR = $(BINDIR) +diff -crB ocamlbuild-0.12.0/Makefile ocamlbuild-0.12.0-mine/Makefile +*** Makefile 2018-01-28 17:17:05.535250400 +0000 +--- Makefile 2018-01-28 17:19:21.021889600 +0000 +*************** +*** 405,415 **** + $(MAKE) install-man-opam + $(MAKE) install-doc-opam + + check-if-preinstalled: + ifeq ($(CHECK_IF_PREINSTALLED), true) +! if test -d $(shell ocamlc -where)/ocamlbuild; then\ + >&2 echo "ERROR: Preinstalled ocamlbuild detected at"\ +! "$(shell ocamlc -where)/ocamlbuild";\ + >&2 echo "Installation aborted; if you want to bypass this"\ + "safety check, pass CHECK_IF_PREINSTALLED=false to make";\ + exit 2;\ +--- 405,416 ---- + $(MAKE) install-man-opam + $(MAKE) install-doc-opam + ++ OCAMLC_DIR=$(shell ocamlfind ocamlc -where) + check-if-preinstalled: + ifeq ($(CHECK_IF_PREINSTALLED), true) +! if test -d $(OCAMLC_DIR)/ocamlbuild; then\ + >&2 echo "ERROR: Preinstalled ocamlbuild detected at"\ +! "$(OCAMLC_DIR)/ocamlbuild";\ + >&2 echo "Installation aborted; if you want to bypass this"\ + "safety check, pass CHECK_IF_PREINSTALLED=false to make";\ + exit 2;\ diff --git a/packages/ocamlbuild-windows.0.12.0/opam b/packages/ocamlbuild-windows.0.12.0/opam index daaa5f4c..0faff948 100644 --- a/packages/ocamlbuild-windows.0.12.0/opam +++ b/packages/ocamlbuild-windows.0.12.0/opam @@ -7,7 +7,7 @@ license: "LGPL-2 with OCaml linking exception" doc: "https://github.com/ocaml/ocamlbuild/blob/master/manual/manual.adoc" dev-repo: "https://github.com/ocaml/ocamlbuild.git" build: [ - [ "sh" "-c" "export PATH=\"%{prefix}%/windows-sysroot/bin:$PATH\" && %{make}% -f configure.make all OCAMLBUILD_PREFIX=%{prefix}%/windows-sysroot OCAMLBUILD_BINDIR=%{prefix}%/windows-sysroot/bin OCAMLBUILD_LIBDIR=%{prefix}%/windows-sysroot/lib OCAMLBUILD_MANDIR=%{prefix}%/windows-sysroot/man OCAML_NATIVE=true OCAML_NATIVE_TOOLS=false && %{make}% check-if-preinstalled byte native install-lib-opam"] + ["sh" "-c" "export PATH=\"%{prefix}%/windows-sysroot/bin:$PATH\" && %{make}% -f configure.make all OCAMLBUILD_PREFIX=%{prefix}%/windows-sysroot OCAMLBUILD_BINDIR=%{prefix}%/windows-sysroot/bin OCAMLBUILD_LIBDIR=%{prefix}%/windows-sysroot/lib OCAMLBUILD_MANDIR=%{prefix}%/windows-sysroot/man OCAML_NATIVE=true OCAML_NATIVE_TOOLS=false && %{make}% check-if-preinstalled byte native install-lib-opam"] ] install: [ ["opam-installer" "-i" "--prefix" "%{prefix}%/windows-sysroot" "ocamlbuild.install"] diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/descr b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/descr new file mode 100644 index 00000000..78004184 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/descr @@ -0,0 +1,6 @@ +A library manager for OCaml +Findlib is a library manager for OCaml. It provides a convention how +to store libraries, and a file format ("META") to describe the +properties of libraries. There is also a tool (ocamlfind) for +interpreting the META files, so that it is very easy to use libraries +in programs and scripts. diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/Makefile.config.pre b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/Makefile.config.pre new file mode 100644 index 00000000..4cdab058 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/Makefile.config.pre @@ -0,0 +1,25 @@ +# Makefile.config handcrafted by CM Wintersteiger +OCAML_CORE_STDLIB=PREFIX/lib/ocaml +OCAML_CORE_BIN=PREFIX/bin +OCAML_CORE_MAN=PREFIX/man +OCAML_SITELIB=PREFIX/lib +OCAML_THREADS=posix +OCAMLFIND_BIN=PREFIX/bin +OCAMLFIND_MAN=PREFIX/man +OCAMLFIND_CONF=PREFIX/etc/findlib.conf +OCAML_AUTOLINK=true +OCAML_REMOVE_DIRECTORY=1 +EXEC_SUFFIX= +LIB_SUFFIX=.a +CUSTOM=-custom +PARTS=findlib +INSTALL_TOPFIND=0 +INSTALL_CAMLP4=0 +USE_CYGPATH=0 +HAVE_NATDYNLINK=1 +VERSION=1.7.3 +ENABLE_TOPFIND_PPXOPT=true +SYSTEM=linux +NUMTOP=num-top +SH= +OPAQUE=-opaque diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/check-num-in-sitelib.patch b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/check-num-in-sitelib.patch new file mode 100644 index 00000000..2fe9e5f3 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/check-num-in-sitelib.patch @@ -0,0 +1,39 @@ +From 04a4e29db7d86e56ba7cb3b1ea6a26cdf9e597b2 Mon Sep 17 00:00:00 2001 +From: Gabriel Scherer +Date: Fri, 20 Oct 2017 16:13:59 +0200 +Subject: [PATCH] don't install an empty 'num' package if a third-party package + exists + +When reinstalling/updating ocamlfind in an existing OCaml environment, +ocamlfind is installed in a context where ocamlfind packages may +already exist. In particular, the `num` package (separated from the +compiler distribution in 4.06) may exist and own the file +${ocaml_core_stdlib}/num.cmi. In this case ocamlfind should not +overwrite it by installing its own num package -- the behaviour +observed by Jacques-Pascal Deplaix before this patch. + +This approach may be generalizable to the other builtin base packages. +--- + configure | 6 +++++- + 1 file changed, 5 insertions(+), 1 deletion(-) + +diff --git a/configure b/configure +index 6a4a558..2627f1f 100755 +--- a/configure ++++ b/configure +@@ -524,7 +524,11 @@ fi + + # num? + +-if [ -f "${ocaml_core_stdlib}/num.cmi" ]; then ++if [ -f "${ocaml_sitelib}/num/META" ]; then ++ echo "num: package already present" ++ lnum="" ++ numtop="" ++elif [ -f "${ocaml_core_stdlib}/num.cmi" ]; then + echo "num: found" + lnum="num num-top" + numtop="num-top" +-- +2.9.5 + diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/ocaml-stub b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/ocaml-stub new file mode 100644 index 00000000..e5ad9907 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/ocaml-stub @@ -0,0 +1,4 @@ +#!/bin/sh + +BINDIR=$(dirname "$(command -v ocamlc)") +"$BINDIR/ocaml" -I "$OCAML_TOPLEVEL_PATH" "$@" diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/ocamlfind.install b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/ocamlfind.install new file mode 100644 index 00000000..295c6254 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/ocamlfind.install @@ -0,0 +1,6 @@ +bin: [ + "src/findlib/ocamlfind" {"ocamlfind"} + "?src/findlib/ocamlfind_opt" {"ocamlfind"} + "?tools/safe_camlp4" +] +toplevel: ["src/findlib/topfind"] diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/threads.patch b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/threads.patch new file mode 100644 index 00000000..1f2191ca --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/files/threads.patch @@ -0,0 +1,26 @@ +From 6de006e6f4864a585b085f840660383fa354f9bf Mon Sep 17 00:00:00 2001 +From: Anton Bachin +Date: Wed, 20 Dec 2017 12:17:40 -0600 +Subject: [PATCH] threads: drop explicit check for -thread/-vmthread + +--- + site-lib-src/threads/META.in | 3 --- + 1 file changed, 3 deletions(-) + +diff --git a/site-lib-src/threads/META.in b/site-lib-src/threads/META.in +index b42f3dd..fe2d986 100644 +--- a/site-lib-src/threads/META.in ++++ b/site-lib-src/threads/META.in +@@ -9,9 +9,6 @@ dnl This file is input of the m4 macro processor. + + `browse_interfaces = "'interfaces`"' + +-`error(-mt) = "Missing -thread or -vmthread switch"' +-`error(-mt_vm,-mt_posix) = "Missing -thread or -vmthread switch"' +- + `package "vm" (' + ` # --- Bytecode-only threads:' + ` requires = "unix"' +-- +2.12.2 + diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/opam b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/opam new file mode 100644 index 00000000..8da8f021 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/opam @@ -0,0 +1,30 @@ +opam-version: "1.2" +maintainer: "Thomas Gazagnaire " +author: "Gerd Stolpmann " +name: "ocamlfind-windows" +version: "1.7.3-1" +homepage: "http://projects.camlcity.org/projects/findlib.html" +bug-reports: "https://gitlab.camlcity.org/gerd/lib-findlib/issues" +dev-repo: "https://gitlab.camlcity.org/gerd/lib-findlib.git" +patches: [ + "check-num-in-sitelib.patch" + "threads.patch" +] +build: [ + ["sh" "-c" "./configure"] + ["sh" "-c" "sed 's|PREFIX|%{prefix}%/windows-sysroot|g' Makefile.config.pre > Makefile.config"] + ["sh" "-c" "PATH=%{prefix}%/windows-sysroot/bin:$PATH make all opt"] +] +install: [ + ["sh" "-c" "PATH=%{prefix}%/windows-sysroot/bin:$PATH make install"] +] +remove: [ + ["sh" "-c" "./configure"] + ["sh" "-c" "sed 's|PREFIX|%{prefix}%/windows-sysroot|g' Makefile.config.pre > Makefile.config"] + ["sh" "-c" "PATH=%{prefix}%/windows-sysroot/bin:$PATH make uninstall"] +] +available: [ocaml-version >= "3.12.0"] # ocamlfind refers to cmxs +depends: [ + "ocaml-windows" + "conf-m4" {build} +] diff --git a/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/url b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/url new file mode 100644 index 00000000..a14c7c64 --- /dev/null +++ b/packages/ocamlfind-windows/ocamlfind-windows.1.7.3-1/url @@ -0,0 +1,3 @@ +archive: "http://download.camlcity.org/download/findlib-1.7.3.tar.gz" +checksum: "7d57451218359f7b7dfc969e3684a6da" +mirrors: [ "http://download2.camlcity.org/download/findlib-1.7.3.tar.gz" ] diff --git a/packages/pprint-windows/pprint-windows.20171003/descr b/packages/pprint-windows/pprint-windows.20171003/descr new file mode 100644 index 00000000..3d752819 --- /dev/null +++ b/packages/pprint-windows/pprint-windows.20171003/descr @@ -0,0 +1 @@ +A pretty-printing combinator library and rendering engine. diff --git a/packages/pprint-windows/pprint-windows.20171003/opam b/packages/pprint-windows/pprint-windows.20171003/opam new file mode 100644 index 00000000..b8ea314e --- /dev/null +++ b/packages/pprint-windows/pprint-windows.20171003/opam @@ -0,0 +1,21 @@ +opam-version: "1.2" +maintainer: "francois.pottier@inria.fr" +name: "pprint-windows" +version: "20171003" +authors: [ + "François Pottier " + "Nicolas Pouillard " +] +homepage: "https://github.com/fpottier/pprint" +dev-repo: "git@github.com:fpottier/pprint.git" +bug-reports: "francois.pottier@inria.fr" +build: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "all"] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"] +remove: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "uninstall"] +depends: [ + "ocaml-windows" + "ocamlfind" {build} + "ocamlbuild" {build} +] +available: [ ocaml-version >= "4.02" ] + diff --git a/packages/pprint-windows/pprint-windows.20171003/url b/packages/pprint-windows/pprint-windows.20171003/url new file mode 100644 index 00000000..41a9393c --- /dev/null +++ b/packages/pprint-windows/pprint-windows.20171003/url @@ -0,0 +1,2 @@ +archive: "http://gallium.inria.fr/~fpottier/pprint/pprint-20171003.tar.gz" +checksum: "b06ac119685f709a9ace599604d39f58" diff --git a/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/descr b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/descr new file mode 100644 index 00000000..c4a8e75a --- /dev/null +++ b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/descr @@ -0,0 +1,5 @@ +Type-driven code generation for OCaml >=4.02 + +ppx_deriving provides common infrastructure for generating +code based on type definitions, and a set of useful plugins +for common tasks. diff --git a/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/files/ppx_deriving-4.2.1-windows.patch b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/files/ppx_deriving-4.2.1-windows.patch new file mode 100644 index 00000000..0e0078a9 --- /dev/null +++ b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/files/ppx_deriving-4.2.1-windows.patch @@ -0,0 +1,20 @@ +diff -crB ppx_deriving-4.2.1/pkg/build.ml ppx_deriving-4.2.1-mine/pkg/build.ml +*** pkg/build.ml 2018-01-28 23:04:33.865993400 +0000 +--- pkg/build.ml 2018-01-28 17:01:48.088053700 +0000 +*************** +*** 14,20 **** + "'" ^ s ^ "'" + + let ocamlbuild = +! "ocamlbuild -use-ocamlfind -classic-display -plugin-tag " ^ quote_parens "package(cppo_ocamlbuild)" + + let () = + Pkg.describe "ppx_deriving" ~builder:(`Other (ocamlbuild, "_build")) [ +--- 14,20 ---- + "'" ^ s ^ "'" + + let ocamlbuild = +! "ocamlbuild -toolchain windows -use-ocamlfind -classic-display -plugin-tag " ^ quote_parens "package(cppo_ocamlbuild)" + + let () = + Pkg.describe "ppx_deriving" ~builder:(`Other (ocamlbuild, "_build")) [ diff --git a/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/opam b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/opam new file mode 100644 index 00000000..3f97ab37 --- /dev/null +++ b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/opam @@ -0,0 +1,39 @@ +opam-version: "1.2" +name: "ppx_deriving-windows" +version: "4.2.1" +maintainer: "whitequark " +authors: [ "whitequark " ] +license: "MIT" +homepage: "https://github.com/whitequark/ppx_deriving" +doc: "https://whitequark.github.io/ppx_deriving" +bug-reports: "https://github.com/whitequark/ppx_deriving/issues" +dev-repo: "https://github.com/whitequark/ppx_deriving.git" +tags: [ "syntax" ] +substs: [ "pkg/META" ] +build: [ + # If there is no native dynlink, we can't use native builds + "ocaml" "pkg/build.ml" "native=%{ocaml-native-dynlink}%" + "native-dynlink=%{ocaml-native-dynlink}%" +] +build-test: [ + "ocamlbuild" "-toolchain" "windows" "-classic-display" "-use-ocamlfind" "src_test/test_ppx_deriving.byte" "--" +] +install: [["opam-installer" "--prefix=%{prefix}%/windows-sysroot" "ppx_deriving.install" "--name" "ppx_deriving"]] +remove: [["ocamlfind" "-toolchain" "windows" "remove" "ppx_deriving"]] +build-doc: [ + make "doc" +] +depends: [ + "ocaml-windows" + "ocamlbuild" {build} + "ocamlfind" {build & >= "1.6.0"} + "cppo" {build} + "cppo_ocamlbuild" {build} + "ocaml-migrate-parsetree-windows" + "ppx_derivers-windows" + "ppx_tools-windows" {>= "4.02.3"} + "result-windows" + "ounit" {test} +] +available: [ ocaml-version >= "4.02.1" & opam-version >= "1.2" ] +patches: ["ppx_deriving-4.2.1-windows.patch"] diff --git a/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/url b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/url new file mode 100644 index 00000000..4b9c5405 --- /dev/null +++ b/packages/ppx_deriving-windows/ppx_deriving-windows.4.2.1/url @@ -0,0 +1,2 @@ +http: "https://github.com/ocaml-ppx/ppx_deriving/archive/v4.2.1.tar.gz" +checksum: "2195fccf2a527c3ff9ec5b4e36e2f0a8" diff --git a/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/descr b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/descr new file mode 100644 index 00000000..25b9b983 --- /dev/null +++ b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/descr @@ -0,0 +1,4 @@ +JSON codec generator for OCaml >=4.02 + +ppx_deriving_yojson is a ppx_deriving plugin that provides +a JSON codec generator. diff --git a/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/files/ppx_deriving_yojson-windows.3.1.patch b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/files/ppx_deriving_yojson-windows.3.1.patch new file mode 100644 index 00000000..6a6a5c92 --- /dev/null +++ b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/files/ppx_deriving_yojson-windows.3.1.patch @@ -0,0 +1,62 @@ +diff -crB ppx_deriving_yojson-3.1/Makefile ppx_deriving_yojson-3.1-mine/Makefile +*** Makefile 2018-01-29 11:08:33.679184900 +0000 +--- Makefile 2018-01-29 11:14:04.253686600 +0000 +*************** +*** 4,21 **** + + test: build + rm -rf _build/src_test/ +! ocamlbuild -j 0 -use-ocamlfind -classic-display \ + src_test/test_ppx_yojson.byte -- + + doc: +! ocamlbuild -use-ocamlfind doc/api.docdir/index.html \ + -docflags -t -docflag "API reference for ppx_deriving_yojson" \ + -docflags '-colorize-code -short-functors -charset utf-8' \ + -docflags '-css-style style.css' + cp doc/style.css api.docdir/ + + clean: +! ocamlbuild -clean + + .PHONY: build test doc clean + +--- 4,21 ---- + + test: build + rm -rf _build/src_test/ +! ocamlbuild -toolchain windows -j 0 -use-ocamlfind -classic-display \ + src_test/test_ppx_yojson.byte -- + + doc: +! ocamlbuild -toolchain windows -use-ocamlfind doc/api.docdir/index.html \ + -docflags -t -docflag "API reference for ppx_deriving_yojson" \ + -docflags '-colorize-code -short-functors -charset utf-8' \ + -docflags '-css-style style.css' + cp doc/style.css api.docdir/ + + clean: +! ocamlbuild -toolchain windows -clean + + .PHONY: build test doc clean + +diff -crB ppx_deriving_yojson-3.1/pkg/build.ml ppx_deriving_yojson-3.1-mine/pkg/build.ml +*** pkg/build.ml 2018-01-29 11:08:33.732218800 +0000 +--- pkg/build.ml 2018-01-29 11:14:46.236318700 +0000 +*************** +*** 3,9 **** + #use "topkg.ml" + + let ocamlbuild = +! "ocamlbuild -use-ocamlfind -classic-display -plugin-tag 'package(cppo_ocamlbuild)'" + + let () = + Pkg.describe "ppx_deriving_yojson" ~builder:(`Other (ocamlbuild, "_build")) [ +--- 3,9 ---- + #use "topkg.ml" + + let ocamlbuild = +! "ocamlbuild -toolchain windows -use-ocamlfind -classic-display -plugin-tag 'package(cppo_ocamlbuild)'" + + let () = + Pkg.describe "ppx_deriving_yojson" ~builder:(`Other (ocamlbuild, "_build")) [ diff --git a/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/opam b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/opam new file mode 100644 index 00000000..595f3664 --- /dev/null +++ b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/opam @@ -0,0 +1,36 @@ +opam-version: "1.2" +name: "ppx_deriving_yojson-windows" +version: "3.1" +maintainer: "whitequark " +authors: [ "whitequark " ] +license: "MIT" +homepage: "https://github.com/whitequark/ppx_deriving_yojson" +doc: "http://whitequark.github.io/ppx_deriving_yojson" +bug-reports: "https://github.com/whitequark/ppx_deriving_yojson/issues" +dev-repo: "git://github.com/whitequark/ppx_deriving_yojson.git" +tags: [ "syntax" "json" ] +substs: [ "pkg/META" ] +build: [ + "ocaml" "pkg/build.ml" "native=%{ocaml-native}%" + "native-dynlink=%{ocaml-native-dynlink}%" +] +build-test: [ + "ocamlbuild" "-toolchain" "windows" "-classic-display" "-use-ocamlfind" + "src_test/test_ppx_yojson.byte" "--" +] +install: [["opam-installer" "--prefix=%{prefix}%/windows-sysroot" "ppx_deriving_yojson.install" "--name" "ppx_deriving_yojson"]] +remove: [["ocamlfind" "-toolchain" "windows" "remove" "ppx_deriving_yojson"]] +depends: [ + "ocaml-windows" + "yojson-windows" + "result-windows" + "ppx_deriving" {build} + "ppx_deriving-windows" {>= "4.0" & < "5.0"} + "ocamlfind-windows" {build} + "ocamlbuild" {build} + "cppo-windows" {build} + "cppo_ocamlbuild-windows" {build} + "ounit" {test} + "ppx_import" {test & >= "1.1"} +] +patches: ["ppx_deriving_yojson-windows.3.1.patch"] diff --git a/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/url b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/url new file mode 100644 index 00000000..39caeea7 --- /dev/null +++ b/packages/ppx_deriving_yojson-windows/ppx_deriving_yojson-windows.3.1/url @@ -0,0 +1,2 @@ +http: "https://github.com/ocaml-ppx/ppx_deriving_yojson/archive/v3.1.tar.gz" +checksum: "83128c06b0569309351886d9fd0dbb74" diff --git a/packages/ppx_tools-windows/ppx_tools-windows.5.0/descr b/packages/ppx_tools-windows/ppx_tools-windows.5.0/descr new file mode 100644 index 00000000..056c3aad --- /dev/null +++ b/packages/ppx_tools-windows/ppx_tools-windows.5.0/descr @@ -0,0 +1 @@ +Tools for authors of ppx rewriters and other syntactic tools diff --git a/packages/ppx_tools-windows/ppx_tools-windows.5.0/files/ppx_tools-windows.5.0.patch b/packages/ppx_tools-windows/ppx_tools-windows.5.0/files/ppx_tools-windows.5.0.patch new file mode 100644 index 00000000..9a8e117b --- /dev/null +++ b/packages/ppx_tools-windows/ppx_tools-windows.5.0/files/ppx_tools-windows.5.0.patch @@ -0,0 +1,19 @@ +*** Makefile 2018-01-28 01:49:58.281766400 +0000 +--- Makefile 2018-01-28 22:31:49.035461400 +0000 +*************** +*** 9,15 **** + # Don't forget to change META file as well + + OCAMLC = ocamlc -bin-annot +! OCAMLOPT = ocamlopt + COMPFLAGS = -w +A-4-17-44-45 -I +compiler-libs -safe-string + + .PHONY: all +--- 9,15 ---- + # Don't forget to change META file as well + + OCAMLC = ocamlc -bin-annot +! OCAMLOPT = ocamlfind ocamlopt + COMPFLAGS = -w +A-4-17-44-45 -I +compiler-libs -safe-string + + .PHONY: all diff --git a/packages/ppx_tools-windows/ppx_tools-windows.5.0/opam b/packages/ppx_tools-windows/ppx_tools-windows.5.0/opam new file mode 100644 index 00000000..b80f5e31 --- /dev/null +++ b/packages/ppx_tools-windows/ppx_tools-windows.5.0/opam @@ -0,0 +1,22 @@ +opam-version: "1.2" +maintainer: "alain.frisch@lexifi.com" +authors: [ "Alain Frisch " ] +name: "ppx_tools-windows" +version: "5.0" +license: "MIT" +homepage: "https://github.com/ocaml-ppx/ppx_tools" +bug-reports: "https://github.com/ocaml-ppx/ppx_tools/issues" +dev-repo: "git://github.com/ocaml-ppx/ppx_tools.git" +tags: [ "syntax" ] +build: [["env" "OCAMLFIND_TOOLCHAIN=windows" make "all"]] +install: [["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"]] +remove: [ +["env" "OCAMLFIND_TOOLCHAIN=windows" make "uninstall"] +["ocamlfind" "-toolchain" "windows" "remove" "ppx_tools"] +] +depends: [ + "ocaml-windows" + "ocamlfind" {>= "1.5.0"} +] +available: [ ocaml-version >= "4.04.0" & ocaml-version < "4.05" ] +patches: ["ppx_tools-windows.5.0.patch"] diff --git a/packages/ppx_tools-windows/ppx_tools-windows.5.0/url b/packages/ppx_tools-windows/ppx_tools-windows.5.0/url new file mode 100644 index 00000000..7878eae8 --- /dev/null +++ b/packages/ppx_tools-windows/ppx_tools-windows.5.0/url @@ -0,0 +1,2 @@ +archive: "https://github.com/ocaml-ppx/ppx_tools/archive/5.0+4.04.0.tar.gz" +checksum: "6f512acc15bdd09eb363babb333dc508" diff --git a/packages/process-windows/process-windows.0.2.1/descr b/packages/process-windows/process-windows.0.2.1/descr new file mode 100644 index 00000000..5482335f --- /dev/null +++ b/packages/process-windows/process-windows.0.2.1/descr @@ -0,0 +1,3 @@ +Easy process control + +process makes it easy to use commands like functions. diff --git a/packages/process-windows/process-windows.0.2.1/opam b/packages/process-windows/process-windows.0.2.1/opam new file mode 100644 index 00000000..7219cbb2 --- /dev/null +++ b/packages/process-windows/process-windows.0.2.1/opam @@ -0,0 +1,23 @@ +opam-version: "1.2" +name: "process-windows" +version: "0.2.1" +maintainer: "David Sheets " +authors: [ "David Sheets" "Jonathan Protzenko" ] +homepage: "https://github.com/dsheets/ocaml-process" +bug-reports: "https://github.com/dsheets/ocaml-process/issues" +license: "ISC" +dev-repo: "https://github.com/dsheets/ocaml-process.git" +tags: [ "process" "subprocess" "command" "system" ] +build: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" make] +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"] +remove: ["ocamlfind" "-toolchain" "windows" "remove" "process"] +depends: [ + "ocaml-windows" + "ocamlfind" {build} + "ocamlbuild" {build} + "base-unix" + "base-bytes" +] +available: [ ocaml-version >= "4.01.0" ] diff --git a/packages/process-windows/process-windows.0.2.1/url b/packages/process-windows/process-windows.0.2.1/url new file mode 100644 index 00000000..8a769955 --- /dev/null +++ b/packages/process-windows/process-windows.0.2.1/url @@ -0,0 +1,2 @@ +http: "https://github.com/dsheets/ocaml-process/archive/0.2.1.tar.gz" +checksum: "73b7ad5773619343db3b262839aa527e" diff --git a/packages/sedlex-windows/sedlex-windows.1.99.4/descr b/packages/sedlex-windows/sedlex-windows.1.99.4/descr new file mode 100644 index 00000000..ab5035c7 --- /dev/null +++ b/packages/sedlex-windows/sedlex-windows.1.99.4/descr @@ -0,0 +1,6 @@ +unicode-friendly lexer generator + +sedlex is a lexer generator for OCaml, similar to ocamllex, but +supporting Unicode. Contrary to ocamllex, lexer specifications for +sedlex are embedded in regular OCaml source files. + diff --git a/packages/sedlex-windows/sedlex-windows.1.99.4/files/sedlex-windows-1.99.4.patch b/packages/sedlex-windows/sedlex-windows.1.99.4/files/sedlex-windows-1.99.4.patch new file mode 100644 index 00000000..03d8ed3d --- /dev/null +++ b/packages/sedlex-windows/sedlex-windows.1.99.4/files/sedlex-windows-1.99.4.patch @@ -0,0 +1,74 @@ +diff -crB sedlex-1.99.4/Makefile sedlex-1.99.4-mine/Makefile +*** Makefile 2018-01-28 16:21:07.015875400 +0000 +--- Makefile 2018-01-28 16:07:36.822774700 +0000 +*************** +*** 32,44 **** + INSTALL_OPT=src/syntax/sedlex.cmxs src/syntax/sedlex$(EXT_LIB) src/syntax/sedlex.cmxa src/syntax/ppx_sedlex.opt$(EXE) src/lib/sedlexing.cmx src/lib/sedlexing$(EXT_LIB) src/lib/sedlexing.cmxa + + install: +! ocamlfind install sedlex $(INSTALL) $(INSTALL_OPT) + + install_byteonly: +! ocamlfind install sedlex $(INSTALL) + + uninstall: +! ocamlfind remove sedlex + + PACKAGE = sedlex-$(VERSION) + DISTRIB = \ +--- 32,44 ---- + INSTALL_OPT=src/syntax/sedlex.cmxs src/syntax/sedlex$(EXT_LIB) src/syntax/sedlex.cmxa src/syntax/ppx_sedlex.opt$(EXE) src/lib/sedlexing.cmx src/lib/sedlexing$(EXT_LIB) src/lib/sedlexing.cmxa + + install: +! ocamlfind -toolchain windows install sedlex $(INSTALL) $(INSTALL_OPT) + + install_byteonly: +! ocamlfind -toolchain windows install sedlex $(INSTALL) + + uninstall: +! ocamlfind -toolchain windows remove sedlex + + PACKAGE = sedlex-$(VERSION) + DISTRIB = \ +diff -crB sedlex-1.99.4/src/lib/Makefile sedlex-1.99.4-mine/src/lib/Makefile +*** src/lib/Makefile 2018-01-28 16:21:07.155381300 +0000 +--- src/lib/Makefile 2018-01-28 16:20:15.946339100 +0000 +*************** +*** 18,24 **** + doc: + rm -rf ../../libdoc + mkdir ../../libdoc +! ocamlfind ocamldoc -package gen -html sedlexing.mli -d ../../libdoc + + + +--- 18,25 ---- + doc: + rm -rf ../../libdoc + mkdir ../../libdoc +! # ocamldoc of the windows toolchain is broken, so we use the build system's: +! unset OCAMLFIND_TOOLCHAIN ; ocamlfind ocamldoc -package gen -html sedlexing.mli -d ../../libdoc + + + +diff -crB sedlex-1.99.4/src/syntax/Makefile sedlex-1.99.4-mine/src/syntax/Makefile +*** src/syntax/Makefile 2018-01-28 16:21:07.233505500 +0000 +--- src/syntax/Makefile 2018-01-28 16:20:39.140587800 +0000 +*************** +*** 8,14 **** + + OCAMLC=ocamlfind ocamlc + OCAMLOPT=ocamlfind ocamlopt +! PACKAGES=-package ppx_tools_versioned.metaquot_405 -package ocaml-migrate-parsetree + OCAMLFLAGS=$(PACKAGES) -linkall -w +A-4-9-42 -annot + + all: ppx_sedlex$(EXE) sedlex.cma +--- 8,15 ---- + + OCAMLC=ocamlfind ocamlc + OCAMLOPT=ocamlfind ocamlopt +! BLD_PPX=$(shell unset OCAMLFIND_TOOLCHAIN ; ocamlfind printppx ppx_tools_versioned.metaquot_405) +! PACKAGES=-package ocaml-migrate-parsetree -package ppx_tools_versioned $(BLD_PPX) + OCAMLFLAGS=$(PACKAGES) -linkall -w +A-4-9-42 -annot + + all: ppx_sedlex$(EXE) sedlex.cma diff --git a/packages/sedlex-windows/sedlex-windows.1.99.4/opam b/packages/sedlex-windows/sedlex-windows.1.99.4/opam new file mode 100644 index 00000000..03a04584 --- /dev/null +++ b/packages/sedlex-windows/sedlex-windows.1.99.4/opam @@ -0,0 +1,26 @@ +opam-version: "1.2" +name: "sedlex-windows" +version: "1.99.4" +maintainer: "Alain Frisch " +authors: [ + "Alain Frisch " +] +build: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" make "all" "opt"] +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"] +remove: [["ocamlfind" "-toolchain" "windows" "remove" "sedlex"]] +depends: ["ocaml-windows" + "ocamlfind" {build} + "ppx_tools_versioned-windows" + "ppx_tools_versioned" {build} + "ocaml-migrate-parsetree-windows" + "gen" {build} + "gen-windows" + ] +available: [ ocaml-version >= "4.02.3" ] +homepage: "https://github.com/alainfrisch/sedlex" +bug-reports: "https://github.com/alainfrisch/sedlex/issues" +license: "MIT" +dev-repo: "https://github.com/alainfrisch/sedlex.git" +patches: ["sedlex-windows-1.99.4.patch"] diff --git a/packages/sedlex-windows/sedlex-windows.1.99.4/url b/packages/sedlex-windows/sedlex-windows.1.99.4/url new file mode 100644 index 00000000..244b2ae4 --- /dev/null +++ b/packages/sedlex-windows/sedlex-windows.1.99.4/url @@ -0,0 +1,2 @@ +http: "https://github.com/alainfrisch/sedlex/archive/v1.99.4.tar.gz" +checksum: "f621d80e36cda2548528766f31b16b12" diff --git a/packages/sqlite3-windows/sqlite3-windows.4.3.2/descr b/packages/sqlite3-windows/sqlite3-windows.4.3.2/descr new file mode 100644 index 00000000..b85f4ce9 --- /dev/null +++ b/packages/sqlite3-windows/sqlite3-windows.4.3.2/descr @@ -0,0 +1,5 @@ +sqlite3-ocaml - SQLite3 bindings for OCaml + +sqlite3-ocaml is an OCaml library with bindings to the SQLite3 client API. +Sqlite3 is a self-contained, serverless, zero-configuration, transactional SQL +database engine with outstanding performance for many use cases. diff --git a/packages/sqlite3-windows/sqlite3-windows.4.3.2/files/sqlite3-windows.4.3.2.patch b/packages/sqlite3-windows/sqlite3-windows.4.3.2/files/sqlite3-windows.4.3.2.patch new file mode 100644 index 00000000..f0427e1c --- /dev/null +++ b/packages/sqlite3-windows/sqlite3-windows.4.3.2/files/sqlite3-windows.4.3.2.patch @@ -0,0 +1,27 @@ +*** src/jbuild 2017-11-27 06:01:14.000000000 +0000 +--- src/jbuild 2018-01-26 13:07:24.717645400 +0000 +*************** +*** 9,19 **** + )) + (c_names (sqlite3_stubs)) + (c_flags ( +! (:include c_flags.sexp) -g -O2 -fPIC -DPIC + ; NOTE: for debugging before releases + ; -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro + )) +! (c_library_flags ((:include c_library_flags.sexp) -lpthread)) + )) + + (rule ( +--- 9,19 ---- + )) + (c_names (sqlite3_stubs)) + (c_flags ( +! (:include c_flags.sexp) -g -O2 -fPIC -DPIC -I ../../../sqlite-amalgamation-3220000 -L ../../../sqlite-amalgamation-3220000 + ; NOTE: for debugging before releases + ; -Wall -pedantic -Wextra -Wunused -Wno-long-long -Wno-keyword-macro + )) +! (c_library_flags ((:include c_library_flags.sexp) -lpthread -L../../sqlite-amalgamation-3220000)) + )) + + (rule ( diff --git a/packages/sqlite3-windows/sqlite3-windows.4.3.2/opam b/packages/sqlite3-windows/sqlite3-windows.4.3.2/opam new file mode 100644 index 00000000..dff7303b --- /dev/null +++ b/packages/sqlite3-windows/sqlite3-windows.4.3.2/opam @@ -0,0 +1,48 @@ +opam-version: "1.2" +maintainer: "Markus Mottl " +authors: [ + "Markus Mottl " + "Christian Szegedy " +] +name: "sqlite3-windows" +version: "4.3.2" +license: "Expat" +homepage: "http://mmottl.github.io/sqlite3-ocaml" +doc: "https://mmottl.github.io/sqlite3-ocaml/api" +dev-repo: "https://github.com/mmottl/sqlite3-ocaml.git" +bug-reports: "https://github.com/mmottl/sqlite3-ocaml/issues" +tags: [ "clib:sqlite3" "clib:pthread" ] + +build: [ + ["wget" "http://sqlite.org/2018/sqlite-amalgamation-3220000.zip"] + ["unzip" "sqlite-amalgamation-3220000.zip"] + ["bash" "-c" "pushd sqlite-amalgamation-3220000 && x86_64-w64-mingw32-gcc -c sqlite3.c --static -o libsqlite3.a && popd"] + + ["jbuilder-windows" "subst"]{pinned} + ["jbuilder-windows" "build" "--install-prefix" "windows-sysroot" "-p" "sqlite3" "-j" jobs "-x" "windows" "--verbose"] +] + +install: [ + ["jbuilder-windows" "build" "@install" "-x" "windows"] + ["opam-installer" "_build/default/sqlite3-windows.install" "--prefix=%{prefix}%/windows-sysroot" "--name=sqlite3"] +] + +remove: [ + ["ocamlfind" "-toolchain" "windows" "remove" "sqlite3"] +] + +depends: [ + "ocaml-windows" + "conf-pkg-config" {build} + "base-windows" {build} + "stdio-windows" {build} + "configurator" {build} + "configurator-windows" {build} + "jbuilder-windows" {build & >= "1.0+beta10"} +] + +depexts: [] + +available: [ ocaml-version >= "4.04" ] + +patches: ["sqlite3-windows.4.3.2.patch"] diff --git a/packages/sqlite3-windows/sqlite3-windows.4.3.2/url b/packages/sqlite3-windows/sqlite3-windows.4.3.2/url new file mode 100644 index 00000000..a65da84b --- /dev/null +++ b/packages/sqlite3-windows/sqlite3-windows.4.3.2/url @@ -0,0 +1,2 @@ +archive: "https://github.com/mmottl/sqlite3-ocaml/releases/download/4.3.2/sqlite3-4.3.2.tbz" +checksum: "bea81810b2fe5a707422c3fa7b42eb6d" \ No newline at end of file diff --git a/packages/stdint-windows/stdint-windows.0.5.0/descr b/packages/stdint-windows/stdint-windows.0.5.0/descr new file mode 100644 index 00000000..3a80603c --- /dev/null +++ b/packages/stdint-windows/stdint-windows.0.5.0/descr @@ -0,0 +1,9 @@ +signed and unsigned integer types having specified widths +The stdint library provides signed and unsigned integer types of various +fixed widths: 8, 16, 24, 32, 40, 48, 56, 64 and 128 bit. +This interface is similar to Int32 and Int64 from the base library but provides +more functions and constants like arithmetic and bit-wise operations, constants +like maximum and minimum values, infix operators conversion to and from every +other integer type (including int, float and nativeint), parsing from and +conversion to readable strings (binary, octal, decimal, hexademical), +conversion to and from buffers in both big endian and little endian byte order. diff --git a/packages/stdint-windows/stdint-windows.0.5.0/opam b/packages/stdint-windows/stdint-windows.0.5.0/opam new file mode 100644 index 00000000..4deef59e --- /dev/null +++ b/packages/stdint-windows/stdint-windows.0.5.0/opam @@ -0,0 +1,31 @@ +opam-version: "1.2" +name: "stdint-windows" +version: "0.5.0" +maintainer: "Markus W. Weissmann " +authors: [ + "Andre Nathan " + "Jeff Shaw " + "Markus W. Weissmann " + "Florian Pichlmeier " +] +license: "MIT" +homepage: "https://github.com/andrenth/ocaml-stdint" +doc: "http://stdint.forge.ocamlcore.org/doc/" +dev-repo: "https://github.com/andrenth/ocaml-stdint.git" +bug-reports: "https://github.com/andrenth/ocaml-stdint/issues" +build: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" + "ocaml" "setup.ml" "-configure" "--prefix" "%{prefix}%/windows-sysroot" "--override" "ext_dll" ".dll"] + ["env" "OCAMLFIND_TOOLCHAIN=windows" "ocaml" "setup.ml" "-build"] +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" "ocaml" "setup.ml" "-install"] +remove: [ + ["ocamlfind" "-toolchain" "windows" "remove" "stdint"] +] +build-doc: [ "ocaml" "setup.ml" "-doc" ] +depends: [ + "ocaml-windows" + "base-bytes" + "ocamlfind" {>= "1.5"} + "ocamlbuild-windows" {build} +] diff --git a/packages/stdint-windows/stdint-windows.0.5.0/url b/packages/stdint-windows/stdint-windows.0.5.0/url new file mode 100644 index 00000000..e7af41a5 --- /dev/null +++ b/packages/stdint-windows/stdint-windows.0.5.0/url @@ -0,0 +1,2 @@ +http: "https://github.com/andrenth/ocaml-stdint/archive/0.5.0.tar.gz" +checksum: "fefa9d456e1a22edbb32b6c1848b1663" diff --git a/packages/ulex-windows/ulex-windows.1.2/descr b/packages/ulex-windows/ulex-windows.1.2/descr new file mode 100644 index 00000000..f5c55ba6 --- /dev/null +++ b/packages/ulex-windows/ulex-windows.1.2/descr @@ -0,0 +1 @@ +lexer generator for Unicode and OCaml diff --git a/packages/ulex-windows/ulex-windows.1.2/files/ulex-windows-1.2.patch b/packages/ulex-windows/ulex-windows.1.2/files/ulex-windows-1.2.patch new file mode 100644 index 00000000..6a4df459 --- /dev/null +++ b/packages/ulex-windows/ulex-windows.1.2/files/ulex-windows-1.2.patch @@ -0,0 +1,55 @@ +*** Makefile 2018-01-27 16:36:38.196086300 +0000 +--- Makefile 2018-01-27 16:38:49.103602300 +0000 +*************** +*** 1,5 **** + ALL=pa_ulex.cma ulexing.cma +! OCAMLBUILD=ocamlbuild -byte-plugin + + all:: + $(OCAMLBUILD) $(ALL) +--- 1,5 ---- + ALL=pa_ulex.cma ulexing.cma +! OCAMLBUILD=ocamlbuild -use-ocamlfind -toolchain windows -byte-plugin + + all:: + $(OCAMLBUILD) $(ALL) +*************** +*** 12,21 **** + cd _build && $(MAKE) -f ../Makefile realinstall + + realinstall: +! ocamlfind install ulex ../META $(wildcard $(MODS:=.mli) $(MODS:=.cmi) $(MODS:=.cmx) pa_ulex.cma ulexing.a ulexing.cma ulexing.cmxa) + + uninstall: +! ocamlfind remove ulex + + clean: + $(OCAMLBUILD) -clean +--- 12,21 ---- + cd _build && $(MAKE) -f ../Makefile realinstall + + realinstall: +! ocamlfind -toolchain windows install ulex ../META $(wildcard $(MODS:=.mli) $(MODS:=.cmi) $(MODS:=.cmx) pa_ulex.cma ulexing.a ulexing.cma ulexing.cmxa) + + uninstall: +! ocamlfind -toolchain windows remove ulex + + clean: + $(OCAMLBUILD) -clean +*************** +*** 25,31 **** + camlp4o -printer ocaml ./_build/pa_ulex.cma test.ml + + run_test: +! ocamlbuild test.byte + ./test.byte + + custom_ulexing.byte: +--- 25,31 ---- + camlp4o -printer ocaml ./_build/pa_ulex.cma test.ml + + run_test: +! ocamlbuild -toolchain windows test.byte + ./test.byte + + custom_ulexing.byte: diff --git a/packages/ulex-windows/ulex-windows.1.2/opam b/packages/ulex-windows/ulex-windows.1.2/opam new file mode 100644 index 00000000..2d752663 --- /dev/null +++ b/packages/ulex-windows/ulex-windows.1.2/opam @@ -0,0 +1,17 @@ +opam-version: "1.2" +name: "ulex-windows" +version: "1.2" +maintainer: "whitequark@whitequark.org" +build: [ + [make] + [make "all.opt"] +] +install: ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"] +remove: [["ocamlfind" "-toolchain" "windows" "remove" "ulex"]] +depends: [ + "ocaml-windows" + "ocamlfind" + "camlp4" {build} + "ocamlbuild" {build} +] +patches: ["ulex-windows-1.2.patch"] diff --git a/packages/ulex-windows/ulex-windows.1.2/url b/packages/ulex-windows/ulex-windows.1.2/url new file mode 100644 index 00000000..debc908e --- /dev/null +++ b/packages/ulex-windows/ulex-windows.1.2/url @@ -0,0 +1,2 @@ +http: "https://github.com/whitequark/ulex/archive/v1.2.tar.gz" +checksum: "7d35f33514cda8ba0925afaba437177c" diff --git a/packages/visitors-windows/visitors-windows.20171124/descr b/packages/visitors-windows/visitors-windows.20171124/descr new file mode 100644 index 00000000..cc1b8e6d --- /dev/null +++ b/packages/visitors-windows/visitors-windows.20171124/descr @@ -0,0 +1,4 @@ +An OCaml syntax extension for generating visitor classes. +Annotating an algebraic data type definition with [@@deriving visitors { ... }] +causes visitor classes to be automatically generated. A visitor is an object +that knows how to traverse and transform a data structure. diff --git a/packages/visitors-windows/visitors-windows.20171124/files/visitors-windows.20171124.patch b/packages/visitors-windows/visitors-windows.20171124/files/visitors-windows.20171124.patch new file mode 100644 index 00000000..70caf441 --- /dev/null +++ b/packages/visitors-windows/visitors-windows.20171124/files/visitors-windows.20171124.patch @@ -0,0 +1,20 @@ +diff -crB visitors-20171124/src/Makefile visitors-20171124-mine/src/Makefile +*** src/Makefile 2018-01-29 21:59:47.228217500 +0000 +--- src/Makefile 2018-01-29 22:07:51.633929700 +0000 +*************** +*** 12,18 **** + VisitorsRuntime + + OCAMLBUILD := \ +! ocamlbuild \ + -use-ocamlfind \ + -classic-display \ + -plugin-tag 'package(cppo_ocamlbuild)' \ +--- 12,18 ---- + VisitorsRuntime + + OCAMLBUILD := \ +! ocamlbuild -toolchain windows\ + -use-ocamlfind \ + -classic-display \ + -plugin-tag 'package(cppo_ocamlbuild)' \ diff --git a/packages/visitors-windows/visitors-windows.20171124/opam b/packages/visitors-windows/visitors-windows.20171124/opam new file mode 100644 index 00000000..00fec0d3 --- /dev/null +++ b/packages/visitors-windows/visitors-windows.20171124/opam @@ -0,0 +1,30 @@ +opam-version: "1.2" +maintainer: "francois.pottier@inria.fr" +authors: [ + "François Pottier " +] +name: "visitors-windows" +version: "20171124" +homepage: "https://gitlab.inria.fr/fpottier/visitors" +dev-repo: "https://gitlab.inria.fr/fpottier/visitors.git" +bug-reports: "francois.pottier@inria.fr" +build: [ + [make] +] +install: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" make "install"] +] +remove: [ + ["env" "OCAMLFIND_TOOLCHAIN=windows" make "uninstall"] +] +depends: [ + "ocaml-windows" + "ocamlfind" + "ocamlbuild" {build} + "cppo_ocamlbuild-windows" {build} + "ppx_tools-windows" + "ppx_deriving-windows" {>= "4.0"} + "result-windows" +] +available: [ ocaml-version >= "4.02.2" ] +patches: ["visitors-windows.20171124.patch"] diff --git a/packages/visitors-windows/visitors-windows.20171124/url b/packages/visitors-windows/visitors-windows.20171124/url new file mode 100644 index 00000000..b313e7f1 --- /dev/null +++ b/packages/visitors-windows/visitors-windows.20171124/url @@ -0,0 +1,2 @@ +archive: "http://gallium.inria.fr/~fpottier/visitors/visitors-20171124.tar.gz" +checksum: "f6d0dd59edec99b476bdeafea816029a" diff --git a/packages/wasm-windows/wasm-windows.1.0/descr b/packages/wasm-windows/wasm-windows.1.0/descr new file mode 100644 index 00000000..ed7eb795 --- /dev/null +++ b/packages/wasm-windows/wasm-windows.1.0/descr @@ -0,0 +1 @@ +An OCaml library to read and write Web Assembly (wasm) files and manipulate their AST. diff --git a/packages/wasm-windows/wasm-windows.1.0/files/wasm-windows.1.0.patch b/packages/wasm-windows/wasm-windows.1.0/files/wasm-windows.1.0.patch new file mode 100644 index 00000000..3f1c8403 --- /dev/null +++ b/packages/wasm-windows/wasm-windows.1.0/files/wasm-windows.1.0.patch @@ -0,0 +1,47 @@ +diff -crB wasm-1.0/interpreter/Makefile wasm-1.0-mine/interpreter/Makefile +*** interpreter/Makefile 2017-10-18 11:52:50.000000000 +0100 +--- interpreter/Makefile 2018-01-30 20:15:42.490281600 +0000 +*************** +*** 20,26 **** + DIRS = util syntax binary text valid runtime exec script host main + LIBS = bigarray + FLAGS = -cflags '-w +a-4-27-42-44-45 -warn-error +a' +! OCB = ocamlbuild $(FLAGS) $(DIRS:%=-I %) $(LIBS:%=-libs %) + JS = # set to JS shell command to run JS tests + + +--- 20,26 ---- + DIRS = util syntax binary text valid runtime exec script host main + LIBS = bigarray + FLAGS = -cflags '-w +a-4-27-42-44-45 -warn-error +a' +! OCB = ocamlbuild -toolchain windows -use-ocamlfind $(FLAGS) $(DIRS:%=-I %) $(LIBS:%=-libs %) + JS = # set to JS shell command to run JS tests + + +*************** +*** 147,158 **** + check: + # Check that we can find all relevant libraries + # when using ocamlfind +! ocamlfind query $(LIBS) + + install: _build/$(LIB).cmx _build/$(LIB).cmo +! ocamlfind install wasm meta/findlib/META _build/wasm.o \ + $(wildcard _build/$(LIB).cm*) \ + $(wildcard $(DIRS:%=%/*.mli)) + + uninstall: +! ocamlfind remove wasm +--- 147,158 ---- + check: + # Check that we can find all relevant libraries + # when using ocamlfind +! ocamlfind -toolchain windows query $(LIBS) + + install: _build/$(LIB).cmx _build/$(LIB).cmo +! ocamlfind -toolchain windows install wasm meta/findlib/META _build/wasm.o \ + $(wildcard _build/$(LIB).cm*) \ + $(wildcard $(DIRS:%=%/*.mli)) + + uninstall: +! ocamlfind -toolchain windows remove wasm diff --git a/packages/wasm-windows/wasm-windows.1.0/opam b/packages/wasm-windows/wasm-windows.1.0/opam new file mode 100644 index 00000000..1df10ab0 --- /dev/null +++ b/packages/wasm-windows/wasm-windows.1.0/opam @@ -0,0 +1,21 @@ +opam-version: "1.2" +maintainer: "Jonathan Protzenko " +authors: "Andreas Rossberg " +name: "wasm-windows" +version: "1.0" +homepage: "https://github.com/WebAssembly/spec" +bug-reports: "https://github.com/WebAssembly/spec/issues" +license: "Apache-2.0" +dev-repo: "https://github.com/WebAssembly/spec.git" +build: [ + [make "-C" "interpreter" "opt" "unopt"] +] +install: [make "-C" "interpreter" "install"] +remove: [make "-C" "interpreter" "uninstall"] +depends: [ + "ocaml-windows" + "ocamlfind" {build} + "ocamlbuild-windows" {build} +] +available: [ ocaml-version >= "4.02.3" ] +patches: ["wasm-windows.1.0.patch"] diff --git a/packages/wasm-windows/wasm-windows.1.0/url b/packages/wasm-windows/wasm-windows.1.0/url new file mode 100644 index 00000000..24cd064d --- /dev/null +++ b/packages/wasm-windows/wasm-windows.1.0/url @@ -0,0 +1,2 @@ +archive: "https://github.com/WebAssembly/spec/archive/v1.0.zip" +checksum: "82d4cc7c67ae32a6785268a1cdddd973" diff --git a/packages/zarith-windows/zarith-windows.1.7/descr b/packages/zarith-windows/zarith-windows.1.7/descr new file mode 100644 index 00000000..0eb288ab --- /dev/null +++ b/packages/zarith-windows/zarith-windows.1.7/descr @@ -0,0 +1,5 @@ +Implements arithmetic and logical operations over arbitrary-precision integers +The Zarith library implements arithmetic and logical operations over +arbitrary-precision integers. It uses GMP to efficiently implement +arithmetic over big integers. Small integers are represented as Caml +unboxed integers, for speed and space economy. diff --git a/packages/zarith-windows/zarith-windows.1.7/files/Makefile b/packages/zarith-windows/zarith-windows.1.7/files/Makefile new file mode 100644 index 00000000..1d11e134 --- /dev/null +++ b/packages/zarith-windows/zarith-windows.1.7/files/Makefile @@ -0,0 +1,27 @@ +# Handcrafted by CM Wintersteiger + +CC=x86_64-w64-mingw32-gcc +OCAMLC=ocamlfind -toolchain windows ocamlc +OCAMLOPT=ocamlfind -toolchain windows ocamlopt +OCAMLDEP=ocamlfind -toolchain windows ocamldep +OCAMLMKLIB=ocamlfind -toolchain windows ocamlmklib -lgmp +OCAMLDOC=ocamlfind -toolchain windows ocamldoc +OCAMLFLAGS= +EXEC_SUFFIX= +DLL_SUFFIX=.so +OCAMLOPTFLAGS= +OCAMLINC= +CFLAGS=-DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_COFF -O3 -Wall -Wextra -I gmp-6.1.2 +ASFLAGS=-DZ_OCAML_HASH -DZ_OCAML_COMPARE_EXT -DHAS_GMP -DZ_COFF +LIBS= +ARCH=x86_64_mingw64 +INSTALLDIR=`ocamlfind -toolchain windows printconf destdir` +AR=ar +INSTALL=install +OCAMLFIND=ocamlfind -toolchain windows +INSTMETH=findlib +OBJSUFFIX=o +HASOCAMLOPT=yes +HASDYNLINK=no + +include project.mak diff --git a/packages/zarith-windows/zarith-windows.1.7/files/Zarith-release-1.7.patch b/packages/zarith-windows/zarith-windows.1.7/files/Zarith-release-1.7.patch new file mode 100644 index 00000000..7a82a4b1 --- /dev/null +++ b/packages/zarith-windows/zarith-windows.1.7/files/Zarith-release-1.7.patch @@ -0,0 +1,156 @@ +--- ./caml_z_x86_64_mingw64.S ++++ ./caml_z_x86_64_mingw64.S +@@ -21,9 +21,9 @@ + + + /* makes the stack non-executable. */ ++#if defined __ELF__ && defined __linux__ + .section .note.GNU-stack,"",@progbits +- +- ++#endif + /* helper functions */ + /* **************** */ + +--- ./configure ++++ ./configure +@@ -22,7 +22,24 @@ + gmp='auto' + perf='no' + +-ar='ar' ++#ar='ar' ++ar_help=$(ocamlc -config | awk -F '[\t \r]+' '/^system/ {print $2}') ++case "$ar_help" in ++ *mingw64*) ++ if which x86_64-w64-mingw32-ar >/dev/null 2>&1 ; then ++ ar=x86_64-w64-mingw32-ar ++ fi ++ ;; ++ *mingw*) ++ if which i686-w64-mingw32-ar >/dev/null 2>&1 ; then ++ ar=i686-w64-mingw32-ar ++ fi ++ ;; ++ *) ++ ar='ar' ++ ;; ++esac ++ + ocaml='ocaml' + ocamlc='ocamlc' + ocamlopt='ocamlopt' +@@ -204,13 +221,32 @@ + searchbinreq "$CC" + cc="$CC" + ccopt="$CFLAGS" +-elif ! searchbin 'gcc'; then ++else ++ cc= ++ case "$system_help" in ++ *mingw64*) ++ if which x86_64-w64-mingw32-gcc >/dev/null 2>&1 ; then ++ cc=x86_64-w64-mingw32-gcc ++ ccopt="-O3 -Wall -Wextra $CFLAGS" ++ fi ++ ;; ++ *mingw*) ++ if which i686-w64-mingw32-gcc >/dev/null 2>&1 ; then ++ cc=i686-w64-mingw32-gcc ++ ccopt="-O3 -Wall -Wextra $CFLAGS" ++ fi ++ ;; ++ esac ++ if [ -z "$cc" ]; then ++ if ! searchbin 'gcc'; then + cc='gcc' + ccopt="-O3 -Wall -Wextra $CFLAGS" +-else ++ else + searchbinreq 'cc' + cc='cc' + ccopt="-O3 -Wall -Wextra $CFLAGS" ++ fi ++ fi + fi + + # optional native-code generation +@@ -234,7 +270,7 @@ + + # directories + +-if test "$ocamllibdir" = "auto"; then ocamllibdir=`ocamlc -where`; fi ++if test "$ocamllibdir" = "auto"; then ocamllibdir=`ocamlc -where | tr -d '\r'`; fi + + # fails on Cygwin: + # if test ! -f "$ocamllibdir/caml/mlvalues.h" +@@ -261,7 +297,7 @@ + if test $? -eq 1 -a $ocamlfind != "no"; then + instmeth='findlib' + if test "$installdir" = "auto" +- then installdir=`ocamlfind printconf destdir`; fi ++ then installdir=`ocamlfind printconf destdir | tr -d '\r'`; fi + else + searchbin install + if test $? -eq 1; then instmeth='install' +@@ -298,7 +334,7 @@ + i486-*linux-gnu|i686-*linux-gnu|i486-kfreebsd-gnu) + ccdef="-DZ_ELF -DZ_DOT_LABEL_PREFIX $ccdef" + arch='i686';; +- i686-*cygwin) ++ i686-*cygwin|x86_64-*cygwin) + if test "x$wordsize" = "x64"; then + ccdef="-DZ_COFF $ccdef" + arch='x86_64_mingw64' +@@ -386,6 +422,20 @@ + ;; + esac + ++exec_suffix='' ++so_suffix='.so' ++systype=`uname -s` ++case "$systype" in ++ CYGWIN*) ++ exec_suffix='.exe' ++ so_suffix='.dll' ++ ;; ++ MINGW*) ++ exec_suffix='.exe' ++ so_suffix='.dll' ++ ;; ++esac ++ + # dump Makefile + + cat > Makefile <" +authors: [ + "Antoine Miné" + "Xavier Leroy" + "Pascal Cuoq" +] +homepage: "https://github.com/ocaml/Zarith" +bug-reports: "https://github.com/ocaml/Zarith/issues" +dev-repo: "https://github.com/ocaml/Zarith.git" +build: [ + ["wget" "https://gmplib.org/download/gmp/gmp-6.1.2.tar.bz2"] + ["bzip2" "-d" "gmp-6.1.2.tar.bz2"] + ["tar" "xf" "gmp-6.1.2.tar"] + ["bash" "-c" "pushd gmp-6.1.2 ; ./configure --host=x86_64-w64-mingw32 --enable-static --disable-shared ; popd"] + [make "-C" "gmp-6.1.2" "-j" jobs] + [make] +] +install: [ + make "install"] +remove: ["ocamlfind" "-toolchain" "windows" "remove" "zarith"] +depends: [ + "ocaml-windows" + "ocamlfind" + "conf-gmp" + "conf-perl" {build} +] +patches: ["Zarith-release-1.7.patch" "Zarith-release-1.7.windows.patch"] diff --git a/packages/zarith-windows/zarith-windows.1.7/url b/packages/zarith-windows/zarith-windows.1.7/url new file mode 100644 index 00000000..73e5c14b --- /dev/null +++ b/packages/zarith-windows/zarith-windows.1.7/url @@ -0,0 +1,2 @@ +archive: "https://github.com/ocaml/Zarith/archive/release-1.7.tar.gz" +checksum: "80944e2755ebb848451a77dc2ad0651b"