# -*- 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

PortSystem          1.0
PortGroup           github 1.0
PortGroup           ocaml 1.1

name                ocaml-ulex
github.setup        whitequark ulex 1.3 v
github.tarball_from archive
revision            3
categories          ocaml devel textproc
license             BSD
maintainers         {landonf @landonf} openmaintainer

description         lexer generator for Unicode and OCaml
long_description    ulex is a lexer generator for Unicode and OCaml written by Alain Frisch.

checksums           rmd160  22139fb4fcf687597c8183537a4170f52b0fb4b5 \
                    sha256  3394fc482f58e8f787c99395eb47b727228416bead8a700555d499a26754f938 \
                    size    20453

patchfiles          patch-camlp5-8.diff

depends_lib         port:ocaml \
                    port:ocaml-findlib \
                    port:camlp5 \
                    port:ocaml-camlp-streams

depends_build       port:ocaml-ocamlbuild

use_configure       no

ocaml.use_findlib   yes

build.target        all.opt

# The Makefile passes DESTDIR directly as `-destdir` to ocamlfind install,
# so we must point it at the site-lib directory rather than the raw destroot.
destroot.destdir    DESTDIR=${destroot}${prefix}/lib/ocaml/site-lib
