# $Id: Portfile 85182 2011-10-10 20:27:15Z snc@macports.org $

PortSystem      1.0
PortGroup       haskell 1.0

haskell.setup   derive 2.3.0
revision        2
license         BSD
platforms       darwin
categories      devel
maintainers     nomaintainer
description     A program and library to derive instances for data types

long_description \
    Data.Derive is a library and a tool for deriving instances for Haskell \
    programs. It is designed to work with custom derivations, SYB and Template \
    Haskell mechanisms. The tool requires GHC, but the generated code is \
    portable to all compilers. We see this tool as a competitor to DrIFT.

checksums       md5     483e9c45d06cb6145ee70b8bd7f27ff6 \
                sha1    84ffa0bf85aa39b458b280f8fbe3839689240910 \
                rmd160  fb1356feb76ff1dd5da4af8e59873369e1b7b983

post-patch {
    reinplace {s/uniplate == 1\.4/uniplate == 1\.5/} \
        ${worksrcpath}/derive.cabal
}

depends_build-append \
    port:hs-haskell-src-exts-1.6 \
    port:hs-uniplate

configure.args-append \
    --docdir=${prefix}/share/doc/${name}

universal_variant no
