Ticket #50416: Portfile

File Portfile, 1.7 KB (added by gorticus (Jason Mitchell), 8 years ago)
Line 
1# -*- 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
2# $Id$
3
4PortSystem          1.0
5PortGroup           haskell 1.0
6
7haskell.setup       pandoc-citeproc 0.6.0.1
8name                pandoc-citeproc
9revision            1
10checksums           rmd160  c1a7f9f591c52f7e97ae23e28cebcbc7054c9e9a \
11                    sha256  af696d7ffb83b6545263c0e69c2cda516e0ae81364c705a146c6bdfbb26c8617
12
13categories          textproc
14platforms           darwin
15license             BSD
16maintainers         nomaintainer
17
18description         Citeproc system for pandoc
19long_description    ${description}
20
21#
22depends_lib-append  port:hs-aeson \
23                    port:hs-aeson-pretty \
24                    port:hs-attoparsec \
25                    port:hs-bibutils \
26                    port:hs-data-default \
27                    port:hs-extensible-exceptions \
28                    port:hs-mtl \
29                    port:hs-pandoc-types \
30                    port:hs-parsec \
31                    port:hs-rfc5051 \
32                    port:hs-syb \
33                    port:hs-split \
34                    port:hs-tagsoup \
35                    port:hs-temporary \
36                    port:hs-text \
37                    port:hs-unordered-containers \
38                    port:hs-vector \
39                    port:hs-xml-conduit \
40                    port:hs-yaml \
41                    port:pandoc
42
43pre-configure {
44    # xml-conduit v1.2.6 and v1.3.0 differ only by dropping system-filepath,
45    # which is deprecated in favor of filepath, so modify .cabal to permit
46    # build with xml-conduit v1.3.0
47    reinplace -E {s/(xml-conduit >= 1.2 &&).*,/\1 <= 1.3.1,/} \
48        ${worksrcpath}/${name}.cabal
49}