[32596] trunk/dports/print/libpaper/Portfile
Eric Hall
opendarwin.org at darkart.com
Tue Jan 8 17:52:18 PST 2008
On Tue, Jan 08, 2008 at 04:15:22PM -0600, Ryan Schmidt wrote:
> On Jan 8, 2008, at 15:51, ricci at macports.org wrote:
>
> >Modified: trunk/dports/print/libpaper/Portfile
> >===================================================================
> >--- trunk/dports/print/libpaper/Portfile 2008-01-08 21:48:43 UTC
> >(rev 32595)
> >+++ trunk/dports/print/libpaper/Portfile 2008-01-08 21:51:10 UTC
> >(rev 32596)
> >@@ -2,8 +2,8 @@
> >
> > PortSystem 1.0
> > name libpaper
> >-version 1.1.14-3
> >-set base_version 1.1.14
> >+version 1.1.21
> >+set base_version 1.1.21
> > revision 1
>
> FYI: Instead of listing the version number twice, you could list it
> just once in ${version} and compute it for ${base_version}, like this:
>
> version 1.1.21
> set base_version [lindex [split ${version} -] 0]
True, one can normalize things to no end. They're also
harder to read for those that 1) don't keep up with Portfile
syntax as much or 2) don't speak tcl.
>
>
> Also, when you increase the port's version, don't forget to drop the
> revision down to 0 (or remove the revision line entirely which does
> the same thing).
Whup, I did forget to drop the revision :(
-eric
More information about the macports-dev
mailing list