#24405: pandoc-1.2.1 build failure --------------------------------+------------------------------------------- Reporter: agladysh@… | Owner: jgm@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.8.2 Keywords: | Port: pandoc --------------------------------+------------------------------------------- Comment(by jgm@…): Replying to [comment:5 jgm@…]:
Replying to [comment:4 Damien.Pollet@…]:
Yes, I just had a look and it seems the major problem is the build system changed (no more makefile), so just bumping the version number is not enough. I'd have a look, but I'm just a dabbler with Haskell and pandoc, and have other priorities currently…
pandoc 1.5.1.1 is a straightforward Cabal build - no Makefile. These stanzas from the darcs port should be a good basis, if you just want the port to install the executables. If you want the Haskell library installed too, then you'd need to carry over the 'register' stuff from the original port. {{{ configure { system "cd ${worksrcpath} && runhaskell Setup configure --ghc --prefix=${prefix}" } build { system "cd ${worksrcpath} && runhaskell Setup build" } destroot { system "cd ${worksrcpath} && runhaskell Setup copy --copy- prefix=${destroot}${prefix}" } }}} The only other difficulty for an up-to-date port would be producing ports of the new dependencies (zip-archive, texmath, maybe some others). These are all standard Cabalized libraries, so you could probably just modify something like http://trac.macports.org/browser/trunk/dports/devel/hs-bytestring- lexing/Portfile -- Ticket URL: <http://trac.macports.org/ticket/24405#comment:6> MacPorts <http://www.macports.org/> Ports system for Mac OS