- Utilize SITE_PERL instead of raw PERL_VER or PERL_VERSION.

Approved by:	kevlo@ (via IRC)
This commit is contained in:
Andrej Zverev 2013-06-13 07:01:20 +00:00
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

View file

@ -26,7 +26,7 @@ LIBFILES= BST.pm Board.pm Collection.pm Configurable.pm DCEdge.pm \
post-patch:
${REINPLACE_CMD} -e 's,#!/usr/bin/perl,#!${PERL},' ${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
do-install:

View file

@ -5,7 +5,7 @@
use strict;
use Getopt::Std;
-use lib '/usr/share/perl5/algotutor';
+use lib '!!PREFIX!!/lib/perl5/site_perl/!!PERL_VER!!/algotutor';
+use lib '!!SITE_PERL!!/algotutor';
BEGIN {
my ($path) = $0 =~ m#(.*/)#;