Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Nov 2002 15:05:49 +1100 (EST)
From:      Edwin Groothuis <edwin@mavetju.org>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/45360: [patch] add SITE_PERL / ARCH_PERL variables
Message-ID:  <20021117040549.92A466A712B@k7.mavetju>

next in thread | raw e-mail | index | archive | help

>Number:         45360
>Category:       ports
>Synopsis:       [patch] add SITE_PERL / ARCH_PERL variables
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Nov 16 20:10:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Edwin Groothuis
>Release:        FreeBSD 4.5-RELEASE i386
>Organization:
-
>Environment:
System: FreeBSD k7.mavetju 4.5-RELEASE FreeBSD 4.5-RELEASE #4: Sat Sep 14 10:41:50 EST 2002 edwin@k7.mavetju:/usr/src/sys/compile/k7 i386

>Description:

I saw a couple of perl-scripts which have these two variables:
SITE_PERL=      ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
ARCH_PERL=      ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}

These two lines would increate the readability of a lot of RUN_DEPENDS
/ BUILD_DEPENDS statements from:

       ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
       ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/Time/Timezone.pm:${PORTSDIR}/devel/p5-Time \
       ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
       ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph

to:
       ${ARCH_PERL}/XML/Parser.pm:${PORTSDIR}/textproc/p5-XML-Parser \
       ${SITE_PERL}/Time/Timezone.pm:${PORTSDIR}/devel/p5-Time \
       ${SITE_PERL}/MIME/Entity.pm:${PORTSDIR}/mail/p5-MIME-Tools \
       ${SITE_PERL}/GD/Graph.pm:${PORTSDIR}/graphics/p5-GD-Graph

At least I can see what they're looking for now!

>How-To-Repeat:

n/a

>Fix:

--- Mk/bsd.port.orig	Sun Nov 17 15:02:48 2002
+++ Mk/bsd.port.mk	Sun Nov 17 15:03:53 2002
@@ -1022,6 +1022,8 @@
 RUN_DEPENDS+=	perl${PERL_VERSION}:${PORTSDIR}/lang/perl5
 .endif
 .endif
+SITE_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}
+ARCH_PERL= ${LOCALBASE}/lib/perl5/site_perl/${PERL_VER}/${PERL_ARCH}
 
 .if defined(USE_XLIB)
 .if ${XFREE86_VERSION} == 3
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021117040549.92A466A712B>