Ticket #12591: Portfile.diff

File Portfile.diff, 2.2 KB (added by jgm@…, 17 years ago)
  • Portfile

    old new  
    1 # $Id: Portfile 28278 2007-08-27 18:43:20Z ryandesign@macports.org $
     1# $Id$
    22
    33PortSystem          1.0
    44
    55name                pandoc
    6 version             0.42
     6version             0.44
    77categories          textproc
    88maintainers         jgm@berkeley.edu
    99description         General markup converter
     
    1313    HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \
    1414    LaTeX, ConTeXt, DocBook, RTF, groff man pages, and S5 HTML slide shows.
    1515
    16 homepage            http://sophos.berkeley.edu/pandoc/
     16homepage            http://johnmacfarlane.net/pandoc/
    1717platforms           darwin
    1818master_sites        http://pandoc.googlecode.com/files/
    19 checksums           md5 e8c452fee346a57e82b24fbb2c801410
    20 depends_build       port:ghc
     19checksums           md5 3907e08f47e3aa8a8ded1ce742870a3b
     20depends_build       port:ghc port:haddock
    2121depends_lib         port:gmp
    2222
    2323use_configure       no
    2424build.args          PREFIX=${prefix}
     25build.target        build-all
     26
     27destroot            {
     28  cd ${worksrcpath}
     29  # This command installs the pandoc executable, the haskell libraries, and
     30  # the haddock library documentation:
     31  system "./setup copy --destdir=${destroot}"
     32  system "strip ${destroot}${prefix}/bin/pandoc"
     33  system "./setup register --gen-script"
     34  system "./setup unregister --gen-script"
     35  xinstall -d ${destroot}${prefix}/libexec/${name}-${version}
     36  xinstall -m 755 register.sh ${destroot}${prefix}/libexec/${name}-${version}
     37  xinstall -m 755 unregister.sh ${destroot}${prefix}/libexec/${name}-${version}
     38  xinstall -m 755 markdown2pdf html2markdown hsmarkdown \
     39    ${destroot}${prefix}/bin
     40  xinstall -d ${destroot}${prefix}/share/doc/${name}
     41  xinstall -m 644 README README.html COPYRIGHT BUGS \
     42    ${destroot}${prefix}/share/doc/${name}
     43  xinstall -m 644 -W man/man1 pandoc.1 hsmarkdown.1 markdown2pdf.1 \
     44    html2markdown.1 ${destroot}${prefix}/share/man/man1
     45}
     46 
     47post-activate       {
     48  # Register the library with the ghc package database:
     49  system "${prefix}/libexec/${name}-${version}/register.sh"
     50}
     51
     52#pre-deactivate     {
     53#  system "${prefix}/libexec/${name}-${version}/unregister.sh"
     54#}