source: trunk/dports/textproc/pandoc/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4
5name                pandoc
6version             0.46
7revision            1
8categories          textproc
9maintainers         berkeley.edu:jgm
10description         General markup converter
11long_description    \
12    Pandoc is a command-line tool for converting from one markup format \
13    to another.  It can read markdown and (subsets of) reStructuredText, \
14    HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \
15    LaTeX, ConTeXt, DocBook, RTF, groff man pages, and S5 HTML slide shows.
16
17homepage            http://johnmacfarlane.net/pandoc/
18platforms           darwin
19master_sites        http://pandoc.googlecode.com/files/
20checksums           md5 9a92a800678767393adab6eb1b69c04b
21depends_build       port:ghc port:haddock
22depends_lib         port:gmp
23patchfiles          patch-Text-Pandoc-Definition.hs.diff
24
25use_configure       no
26build.args          PREFIX=${prefix} GHC=${prefix}/bin/ghc GHC_PKG=${prefix}/bin/ghc-pkg
27build.target        build-all
28
29test.run            yes
30
31destroot            {
32  # install pandoc executable, libraries, and library documentation:
33  system "(cd ${worksrcpath}; ./setup copy --destdir=${destroot})"
34  # strip the pandoc binary:
35  system "strip ${destroot}${prefix}/bin/pandoc"
36  # create scripts to register libraries in post-activate phase:
37  system "(cd ${worksrcpath}; ./setup register --gen-script)"
38  system "(cd ${worksrcpath}; ./setup unregister --gen-script)"
39  # install register/unregister scripts:
40  xinstall -d ${destroot}${prefix}/libexec/${name}-${version}
41  xinstall -m 755 ${worksrcpath}/register.sh \
42    ${destroot}${prefix}/libexec/${name}-${version}
43  xinstall -m 755 ${worksrcpath}/unregister.sh \
44    ${destroot}${prefix}/libexec/${name}-${version}
45  # install shell scripts:
46  xinstall -m 755 -W ${worksrcpath} html2markdown hsmarkdown markdown2pdf \
47    ${destroot}${prefix}/bin
48  # install user documentation and man pages:
49  xinstall -d ${destroot}${prefix}/share/doc/${name}
50  xinstall -m 644 -W ${worksrcpath} README README.html COPYRIGHT BUGS \
51    ${destroot}${prefix}/share/doc/${name}
52  xinstall -m 644 -W ${worksrcpath}/man/man1 pandoc.1 hsmarkdown.1 \
53    markdown2pdf.1 html2markdown.1 ${destroot}${prefix}/share/man/man1
54}
55 
56post-activate       {
57  # Register the library with the ghc package database:
58  system "${prefix}/libexec/${name}-${version}/register.sh"
59}
60
61#pre-deactivate     {
62#  system "${prefix}/libexec/${name}-${version}/unregister.sh"
63#}
Note: See TracBrowser for help on using the repository browser.