Hi Matthias,

This is the next installment in my quest to make Hackage Haskell
executables trivial to add to ports. I added a new --openbsd mode to
cabal-bundler program in cabal-extras[1]. I also added a port of this
program to my ever growing stack of patches[2] (hacky as there's no
formal release).

In order to generate MODCABAL_MANIFEST, one needs to have cabal index
available (cabal v2-update) and run cabal-bundler from the package:

% cabal-bundler --openbsd pandoc-2.11.0.2
        Glob    0.10.1  0       \
... 119 skipped dependencies
        zlib    0.6.2.2 0       \

This output is directly pasted into the Makefile and the rest is fairly
mechanical. Full disclosure: pandoc port that I have was a tiny bit more
involved as I wanted to specify some non-default cabal flags.

I'm still looking for reviews and guidance on submitting this work
starting with cabal.port.mk[3].

Thanks
Greg

[1] https://github.com/phadej/cabal-extras
[2] 
https://github.com/blackgnezdo/ports/commit/c910cc07d19bda1d3a3c13533bd1bcac245f68b0
[3] 
https://github.com/blackgnezdo/ports/commit/a9eb68d666b9ec9c6860c8f368cfcbb09b52a9f2

Reply via email to