Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Mar 2012 20:51:36 +0000 (UTC)
From:      "Helmut Schneider" <jumper99@gmx.de>
To:        freebsd-ports@freebsd.org
Subject:   Re: Problem with genplist replacing PORTVERSION
Message-ID:  <xn0hva8vl4fi2fl002@news.gmane.org>
References:  <xn0hva8d04er786001@news.gmane.org> <4F567784.9090801@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Olli Hauer wrote:

> On 2012-03-06 21:30, Helmut Schneider wrote:
> > Hi,
> > 
> > To create a new version of a port (let's say typo3) I copy typo3 to
> > typo3.org. Then I run
> > 
> > sudo make clean && sudo port fetch
> > sudo rm -r /tmp/typo3*
> > sudo genplist clean; sudo genplist create tmp
> > 
> > As a result on my 8.2 machine $PORTVERSION in pkg-plist is replaced
> > with %%PORTVERSION%% as defined in the Makefile:
> > 
> > %%WWWDIR%%_src-%%PORTVERSION%%/ChangeLog
> > 
> > If I do so on my new 9.0 machine, it does not:
> > 
> > %%WWWDIR%%_src-4.6.4/ChangeLog
> > 
> > Why? What did I miss?
> 
> 
> genplist does not replace by default PORTVERSION (not defined in the
> genplist code) Maybe you have a custom script which looks like
> 
> cat ~/.genplist/typo3
> 
> #!/bin/sh
> PV=$(make -V PORTVERSION)
> 
> sed -i '' "|${PV}|%%PORTVERSION%%|g" $1

Ah, yes, I indeed patched genplist and added

| sed "s|${portversion}|%%PORTVERSION%%|g"

Thanks!




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