port-idea script

| No Comments

If you are bored and think about making yet another CPAN module into a FreeBSD port, you might find this useful.

Step 1

Get yourself a local CPAN mirror. Don’t worry, you won’t need the whole deal, the most recent versions of every module will suffice. This boils down to just under 700 MB. It’ll take a while the first time around, but after that it’ll require less time than your regular /home/ncvs updates.

Install devel/p5-CPAN-Mini port, then run

minicpan -l ~/share/CPAN/ \
    -r ftp://ftp.funet.fi/pub/languages/perl/CPAN/ -p

Here ~/share/CPAN is a directory of your choosing. Similarly, choose a CPAN mirror closest to you instead of ftp.funet.fi.

Step 2

Install devel/p5-File-Random port. Then fetch this script, and modify the hard-coded path to CPAN.

Each time you run it, it will present you with some recent CPAN module that does not yet exist in the ports collection.

Please don’t forget to submit a PR. ;-)

Step 3

There is no step 3.

Leave a comment

About this Entry

This page contains a single entry by tobez published on October 13, 2005 9:28 PM.

Strange matter was the previous entry in this blog.

Bloglines keyboard shortcuts fix is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.