[Haskell-cafe] Hackage -> MacPorts?
dons at galois.com
Wed Sep 3 16:57:53 EDT 2008
> On Wed, 2008-09-03 at 13:14 -0700, John MacFarlane wrote:
> > It would be great if there were an automated or semi-automated way
> > of generating a MacPorts Portfile from a HackageDB package, along
> > the lines of dons' cabal2arch. Has anyone been working on such a thing?
> > And, are any haskell-cafe readers MacPorts committers?
> Whoever starts on this should not start from scratch. We now have
> several of these tools so there's lots of code to look at but ideally we
> should be sharing more code.
It seems the front end of cabal2arch -- general parsing and processing
of .cabal files, would be reusable in any tool.
Parsed cabal file
Normalised for Arch
Translated into ArchPkg ADT
instance Pretty ArchPkg
foo.tar.gz native Arch package.
You just have to define a data structure for the target output, and a
pretty printer instance, and any platform specific dep differences.
More information about the Haskell-Cafe