[29630] trunk/dports/textproc/pandoc/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Wed Oct 3 22:25:55 PDT 2007
Revision: 29630
http://trac.macosforge.org/projects/macports/changeset/29630
Author: boeyms at macports.org
Date: 2007-10-03 22:25:55 -0700 (Wed, 03 Oct 2007)
Log Message:
-----------
pandoc: maintainer update to latest version.
Modified Paths:
--------------
trunk/dports/textproc/pandoc/Portfile
Modified: trunk/dports/textproc/pandoc/Portfile
===================================================================
--- trunk/dports/textproc/pandoc/Portfile 2007-10-03 19:43:48 UTC (rev 29629)
+++ trunk/dports/textproc/pandoc/Portfile 2007-10-04 05:25:55 UTC (rev 29630)
@@ -3,7 +3,7 @@
PortSystem 1.0
name pandoc
-version 0.42
+version 0.44
categories textproc
maintainers jgm at berkeley.edu
description General markup converter
@@ -13,12 +13,47 @@
HTML, and LaTeX, and it can write markdown, reStructuredText, HTML, \
LaTeX, ConTeXt, DocBook, RTF, groff man pages, and S5 HTML slide shows.
-homepage http://sophos.berkeley.edu/pandoc/
+homepage http://johnmacfarlane.net/pandoc/
platforms darwin
master_sites http://pandoc.googlecode.com/files/
-checksums md5 e8c452fee346a57e82b24fbb2c801410
-depends_build port:ghc
+checksums md5 3907e08f47e3aa8a8ded1ce742870a3b
+depends_build port:ghc port:haddock
depends_lib port:gmp
use_configure no
build.args PREFIX=${prefix}
+build.target build-all
+
+destroot {
+ # install pandoc executable, libraries, and library documentation:
+ system "(cd ${worksrcpath}; ./setup copy --destdir=${destroot})"
+ # strip the pandoc binary:
+ system "strip ${destroot}${prefix}/bin/pandoc"
+ # create scripts to register libraries in post-activate phase:
+ system "(cd ${worksrcpath}; ./setup register --gen-script)"
+ system "(cd ${worksrcpath}; ./setup unregister --gen-script)"
+ # install register/unregister scripts:
+ xinstall -d ${destroot}${prefix}/libexec/${name}-${version}
+ xinstall -m 755 ${worksrcpath}/register.sh \
+ ${destroot}${prefix}/libexec/${name}-${version}
+ xinstall -m 755 ${worksrcpath}/unregister.sh \
+ ${destroot}${prefix}/libexec/${name}-${version}
+ # install shell scripts:
+ xinstall -m 755 -W ${worksrcpath} html2markdown hsmarkdown markdown2pdf \
+ ${destroot}${prefix}/bin
+ # install user documentation and man pages:
+ xinstall -d ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath} README README.html COPYRIGHT BUGS \
+ ${destroot}${prefix}/share/doc/${name}
+ xinstall -m 644 -W ${worksrcpath}/man/man1 pandoc.1 hsmarkdown.1 \
+ markdown2pdf.1 html2markdown.1 ${destroot}${prefix}/share/man/man1
+}
+
+post-activate {
+ # Register the library with the ghc package database:
+ system "${prefix}/libexec/${name}-${version}/register.sh"
+}
+
+#pre-deactivate {
+# system "${prefix}/libexec/${name}-${version}/unregister.sh"
+#}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20071003/9b15ace5/attachment.html
More information about the macports-changes
mailing list