aboutsummaryrefslogtreecommitdiffstats
path: root/devel/svk
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2004-07-26 06:43:30 +0800
committerpav <pav@FreeBSD.org>2004-07-26 06:43:30 +0800
commit5a90e2bc94c0281d60c296a8ca08634f20f91d63 (patch)
tree6d21f94da2086165dc7671c0747b810189fb86a3 /devel/svk
parentcc7dedb998937728fd234d73507bb4a0c9a057c7 (diff)
downloadfreebsd-ports-gnome-5a90e2bc94c0281d60c296a8ca08634f20f91d63.tar.gz
freebsd-ports-gnome-5a90e2bc94c0281d60c296a8ca08634f20f91d63.tar.zst
freebsd-ports-gnome-5a90e2bc94c0281d60c296a8ca08634f20f91d63.zip
- 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)
Diffstat (limited to 'devel/svk')
-rw-r--r--devel/svk/Makefile12
-rw-r--r--devel/svk/files/patch-bin-svk8
2 files changed, 20 insertions, 0 deletions
diff --git a/devel/svk/Makefile b/devel/svk/Makefile
index be2e6b1eaa01..b264d31efc14 100644
--- a/devel/svk/Makefile
+++ b/devel/svk/Makefile
@@ -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>
diff --git a/devel/svk/files/patch-bin-svk b/devel/svk/files/patch-bin-svk
new file mode 100644
index 000000000000..4eeda817507c
--- /dev/null
+++ b/devel/svk/files/patch-bin-svk
@@ -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;