git.iko.soy/typeable/pandoc
on master help sign in
Fixed macports Portfile:

+ Do installation manually rather than using Makefile's install-all. (There appears to be a problem with the Makefile's handling of DESTDIR.) + Note that the library must be registered in the activate phase, after the library files have been copied out of the destroot. Cabal generates a 'register.sh' script that will do this. git-svn-id: https://pandoc.googlecode.com/svn/trunk@1028 788f1e2b-df1e-0410-8736-df70ead52e1b

commit2b429e980e81c31bacbf2f2242a2c8a119a91743 authorfiddlosopher <fiddlosopher@788f1e2b-df1e-0410-8736-df70ead52e1b> dateTue 18 Sep 2007, 15:23 (19 years ago) parent87fb10a
1 file changed+29−1
macports/Portfile.in+29−1
macports/Portfile.in+29−1
@@ -23,4 +23,32 @@ depends_lib port:gmp
2323use_configure no
2424build.args PREFIX=${prefix}
2525build.target build-all
26−destroot.target install-all
26+
27+destroot {
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+
47+post-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+#}