From owner-freebsd-ports@FreeBSD.ORG Tue Jul 19 19:37:14 2005 Return-Path: X-Original-To: ports@freebsd.org Delivered-To: freebsd-ports@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id B0A8B16A41F for ; Tue, 19 Jul 2005 19:37:14 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: from isis.sigpipe.cz (fw.sigpipe.cz [62.245.70.224]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2126243D45 for ; Tue, 19 Jul 2005 19:37:13 +0000 (GMT) (envelope-from neuhauser@sigpipe.cz) Received: by isis.sigpipe.cz (Postfix, from userid 1001) id B94AE1F87BED; Tue, 19 Jul 2005 21:37:11 +0200 (CEST) Date: Tue, 19 Jul 2005 21:37:11 +0200 From: Roman Neuhauser To: Paul Schmehl Message-ID: <20050719193711.GB60193@isis.sigpipe.cz> Mail-Followup-To: Paul Schmehl , ports@freebsd.org References: <7EA964ADB15B6C3F4E521554@utd59514.utdallas.edu> <790a9fff05071911356839b928@mail.gmail.com> <0D43EF3184DD2596A0C6F74E@utd59514.utdallas.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <0D43EF3184DD2596A0C6F74E@utd59514.utdallas.edu> User-Agent: Mutt/1.5.9i Cc: ports@freebsd.org Subject: Re: patch problem with new port X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jul 2005 19:37:14 -0000 # pauls@utdallas.edu / 2005-07-19 14:24:19 -0500: > --On Tuesday, July 19, 2005 13:35:07 -0500 Scot Hetzel > wrote: > > > >If you are repeatedly changing only one line in several files, you > >could use the ${REPLACE_CMD} variable to replace the line. > > > >USE_REINPLACE= yes > >WISH_CMD?= wish8.3 > > > >post-patch: > >.for file in file1 file2 > > @${REINPLACE_CMD} -e 's:exec wish:exec ${WISH_CMD}:g' ${WRKDIR}/$file > >.endfor > > > >You can use this trick even if you are patching one of the files, as > >the post-patch occurs after your patch is applied. > > This looks like the way to go, but I can't seem to get it to work. The > file I want to patch is in ${WRKSRC}/client/, and here's the portion of the > Makefile that uses REINPLACE. > > NO_BUILD= yes > USE_REINPLACE= yes > WISH_CMD?= wish8.3 > WRKSRC= ${WRKDIR}/sguil-${PORTVERSION} > > PORTDOCS= CHANGES INSTALL INSTALL.openbsd LICENSE.QPL \ > OPENSSL.README TODO USAGE sguildb.dia > > .include > > post-patch: > .for f in sguil.tk > @${REINPLACE_CMD} -e 's:exec wish:exec ${WISH_CMD}:' ${WRKDIR}/client/${f} 1. Is the whitespace at the beginning of the line a tab? It needs to be tab. 2. you have ${WRKDIR}, but want ${WRKSRC} -- How many Vietnam vets does it take to screw in a light bulb? You don't know, man. You don't KNOW. Cause you weren't THERE. http://bash.org/?255991