tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: multi-variant packages and bulk builds



On Wed, Sep 10, 2008 at 01:19:12PM +0200, Alan Barrett wrote:
> It would be great if "make replace OLDNAME=py24-foobar-x.y.z" could
> magically act as if it was given "PYTHON_VERSION_DEFAULT=24".
> pkg_rolling-replace already knows the old name.

Try the attached patch.

Joerg
Index: extension.mk
===================================================================
RCS file: /home/joerg/repo/netbsd/pkgsrc/lang/python/extension.mk,v
retrieving revision 1.19
diff -u -p -r1.19 extension.mk
--- extension.mk        30 Jun 2008 13:41:05 -0000      1.19
+++ extension.mk        10 Sep 2008 11:30:04 -0000
@@ -4,6 +4,8 @@
 # optionally handled quoted package names
 .if defined(PKGNAME_REQD)
 PYTHON_VERSION_REQD?= ${PKGNAME_REQD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
+.elif defined(PKGNAME_OLD)
+PYTHON_VERSION_REQD?= ${PKGNAME_OLD:C/(^.*-|^)py([0-9][0-9])-.*/\2/}
 .endif
 
 .include "../../lang/python/pyversion.mk"


Home | Main Index | Thread Index | Old Index