Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 21 Feb 2003 08:44:08 +0900
From:      Jun Kuriyama <kuriyama@imgsrc.co.jp>
To:        freebsd-ports@FreeBSD.org
Subject:   Knob for perllocal.pod
Message-ID:  <7mel62bjqv.wl@black.imgsrc.co.jp>

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

For Kris. :-)

I don't know which option is better.

(1) Add knob like below.
  pros: will not do (bad) effect other PERL_CONFIGURE ports unless
        knob is set.
  cons: requires to add knobs to all ports which has perllocal.pod.

(2) Add reinplace inside of .if defined(PERL_CONFIGURE) and doing this
    implicitly if $PERL_CONFIGURE is defined.
  pros: does not need to touch Makefile of each ports.  Only plist fix
        is required.
  cons: may cause some problems (I don't think so, but I don't know
        there is a program which uses perllocal.pod file).


Index: bsd.port.mk
===================================================================
RCS file: /home/ncvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.440
diff -u -r1.440 bsd.port.mk
--- bsd.port.mk	16 Feb 2003 21:22:15 -0000	1.440
+++ bsd.port.mk	20 Feb 2003 23:26:50 -0000
@@ -262,6 +262,8 @@
 #				  (value: ${ARCH}-freebsd).
 # SITE_PERL		- Directory name where site specific perl packages go.
 #					This value is added to PLIST_SUB.
+# USE_OWN_PERLLOCAL	- Writes installation log into perllocal.pod-${PORTNAME}
+#					rather than perllocal.pod.
 # USE_BISON		- Says that the port uses bison for building.
 # USE_IMAKE		- Says that the port uses imake.  Implies USE_X_PREFIX.
 # XMKMF			- Set to path of `xmkmf' if not in $PATH (default: xmkmf -a ).
@@ -1235,6 +1237,10 @@
 .endif
 .endif
 
+.if defined(USE_OWN_PERLLOCAL)
+USE_REINPLACE=	yes
+.endif
+
 .if defined(USE_XLIB)
 .if ${XFREE86_VERSION} == 3
 # Don't try to build XFree86-3 even if ALWAYS_BUILD_DEPENDS is defined --
@@ -2596,6 +2602,10 @@
 	@cd ${CONFIGURE_WRKSRC} && \
 		${SETENV} ${CONFIGURE_ENV} \
 		${PERL5} ./${CONFIGURE_SCRIPT} ${CONFIGURE_ARGS}
+.if defined(USE_OWN_PERLLOCAL)
+	@cd ${CONFIGURE_WRKSRC} && \
+		${REINPLACE_CMD} -e 's/perllocal.pod/&-${PORTNAME}/' Makefile
+.endif
 .endif
 .if defined(USE_IMAKE)
 	@(cd ${CONFIGURE_WRKSRC}; ${SETENV} ${MAKE_ENV} ${XMKMF})


-- 
Jun Kuriyama <kuriyama@imgsrc.co.jp> // IMG SRC, Inc.
             <kuriyama@FreeBSD.org> // FreeBSD Project

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?7mel62bjqv.wl>