commit 433ddbe8ad02c21ca4d1e74dd7f2223fa0fc0a7c
parent 74eb9675233b6c00b4b1551d99d8dfbe2dd14c9e
Author: Jan Pobrislo <ccx@te2000.cz>
Date: Wed, 22 Oct 2025 03:10:13 +0000
ocaml packages
Diffstat:
10 files changed, 195 insertions(+), 4 deletions(-)
diff --git a/downloadlist.sha256 b/downloadlist.sha256
@@ -75,3 +75,5 @@ f1fb20805a22dd75a137d72704a370e7789cf6bdf63948e6817d1c226c141261 22699 https://e
4e1279ff0ef80c862eaa5207a77020d741e89ef94f0e4a92a37c4188dbf08256 199103 https://github.com/ocaml/ocamlbuild/archive/0.14.1.tar.gz
ffab41b0b0f65ade305043205229a7649591195cbe86e24f2c254e9dc5b14a34 10970 https://github.com/ocaml-dune/csexp/archive/1.5.1.tar.gz
e564d5d1ca157314ba5fd64b4e89fa12c6cba8efee3becf6d09d7d9dda21ac5b 54920 https://ocaml.janestreet.com/ocaml-core/v0.16/files/sexplib-v0.16.0.tar.gz
+86dba26468194512f789f2fb709063515a9cb4e5c4461c021c239a369590701d 22101 https://ocaml.janestreet.com/ocaml-core/v0.16/files/sexplib0-v0.16.0.tar.gz
+2df996279ae16b606db5ff5879f93dbfade0898db9f1a3e82f7f845faa2930a2 271246 http://download.camlcity.org/download/findlib-1.9.6.tar.gz
diff --git a/templates/pkg/ocaml-findlib b/templates/pkg/ocaml-findlib
@@ -0,0 +1,28 @@
+{%- set pkg_version="1.9.6" -%}
+{%- set src_dir="findlib-"+pkg_version -%}
+{% extends "generic" %}
+{% block package_deps -%}
+#+{{pkg_install_name("busybox-diffutils")}}
+#+{{pkg_install_name("musl-cross-make")}}
+#+{{pkg_install_name("gnu-make")}}
+#+{{pkg_install_name("m4")}}
+#+{{pkg_install_name("ocaml")}}
+#@untar:-z:{{downloads["findlib-" + assertion(pkg_version) + ".tar.gz"]}}:.
+{% endblock %}
+{%- block configure %}
+./configure \
+ -prefix "$prefix" \
+ -bindir "$prefix/bin" \
+ -mandir "$prefix/man" \
+ -sitelib "$prefix/library.ocaml" \
+ -config "$prefix/etc/findlib.conf" \
+ -no-camlp4
+
+{% endblock %}
+{% block check -%}
+check_static command/ocamlfind
+
+{% endblock %}
+{% block genlinks_begin %}
+ x["./command/ocamlfind"]=1
+{% endblock %}
diff --git a/templates/pkg/ocamlbuild b/templates/pkg/ocamlbuild
@@ -0,0 +1,25 @@
+{%- set pkg_version="0.14.1" -%}
+{% extends "generic" %}
+{% block package_deps -%}
+#+{{pkg_install_name("busybox-diffutils")}}
+#+{{pkg_install_name("musl-cross-make")}}
+#+{{pkg_install_name("gnu-make")}}
+#+{{pkg_install_name("m4")}}
+#+{{pkg_install_name("ocaml")}}
+#@untar:-z:sha256:4e1279ff0ef80c862eaa5207a77020d741e89ef94f0e4a92a37c4188dbf08256:.
+{% endblock %}
+{%- block configure %}
+make configure \
+ OCAML_NATIVE=true \
+ OCAMLBUILD_BINDIR="$prefix/command" \
+ OCAMLBUILD_LIBDIR="$prefix/library.ocaml"
+
+{% endblock %}
+{% block check -%}
+check_static command/ocamlbuild
+
+{% endblock %}
+{% block genlinks_begin %}
+ x["./command/ocamlbuild"]=1
+{% endblock %}
+
diff --git a/templates/pkg/wip.environment b/templates/pkg/wip.environment
@@ -1,2 +1,4 @@
{{ shebang }}
#+{{pkg_install_name("ocaml")}}
+#+{{pkg_install_name("ocamlbuild")}}
+#+{{pkg_install_name("ocaml-findlib")}}
diff --git a/variants/ccx-x86_64/ocaml-findlib b/variants/ccx-x86_64/ocaml-findlib
@@ -0,0 +1,34 @@
+#!/usr/bin/env pthbs-build
+#+busybox-diffutils.1aa76d52d9aa0d4541fde1ed8cac30606ca4ec9985ce43454ffc7cd60ab1a0be
+#+musl-cross-make.1047ba507930d3bb4139073c872c1e856d7d9f4c542bb22dd0af05422d475054
+#+gnu-make.55eb259e0f312d10457a458d9323e532dda3d8a934982a307b5298d7711bb299
+#+m4.eb034af582dcf74d192ecfbb596c3ad79b44ba2ed8fc6764f59e6491af2ce757
+#+ocaml.b0526442df83b45ad9c3cf412eb7efa6b5497de16ecf317d1e92fe492b472798
+#@untar:-z:sha256:2df996279ae16b606db5ff5879f93dbfade0898db9f1a3e82f7f845faa2930a2:.
+
+
+# - build script start -
+prefix=/home/ccx/versions/$pthbs_package
+dest=${pthbs_destdir%/}${prefix}
+cd 'findlib-1.9.6'
+
+
+./configure \
+ -prefix "$prefix" \
+ -bindir "$prefix/bin" \
+ -mandir "$prefix/man" \
+ -sitelib "$prefix/library.ocaml" \
+ -config "$prefix/etc/findlib.conf" \
+ -no-camlp4
+
+
+make -j${JOBS:-1} -l$((1+${JOBS:-1}))
+
+make DESTDIR="$pthbs_destdir" install
+
+
+
+check_static command/ocamlfind
+
+
+
diff --git a/variants/ccx-x86_64/ocamlbuild b/variants/ccx-x86_64/ocamlbuild
@@ -0,0 +1,31 @@
+#!/usr/bin/env pthbs-build
+#+busybox-diffutils.1aa76d52d9aa0d4541fde1ed8cac30606ca4ec9985ce43454ffc7cd60ab1a0be
+#+musl-cross-make.1047ba507930d3bb4139073c872c1e856d7d9f4c542bb22dd0af05422d475054
+#+gnu-make.55eb259e0f312d10457a458d9323e532dda3d8a934982a307b5298d7711bb299
+#+m4.eb034af582dcf74d192ecfbb596c3ad79b44ba2ed8fc6764f59e6491af2ce757
+#+ocaml.b0526442df83b45ad9c3cf412eb7efa6b5497de16ecf317d1e92fe492b472798
+#@untar:-z:sha256:4e1279ff0ef80c862eaa5207a77020d741e89ef94f0e4a92a37c4188dbf08256:.
+
+
+# - build script start -
+prefix=/home/ccx/versions/$pthbs_package
+dest=${pthbs_destdir%/}${prefix}
+cd 'ocamlbuild-0.14.1'
+
+
+make configure \
+ OCAML_NATIVE=true \
+ OCAMLBUILD_BINDIR="$prefix/command" \
+ OCAMLBUILD_LIBDIR="$prefix/library.ocaml"
+
+
+make -j${JOBS:-1} -l$((1+${JOBS:-1}))
+
+make DESTDIR="$pthbs_destdir" install
+
+
+
+check_static command/ocamlbuild
+
+
+
diff --git a/variants/ccx-x86_64/wip.environment b/variants/ccx-x86_64/wip.environment
@@ -1,2 +1,4 @@
#!/usr/bin/env pthbs-build
-#+ocaml.b0526442df83b45ad9c3cf412eb7efa6b5497de16ecf317d1e92fe492b472798-
\ No newline at end of file
+#+ocaml.b0526442df83b45ad9c3cf412eb7efa6b5497de16ecf317d1e92fe492b472798
+#+ocamlbuild.9a5e6e9c73510c27e39a99bf30448926166acac11c079b70bbffee9628e2699a
+#+ocaml-findlib.9eb5097bb7a1e3080bd3c204a046d140b95946885be87a279e4b050f338a4859+
\ No newline at end of file
diff --git a/variants/root-x86_64/ocaml-findlib b/variants/root-x86_64/ocaml-findlib
@@ -0,0 +1,34 @@
+#!/usr/bin/env pthbs-build
+#+busybox-diffutils.7c9e0bee30fb6332bf7fa171c534c15d5d7d4fb0702c8f3cad054b4c34cd52ab
+#+musl-cross-make.73b05cc53eb90f3881270d6a6cb7fe89b148029d6233f164737a24b2093d0d81
+#+gnu-make.e1f59e1987776008a08c9fe7ff91402ed39981e46614e7f4846429b4c41a7da7
+#+m4.01cbc5fe99a3badc83fa6f13499d0fd5a212ca9624d3b6e4fe26a9ec41a6133c
+#+ocaml.d0a50294cecef01ed0f7ed6ad4704e5179c255b6e894537fe948f7b4ae8095dd
+#@untar:-z:sha256:2df996279ae16b606db5ff5879f93dbfade0898db9f1a3e82f7f845faa2930a2:.
+
+
+# - build script start -
+prefix=/versions/$pthbs_package
+dest=${pthbs_destdir%/}${prefix}
+cd 'findlib-1.9.6'
+
+
+./configure \
+ -prefix "$prefix" \
+ -bindir "$prefix/bin" \
+ -mandir "$prefix/man" \
+ -sitelib "$prefix/library.ocaml" \
+ -config "$prefix/etc/findlib.conf" \
+ -no-camlp4
+
+
+make -j${JOBS:-1} -l$((1+${JOBS:-1}))
+
+make DESTDIR="$pthbs_destdir" install
+
+
+
+check_static command/ocamlfind
+
+
+
diff --git a/variants/root-x86_64/ocamlbuild b/variants/root-x86_64/ocamlbuild
@@ -0,0 +1,31 @@
+#!/usr/bin/env pthbs-build
+#+busybox-diffutils.7c9e0bee30fb6332bf7fa171c534c15d5d7d4fb0702c8f3cad054b4c34cd52ab
+#+musl-cross-make.73b05cc53eb90f3881270d6a6cb7fe89b148029d6233f164737a24b2093d0d81
+#+gnu-make.e1f59e1987776008a08c9fe7ff91402ed39981e46614e7f4846429b4c41a7da7
+#+m4.01cbc5fe99a3badc83fa6f13499d0fd5a212ca9624d3b6e4fe26a9ec41a6133c
+#+ocaml.d0a50294cecef01ed0f7ed6ad4704e5179c255b6e894537fe948f7b4ae8095dd
+#@untar:-z:sha256:4e1279ff0ef80c862eaa5207a77020d741e89ef94f0e4a92a37c4188dbf08256:.
+
+
+# - build script start -
+prefix=/versions/$pthbs_package
+dest=${pthbs_destdir%/}${prefix}
+cd 'ocamlbuild-0.14.1'
+
+
+make configure \
+ OCAML_NATIVE=true \
+ OCAMLBUILD_BINDIR="$prefix/command" \
+ OCAMLBUILD_LIBDIR="$prefix/library.ocaml"
+
+
+make -j${JOBS:-1} -l$((1+${JOBS:-1}))
+
+make DESTDIR="$pthbs_destdir" install
+
+
+
+check_static command/ocamlbuild
+
+
+
diff --git a/variants/root-x86_64/wip.environment b/variants/root-x86_64/wip.environment
@@ -1,2 +1,4 @@
#!/usr/bin/env pthbs-build
-#+ocaml.d0a50294cecef01ed0f7ed6ad4704e5179c255b6e894537fe948f7b4ae8095dd-
\ No newline at end of file
+#+ocaml.d0a50294cecef01ed0f7ed6ad4704e5179c255b6e894537fe948f7b4ae8095dd
+#+ocamlbuild.4f0b9eb3fb5d9b427429be66f945876fc597c559d31aaac2e8ac266702737855
+#+ocaml-findlib.a7e7553cc0376d70ac470ae3676c0facb5eca28461950cde34887a341ec8b0a7+
\ No newline at end of file