1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- Add knob to run with PPerl, as suggested in svk wiki

http://svk.elixus.org/index.cgi?SVKAndPPerl

PR:		ports/69573
Submitted by:	Rong-En Fan <rafan@infor.org>
Approved by:	Autrijus Tang <autrijus@gmail.com> (maintainer)
This commit is contained in:
Pav Lucistnik 2004-07-25 22:43:30 +00:00
parent 9739395cb7
commit 36cec38eb9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=114719
2 changed files with 20 additions and 0 deletions

View File

@ -33,6 +33,10 @@ BUILD_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/SVN/Core.pm:${PORTSDIR}/devel/subversio
${SITE_PERL}/YAML.pm:${PORTSDIR}/textproc/p5-YAML
RUN_DEPENDS= ${BUILD_DEPENDS}
OPTIONS= PPERL "Run svk with PPerl" off
USE_REINPLACE= yes
PERL_CONFIGURE= yes
MAN1= svk.1
@ -89,4 +93,12 @@ MAN3= SVK.3 \
IGNORE= This program only support perl 5.8.0 or above
.endif
.if defined(WITH_PPERL)
RUN_DEPENDS+= pperl:${PORTSDIR}/devel/p5-PPerl
PERL= ${LOCALBASE}/bin/pperl
.endif
post-patch:
@${REINPLACE_CMD} -e "s,%%PERL%%,${PERL}," ${WRKSRC}/bin/svk
.include <bsd.port.post.mk>

View File

@ -0,0 +1,8 @@
--- bin/svk.orig Sun Jul 25 21:59:38 2004
+++ bin/svk Sun Jul 25 21:59:46 2004
@@ -1,4 +1,4 @@
-#!/usr/bin/perl -w
+#!%%PERL%% -w
use strict;
use SVK;
our $VERSION = $SVK::VERSION;