mrrl

Minimal Reliable Reproducible Linux
git clone https://ccx.te2000.cz/git/mrrl
Log | Files | Refs | Submodules | README

ocamlbuild (1090B)


      1 {%- import "package_sets" as ps -%}
      2 {%- set pkg_version="0.16.1" -%}
      3 {% extends "genlinks" %}
      4 {%- do import_functions.add("check_dynamic") %}
      5 {% block package_deps -%}
      6 #+{{pkg_install_name("busybox-diffutils")}}
      7 {{ ps.toolchain() }}
      8 #+{{pkg_install_name("gnu-make")}}
      9 #+{{pkg_install_name("m4")}}
     10 #+{{pkg_install_name("ocaml:dynlink")}}
     11 #@untar:-z:sha256:2ba6857f2991b7f69368e8db818b163d31cf5a367f15f5953bf8f01a77b3d4fc:.
     12 {% endblock package_deps %}
     13 {%- block configure %}
     14 make configure \
     15 	PREFIX="$prefix" \
     16 	OCAML_NATIVE=true \
     17 	OCAMLBUILD_BINDIR="$prefix/{{bindir}}" \
     18 	OCAMLBUILD_LIBDIR="$prefix/{{ocamldir}}"
     19 
     20 {% endblock configure %}
     21 {% block install -%}
     22 # workaround ocamlbuild manpage getting installed to stdlib directory
     23 stdlib="$pthbs_destdir{{pkg_install_dir("ocaml:dynlink")}}"
     24 mkdir -p "${stdlib%/*}"
     25 ln -s "$pthbs_package" "$stdlib"
     26 
     27 {{ super() -}}
     28 {% endblock install %}
     29 {% block check -%}
     30 check_dynamic command/ocamlbuild
     31 
     32 {% endblock check %}
     33 {% block genlinks_begin %}
     34 	x["./{{bindir}}/ocamlbuild"]=1
     35 	x["./{{mandir}}/man1/ocamlbuild.1"]=1
     36 {% endblock genlinks_begin %}