ocaml-findlib (1791B)
1 {%- import "package_sets" as ps -%} 2 {%- set pkg_version="1.9.8" -%} 3 {%- set src_dir="findlib-"+pkg_version -%} 4 {% extends "genlinks" %} 5 {%- do import_functions.add("check_dynamic") %} 6 {% block package_deps -%} 7 #+{{pkg_install_name("busybox-diffutils")}} 8 {{ ps.toolchain() }} 9 #+{{pkg_install_name("gnu-make")}} 10 #+{{pkg_install_name("m4")}} 11 #+{{pkg_install_name("netbsd-curses")}} 12 #+{{pkg_install_name("ocaml:dynlink")}} 13 #+{{pkg_install_name("ocamlbuild")}} 14 #@untar:-z:{{downloads["findlib-" + assertion(pkg_version) + ".tar.gz"]}}:. 15 {% endblock package_deps %} 16 {%- block configure %} 17 ./configure -h || true 18 ./configure \ 19 -bindir "$prefix/{{bindir}}" \ 20 -mandir "$prefix/{{mandir}}" \ 21 -sitelib "$prefix/{{ocamldir}}" \ 22 -config "$prefix/{{configdir}}/etc/findlib.conf" \ 23 -no-camlp4 24 25 {% endblock configure %} 26 {% block build -%} 27 make -j1 all opt 28 29 {% endblock build %} 30 {% block install -%} 31 # workaround `topfind` getting installed to stdlib directory, this is not configurable 32 stdlib="$pthbs_destdir{{pkg_install_dir("ocaml:dynlink")}}" 33 mkdir -p "${stdlib%/*}" 34 ln -s "$pthbs_package" "$stdlib" 35 make install prefix="$pthbs_destdir" 36 37 {% endblock install %} 38 {% block check -%} 39 check_dynamic command/ocamlfind 40 41 {% endblock check %} 42 {% block genlinks_begin %} 43 x["./{{bindir}}/ocamlfind"]=1 44 x["./{{ocamldir}}/findlib/topfind.mli"]=1 45 x["./{{ocamldir}}/findlib/topfind.cmi"]=1 46 x["./{{ocamldir}}/findlib/META"]=1 47 x["./{{ocamldir}}/topfind"]=1 48 # x["./{{ocamldir}}/bigarray/META"]=1 49 x["./{{ocamldir}}/bytes/META"]=1 50 # x["./{{ocamldir}}/compiler-libs/META"]=1 51 # x["./{{ocamldir}}/dynlink/META"]=1 52 # x["./{{ocamldir}}/ocamldoc/META"]=1 53 # x["./{{ocamldir}}/stdlib/META"]=1 54 # x["./{{ocamldir}}/str/META"]=1 55 # x["./{{ocamldir}}/threads/META"]=1 56 # x["./{{ocamldir}}/unix/META"]=1 57 {% endblock %}