Mon Apr 23 13:02:06 2012 UTC ()
revive ${EGG_FILE} handling in print-PLIST, accidently(?) removed at
killing ${PLIST.eggfile}


(obache)
diff -r1.5 -r1.6 pkgsrc/lang/python/distutils.mk

cvs diff -r1.5 -r1.6 pkgsrc/lang/python/Attic/distutils.mk (expand / switch to unified diff)

--- pkgsrc/lang/python/Attic/distutils.mk 2012/04/08 20:23:21 1.5
+++ pkgsrc/lang/python/Attic/distutils.mk 2012/04/23 13:02:06 1.6
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: distutils.mk,v 1.5 2012/04/08 20:23:21 wiz Exp $ 1# $NetBSD: distutils.mk,v 1.6 2012/04/23 13:02:06 obache Exp $
2# 2#
3# Common logic for python distributions that use distutils. 3# Common logic for python distributions that use distutils.
4# 4#
5.include "../../mk/bsd.fast.prefs.mk" 5.include "../../mk/bsd.fast.prefs.mk"
6 6
7.include "../../lang/python/pyversion.mk" 7.include "../../lang/python/pyversion.mk"
8 8
9# This file should be included to package python "distributions" which 9# This file should be included to package python "distributions" which
10# use distutils. See egg.mk for distributions that use setuptools and 10# use distutils. See egg.mk for distributions that use setuptools and
11# extensions.mk for ad hoc cases. 11# extensions.mk for ad hoc cases.
12 12
13# Some day, hoist the PYDISTUTILSPKG code in extension.mk to here, 13# Some day, hoist the PYDISTUTILSPKG code in extension.mk to here,
14# after all distutils-using packages use this. 14# after all distutils-using packages use this.
@@ -16,15 +16,17 @@ PYDISTUTILSPKG= yes @@ -16,15 +16,17 @@ PYDISTUTILSPKG= yes
16 16
17# We expect distutils to create an egg-info file if Python distutils 17# We expect distutils to create an egg-info file if Python distutils
18# can do so, and provide support for a PLIST entry that represents 18# can do so, and provide support for a PLIST entry that represents
19# this norm and will work with all python versions. 19# this norm and will work with all python versions.
20 20
21# Set the egg file basename. 21# Set the egg file basename.
22EGG_NAME?= ${DISTNAME} 22EGG_NAME?= ${DISTNAME}
23 23
24# Python distutils will create an eggfile. 24# Python distutils will create an eggfile.
25PY_NO_EGG?= no 25PY_NO_EGG?= no
26 26
27# Egg files have the version encoded, so generalize in PLIST. 27# Egg files have the version encoded, so generalize in PLIST.
28PLIST_SUBST+= EGG_FILE=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info 28PLIST_SUBST+= EGG_FILE=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
 29PRINT_PLIST_AWK+= { gsub("${EGG_NAME}-py${PYVERSSUFFIX}.egg-info", \
 30 "$${EGG_FILE}") }
29 31
30.include "../../lang/python/extension.mk" 32.include "../../lang/python/extension.mk"