mirror of
https://git.freebsd.org/ports.git
synced 2025-05-20 19:13:27 -04:00
- Utilize SITE_PERL instead of raw PERL_VER or PERL_VERSION.
Approved by: kevlo@ (via IRC)
This commit is contained in:
parent
c86f37ff4d
commit
61b8c71a60
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=320738
2 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ LIBFILES= BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \
|
||||||
post-patch:
|
post-patch:
|
||||||
${REINPLACE_CMD} -e 's,#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/algotutor
|
${REINPLACE_CMD} -e 's,#!/usr/bin/perl,#!${PERL},' ${WRKSRC}/algotutor
|
||||||
${PERL} -pi -e "s'!!PREFIX!!'${PREFIX}'g" ${WRKSRC}/algotutor
|
${PERL} -pi -e "s'!!PREFIX!!'${PREFIX}'g" ${WRKSRC}/algotutor
|
||||||
${REINPLACE_CMD} -e 's,!!PERL_VER!!,${PERL_VER},' \
|
${REINPLACE_CMD} -e 's,!!SITE_PERL!!,${SITE_PERL},' \
|
||||||
${WRKSRC}/algotutor
|
${WRKSRC}/algotutor
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
|
|
|
@ -5,7 +5,7 @@
|
||||||
use strict;
|
use strict;
|
||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
-use lib '/usr/share/perl5/algotutor';
|
-use lib '/usr/share/perl5/algotutor';
|
||||||
+use lib '!!PREFIX!!/lib/perl5/site_perl/!!PERL_VER!!/algotutor';
|
+use lib '!!SITE_PERL!!/algotutor';
|
||||||
|
|
||||||
BEGIN {
|
BEGIN {
|
||||||
my ($path) = $0 =~ m#(.*/)#;
|
my ($path) = $0 =~ m#(.*/)#;
|
||||||
|
|
Loading…
Add table
Reference in a new issue