Hi! A fix for MODPERL_BIN_ADJ, so it will catch up any "perl5", "perl5.12", "perl42.666" and so on.
It was requested to Vadim by me, and I'd like to have it committed 'cause I have an use for this feature. I'm looking for additional OKs... Ciao, David Index: mk/perl.port.mk =================================================================== RCS file: /cvs/ports/infrastructure/mk/perl.port.mk,v retrieving revision 1.22 diff -u -p -u -p -r1.22 perl.port.mk --- mk/perl.port.mk 6 May 2013 21:16:18 -0000 1.22 +++ mk/perl.port.mk 24 May 2013 14:24:43 -0000 @@ -10,8 +10,8 @@ SHARED_ONLY ?= No # set /usr/bin/perl for executable scripts MODPERL_BIN_ADJ = perl -pi \ - -e '$$. == 1 && s|^.*env perl([\s].*)?$$|\#!/usr/bin/perl$$1|;' \ - -e '$$. == 1 && s|^.*bin/perl([\s].*)?$$|\#!/usr/bin/perl$$1|;' \ + -e '$$. == 1 && s|^.*env perl([0-9.]*)([\s].*)?$$|\#!/usr/bin/perl$$2|;' \ + -e '$$. == 1 && s|^.*bin/perl([0-9.]*)([\s].*)?$$|\#!/usr/bin/perl$$2|;' \ -e 'close ARGV if eof;' MODPERL_ADJ_FILES ?=