ports/58038: textproc/urlview: Use config file in ${LOCALBASE} + De-perlify

Simon Barner barner at in.tum.de
Tue Oct 14 23:20:19 UTC 2003


>Number:         58038
>Category:       ports
>Synopsis:       textproc/urlview: Use config file in ${LOCALBASE} + De-perlify
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct 14 16:20:15 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     Simon Barner
>Release:        FreeBSD 4.9-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD zi025.glhnet.mhn.de 4.9-PRERELEASE FreeBSD 4.9-PRERELEASE #1: Thu Sep 4 20:49:53 CEST 2003 simon at zi025.glhnet.mhn.de:/usr/src/sys/compile/KISTE i386

>Description:

This patch makes urlview use /usr/local/etc/urlview.conf instead of
/etc/urlview.conf (the man page is corrected, too).

While I was here, I also changed the port's Makefile to use
${REINPLACE_CMD} instead of ${PERL} in the post-patch: target.

>How-To-Repeat:
n/a

>Fix:
diff -rNu urlview/Makefile urlview.patched/Makefile
--- urlview/Makefile	Fri Mar  7 18:16:10 2003
+++ urlview.patched/Makefile	Wed Oct 15 01:13:50 2003
@@ -20,13 +20,13 @@
 MAINTAINER=	obrien at FreeBSD.org
 COMMENT=	URL extractor/launcher
 
-USE_PERL5_BUILD=	yes
 GNU_CONFIGURE=	yes
 MAN1=		urlview.1
+USE_REINPLACE=	yes
 
 post-patch:
-	${PERL} -pi.prefix -e 's.!!PREFIX!!.${PREFIX}.g' \
-		${WRKSRC}/url_handler.sh
+	@${REINPLACE_CMD} -e "s@!!PREFIX!!@${PREFIX}@g" ${WRKSRC}/url_handler.sh
+	@${REINPLACE_CMD} -e "s@/etc/urlview.conf@${LOCALBASE}/etc/urlview.conf at g" ${WRKSRC}/*
 
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/url_handler.sh ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list