Date: Sun, 25 Jul 2004 22:30:00 +0800 (CST) From: Rong-En Fan <rafan@infor.org> To: FreeBSD-gnats-submit@FreeBSD.org Cc: autrijus@autrijus.org Subject: ports/69573: Update port: make devel/svk run w/ PPerl Message-ID: <20040725143000.70E2E52511@muse.csie.ntu.edu.tw> Resent-Message-ID: <200407251430.i6PEUNZd071129@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 69573 >Category: ports >Synopsis: Update port: make devel/svk run w/ PPerl >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: update >Submitter-Id: current-users >Arrival-Date: Sun Jul 25 14:30:23 GMT 2004 >Closed-Date: >Last-Modified: >Originator: Rong-En Fan >Release: FreeBSD 4.10-RELEASE-p2 i386 >Organization: NTU CSIE >Environment: System: FreeBSD muse.csie.ntu.edu.tw 4.10-RELEASE-p2 FreeBSD 4.10-RELEASE-p2 #1: Mon Jul 12 20:06:43 CST 2004 root@muse.csie.ntu.edu.tw:/home/admin/usr/obj/home/admin/usr/src/sys/MUSE i386 >Description: "Because SVK loads a lot of Perl modules, its startup time can be a bit sluggish, even though its runtime performance for many operations is quite good." -- http://svk.elixus.org/index.cgi?SVKAndPPerl This patch makes user easily run svk w/ pperl without any manually change the svk script. >How-To-Repeat: >Fix: diff -ruN svk.orig/Makefile svk/Makefile --- svk.orig/Makefile Sun Jul 25 21:56:00 2004 +++ svk/Makefile Sun Jul 25 22:14:20 2004 @@ -7,7 +7,7 @@ PORTNAME= svk PORTVERSION= 0.17 -PORTREVISION= 0 +PORTREVISION= 1 CATEGORIES= devel perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN} MASTER_SITE_SUBDIR= ../../authors/id/C/CL/CLKAO @@ -33,6 +33,10 @@ ${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 @@ -88,5 +92,13 @@ .if ${PERL_LEVEL} < 500800 IGNORE= This program only support perl 5.8.0 or above .endif + +.if defined(WITH_PPERL) +RUN_DEPENDS+= ${LOCALBASE}/bin/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 -ruN svk.orig/files/patch-bin-svk svk/files/patch-bin-svk --- svk.orig/files/patch-bin-svk Thu Jan 1 08:00:00 1970 +++ svk/files/patch-bin-svk Sun Jul 25 22:00:06 2004 @@ -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; >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040725143000.70E2E52511>