aboutsummaryrefslogtreecommitdiff
path: root/devel/svk
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2004-07-25 22:43:30 +0000
committerPav Lucistnik <pav@FreeBSD.org>2004-07-25 22:43:30 +0000
commit36cec38eb91547ed8af22079337a7018bb04cd93 (patch)
tree9064154f8cd65d87be6f0f9ea6e18119a9643621 /devel/svk
parent9739395cb711f31701d3be21d8f88abd749194bf (diff)
downloadports-36cec38eb91547ed8af22079337a7018bb04cd93.tar.gz
ports-36cec38eb91547ed8af22079337a7018bb04cd93.zip
Notes
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;