Subject: pkg/27320: Update of audio/rip (trivial: change the shebang using REPLACE_PERL)
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <lems@gmx.net>
List: pkgsrc-bugs
Date: 10/21/2004 23:54:17
>Number:         27320
>Category:       pkg
>Synopsis:       Update of audio/rip (trivial: change the shebang using REPLACE_PERL)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Oct 22 08:47:03 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Leonard Schmidt
>Release:        NetBSD 2.0_RC4
>Organization:
>Environment:
NetBSD kafka 2.0_RC4 NetBSD 2.0_RC4 (THEWIRED) #0: Mon Oct 11 12:13:31 GMT 2004  lems@thewired:/usr/obj/sys/arch/i386/compile/THEWIRED i386
>Description:
Use REPLACE_PERL rather than my home-brewed "Perl hack" for changing the shebang.
>How-To-Repeat:

>Fix:
diff -ur /usr/pkgsrc/audio/rip/Makefile rip/Makefile
--- /usr/pkgsrc/audio/rip/Makefile	2004-10-22 01:32:03.000000000 +0000
+++ rip/Makefile	2004-10-22 01:29:33.000000000 +0000
@@ -2,6 +2,7 @@
 #
 
 DISTNAME=	rip-1.07
+PKGREVISION=	1
 CATEGORIES=	audio perl5
 MASTER_SITES=	http://rip.sourceforge.net/download/
 
@@ -15,13 +16,11 @@
 NO_BUILDLINK=	yes
 USE_PERL5=	yes
 NO_BUILD=	# defined
+REPLACE_PERL=	${WRKSRC}/rip
 
 DOCFILES=	BUGS CHANGELOG COPYING FAQ INSTALLING README
 DOCDIR=		${PREFIX}/share/doc/rip
 
-post-patch:
-	${PERL5} -pi -ne "s|#!/usr/bin/perl|#!${PERL5}|" ${WRKSRC}/rip
-
 do-install:
 	${INSTALL_SCRIPT} ${WRKSRC}/rip ${PREFIX}/bin/rip
 	${INSTALL_DATA_DIR} ${DOCDIR}
>Release-Note:
>Audit-Trail:
>Unformatted: