@@ -1,65 +0,0 @@
1−# $Id$
2−
3−PortSystem 1.0
4−
5−name pandoc
6−version @VERSION@
7−categories textproc
8−maintainers jgm@berkeley.edu
9−description General markup converter
10−long_description \
11− Pandoc is a command-line tool for converting from one markup format \
12− to another. It can read markdown and (subsets of) reStructuredText, \
13− HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \
14− LaTeX, ConTeXt, DocBook XML, OpenDocument XML, ODT, RTF, Texinfo, \
15− MediaWiki markup, groff man, and S5 HTML slide shows.
16−
17−homepage http://johnmacfarlane.net/pandoc/
18−platforms darwin
19−master_sites http://pandoc.googlecode.com/files/
20−checksums md5 @TARBALLMD5SUM@
21−depends_build port:ghc port:haddock
22−depends_lib port:gmp
23−
24−use_configure no
25−build.args PREFIX=${prefix}
26−build.target build-all
27−
28−destroot {
29− # install pandoc executable, libraries, and library documentation:
30− system "(cd ${worksrcpath}; ./setup copy --destdir=${destroot})"
31− # strip the pandoc binary:
32− system "strip ${destroot}${prefix}/bin/pandoc"
33− # create scripts to register libraries in post-activate phase:
34− system "(cd ${worksrcpath}; ./setup register --gen-script)"
35− system "(cd ${worksrcpath}; ./setup unregister --gen-script)"
36− # install register/unregister scripts:
37− xinstall -d ${destroot}${prefix}/libexec/${name}-${version}
38− xinstall -m 755 ${worksrcpath}/register.sh \
39− ${destroot}${prefix}/libexec/${name}-${version}
40− xinstall -m 755 ${worksrcpath}/unregister.sh \
41− ${destroot}${prefix}/libexec/${name}-${version}
42− # install shell scripts:
43− xinstall -m 755 -W ${worksrcpath} html2markdown hsmarkdown markdown2pdf \
44− ${destroot}${prefix}/bin
45− # install data file:
46− xinstall -d ${destroot}${prefix}/share/${name}
47− xinstall -m 644 -W ${worksrcpath} odt-styles/reference.odt \
48− ${destroot}${prefix}/share/${name}
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 \
55− ${destroot}${prefix}/share/man/man1
56−}
57−
58−post-activate {
59− # Register the library with the ghc package database:
60− system "${prefix}/libexec/${name}-${version}/register.sh"
61−}
62−
63−#pre-deactivate {
64−# system "${prefix}/libexec/${name}-${version}/unregister.sh"
65−#}