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

name                lhs2tex
version             1.25
revision            0
license             GPL-2+
maintainers         nomaintainer
platforms           darwin
categories          textproc tex haskell

description         Preprocessor for typesetting Haskell sources with LaTeX
long_description    {*}${description}

homepage            https://github.com/kosmikus/lhs2tex

checksums           rmd160  320a89b507e4328d071c32b384d3daba9b507d1a \
                    sha256  d263232264f1d8ab62e39f15a6dd7a7ce644117f6615dd43c3afa957cd37c631 \
                    size    891949

installs_libs       no

variant stack \
    description {Use stack to build.} {}

if { [variant_isset "stack"] } {
    PortGroup       haskell_stack 1.0
} else {
    PortGroup       haskell_cabal 1.0

    depends_build-append \
                    port:cpphs \
                    port:texlive-basic \
                    port:texlive-latex \
                    port:texlive-latex-extra \
                    port:texlive-latex-recommended \
                    port:texlive-math-science \
                    port:texlive-plain-generic
}
