On Mon, Jun 03, 2019 at 07:47:55PM -0700, Greg Steuck wrote: > I noticed the undeadly [story] about Python joining the cool kids > generating their ports with portgen(1). Superficially the language specific > packages in OpenBSD::PortGen::Port appear short enough to contemplate > adding support for Haskell. Should I try reviving my 15 year old Perl > skillz or is the problem harder than it looks? > > [story] http://undeadly.org/cgi?action=article;sid=20190603185210
If you have some perl skills that will help. What's most important though is knowing what a Haskell port's Makefile should look like. We also need an API that we can use to query for the distfile name[1] and a way to figure out the dependencies, preferably via some sort of API, but doing it by querying the package can also work. The actual language specific bits should be relatively simple, mostly just converting from the metadata we gather to the correct variables to put into the Makefile. I'm sure there will be some special problems to solve because of version numbers or some other thing that nobody can agree on, but it looks like https://hackage.haskell.org/api should work, although I can't figure out how to get it to give my JSON, although it says it will. I'm more than happy to help with any questions you have. [1] although if there is just a central repository for all dists with a standard layout, we can probably work with that. l8rZ, -- andrew - http://afresh1.com ($do || !$do) && undef($try) ; # Master of Perl, Yoda is. Hmmmm?