Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 15 Oct 2003 01:19:32 +0200 (CEST)
From:      Simon Barner <barner@in.tum.de>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/58038: textproc/urlview: Use config file in ${LOCALBASE} + De-perlify
Message-ID:  <20031014231932.C3CAB93E@zi025.glhnet.mhn.de>
Resent-Message-ID: <200310142320.h9ENKG7u093047@freefall.freebsd.org>

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

>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@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@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@g" ${WRKSRC}/*
 
 post-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/url_handler.sh ${PREFIX}/bin
>Release-Note:
>Audit-Trail:
>Unformatted:



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