Changeset 75616


Ignore:
Timestamp:
Feb 1, 2011, 2:36:17 PM (9 years ago)
Author:
singingwolfboy@…
Message:

pandoc: took ownership, updated to 1.8.0.1, switched to haskell portgroup

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/textproc/pandoc/Portfile

    r75490 r75616  
    1 # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
    21# $Id$
    32
    4 PortSystem 1.0
     3PortSystem          1.0
     4PortGroup           haskell 1.0
    55
     6haskell.setup       pandoc 1.8.0.1
    67name                pandoc
    7 version             1.2.1
    88categories          textproc
    9 maintainers         nomaintainer
     9maintainers         singingwolfboy openmaintainer
    1010description         General markup converter
    1111long_description    \
    1212    Pandoc is a command-line tool for converting from one markup format \
    13     to another.  It can read markdown and (subsets of) reStructuredText, \
     13    to another. It can read markdown and (subsets of) reStructuredText, \
    1414    HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \
    1515    LaTeX, ConTeXt, DocBook, RTF, groff man pages, and S5 HTML slide shows.
    1616
    17 homepage            http://johnmacfarlane.net/pandoc/
     17homepage            http://johnmacfarlane.net/${name}/
    1818platforms           darwin
    19 master_sites        http://pandoc.googlecode.com/files/
    20 checksums           md5     b57900f883823d5b24029c4768aa2d12 \
    21                     sha1    c567cdd45ff1501293308d67690876bf06ea9091 \
    22                     rmd160  a969daeddb2ab16ec58e2a1c09e91d164e3942a6
    23 depends_build       port:ghc port:hs-haddock port:hs-zip-archive port:hs-utf8-string
     19checksums           md5     e96187b08a585f827ca21aa6e7e375d3 \
     20                    sha1    ec0d29688bd9cd9500b2d7170c497d8782328449 \
     21                    rmd160  e26a1ecc9fc4d7a905a07060eba2ad9e62501e2f
     22
     23depends_build-append \
     24    port:hs-haddock port:hs-zip-archive port:hs-utf8-string port:hs-HTTP \
     25    port:hs-texmath port:hs-xml port:hs-pandoc-types port:hs-dlist \
     26    port:hs-citeproc port:hs-tagsoup
     27   
    2428depends_lib         port:gmp
    2529
    26 use_configure       no
    27 build.args          PREFIX=${prefix} GHC=${prefix}/bin/ghc GHC_PKG=${prefix}/bin/ghc-pkg
    28 build.target        build-all
    29 
    30 test.run            yes
    31 
    32 destroot            {
    33   # install pandoc executable, libraries, and library documentation:
    34   system "(cd ${worksrcpath}; ./setup copy --destdir=${destroot})"
    35   # strip the pandoc binary:
    36   system "strip ${destroot}${prefix}/bin/pandoc"
    37   # create scripts to register libraries in post-activate phase:
    38   system "(cd ${worksrcpath}; ./setup register --gen-script)"
    39   system "(cd ${worksrcpath}; ./setup unregister --gen-script)"
    40   # install register/unregister scripts:
    41   xinstall -d ${destroot}${prefix}/libexec/${name}-${version}
    42   xinstall -m 755 ${worksrcpath}/register.sh \
    43     ${destroot}${prefix}/libexec/${name}-${version}
    44   xinstall -m 755 ${worksrcpath}/unregister.sh \
    45     ${destroot}${prefix}/libexec/${name}-${version}
    46   # install shell scripts:
    47   xinstall -m 755 -W ${worksrcpath} html2markdown hsmarkdown markdown2pdf \
    48     ${destroot}${prefix}/bin
    49   # install user documentation and man pages:
    50   xinstall -d ${destroot}${prefix}/share/doc/${name}
    51   xinstall -m 644 -W ${worksrcpath} README README.html COPYRIGHT BUGS \
    52     ${destroot}${prefix}/share/doc/${name}
    53   xinstall -m 644 -W ${worksrcpath}/man/man1 pandoc.1 hsmarkdown.1 \
    54     markdown2pdf.1 html2markdown.1 ${destroot}${prefix}/share/man/man1
    55 }
    56  
    57 post-activate       {
    58   # Register the library with the ghc package database:
    59   system "${prefix}/libexec/${name}-${version}/register.sh"
    60 }
    61 
    62 pre-deactivate     {
    63   system "${prefix}/libexec/${name}-${version}/unregister.sh"
    64 }
     30test.run                yes
Note: See TracChangeset for help on using the changeset viewer.