# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
distname findlib-${version}
maintainers {pmetzger @pmetzger} openmaintainer
description Objective Caml library management system
long_description The findlib library provides a scheme to manage reusable \
software components (packages), and includes tools that \
support this scheme. Packages are collections of OCaml \
modules for which metainformation can be stored. \
The packages are kept in the filesystem \
hierarchy, but with strict directory structure. \
The library contains functions to look the directory up \
that stores a package, to query metainformation about \
a package, and to retrieve dependency information \
about multiple packages. There is also a tool that \
allows the user to enter queries on the command-line. \
In order to simplify compilation and linkage, there \
are new frontends of the various OCaml compilers that \
can directly deal with packages.
homepage http://projects.camlcity.org/projects/findlib.html
master_sites http://download.camlcity.org/download/
checksums rmd160 ad543ea9c62bfe4ca20389a7764ba0b03a0b3a3a \
sha256 2b7b7d6d65bb0f3f8a2c51c63c02b0bcf1fea4c23513f866140dc7dc24fe27ad
livecheck.regex "findlib-(.*?).tar.gz"
# patch modified from https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-ml/findlib/files
# if labltk is updated, patchfile will have to remove labltk META file as well
patchfiles-append patch-meta.diff
depends_lib-append port:ocaml-camlp4
configure.args -bindir ${prefix}/bin \
-mandir ${prefix}/share/man \
-sitelib ${prefix}/lib/ocaml/site-lib
# `ocamlfind printconf destdir` returns nothing if the dir isn't in place
# but we know it's the same as our site-lib dir
set ocamlfind_destdir ${prefix}/lib/ocaml/site-lib/stublibs
destroot.keepdirs ${destroot}${ocamlfind_destdir}
destroot.env-append OCAMLFIND_DESTDIR=${destroot}${prefix}/lib/ocaml/site-lib