| 25 | build.target build-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 | #} |