On Wed, Dec 16, 2015 at 10:33:33PM +0300, Vadim Zhukov wrote:
> (some history)
> 
> During this summer the Jannis Tsaraias worked on the pkg_module, an
> automated port creation framework as a GSoC Project. The project
> succeeded, and Jannis stayed to maintain the code and accept patches
> from interested parties:
> 
> https://github.com/diethyl/pkg_module
> 
> (back to nowadays)
> 
> A few months went, and we're still at the same place. pkg_module
> proved to work by a few people already, and should be a nice addition
> for 5.9. So I want to move on and finally import it. I'm attaching the
> archive to be extracted under /usr/ports/infrastructure. After that
> just type something like "pkg_module ruby dbf" and see how easy it
> goes. :)
> 
> Personally I use it about once a month, saving a hour or two of manual
> work. In particular, I'm trying to reuse this code to make maintaining
> KDE Frameworks easier: doing things manually, I have to re-start
> porting a new version before finishing a previous one...
> 
> Any comments/suggestions/objections/okays?

Fwiw, i had a quick go at testing this because i wanted to play with
LastFM::Export, and it just did the right thing.

cd /tmp
git clone https://github.com/diethyl/pkg_module
cd pkg_module
perl -Ilib pkg_module p5 LastFM::Export

<snip> lots of installing stuff from cpan already in the portstree...

and it generated the 4 missing ports i needed:

/usr/ports/mystuff/cpan/p5-MooseX-StrictConstructor
/usr/ports/mystuff/cpan/p5-Net-LastFM
/usr/ports/mystuff/cpan/p5-Data-Stream-Bulk
/usr/ports/mystuff/cpan/p5-LastFM-Export

With all the correct runtime dependencies - only missing thing was
p5-Test-Pod being a TDEP of p5-Net-LastFM but afaik this isnt handled
yet by the tool.

(oh, and of course in all this, the most awesome thing is that
LastFM::Export actually works - plenty of ideas flowing now...)

Landry

Reply via email to