I need to automate installation of a multitude of Perl modules. Most of them are present in ports. But some modules are located in bundles, for example www/p5-HTML-Tree
prvides HTML::Element
, HTML::TreeBuilder
, etc.
Ideally, it should be a command line utility with the synax like:
install_from_ports CGI CGI::FormBuilder HTML::TreeBuilder ...
Do you have any suggestions?
Best Answer
Here's a lightly-tested solution:
Now, this won't detect modules installed by ports which don't have a pkg-plist but they're very much in the minority. There's only 58 out of 4188 p5-* ports on my system which don't have pkg-plist files.