summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorgdt <gdt>2011-12-16 12:57:17 +0000
committergdt <gdt>2011-12-16 12:57:17 +0000
commitd5342e2b988ceff95d8a02f2bd6989367753c3e1 (patch)
treea8868cca038a40c515716612459f024f52018b20 /lang/python
parent42cd205513ef3b25ef7a4588d9ba2d052d4bc018 (diff)
downloadpkgsrc-d5342e2b988ceff95d8a02f2bd6989367753c3e1.tar.gz
Expand comments. (No code change.)
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/egg.mk17
1 files changed, 13 insertions, 4 deletions
diff --git a/lang/python/egg.mk b/lang/python/egg.mk
index 49d0daa8595..193606b7e70 100644
--- a/lang/python/egg.mk
+++ b/lang/python/egg.mk
@@ -1,19 +1,28 @@
-# $NetBSD: egg.mk,v 1.12 2011/12/16 12:41:05 gdt Exp $
+# $NetBSD: egg.mk,v 1.13 2011/12/16 12:57:17 gdt Exp $
#
# Common logic to handle Python Eggs
#
.include "../../mk/bsd.fast.prefs.mk"
# This file should be included to package python "distributions" which
-# use setuptools to create an egg. The presence of egg-info in a
-# package does not indicate that the package is an egg - distributions
-# that use distutils should use distutils.mk.
+# use setuptools to create an egg. Some distributions use distutils,
+# which creates an egg-info file; those should use distutils.mk
EGG_NAME?= ${DISTNAME}
PYDISTUTILSPKG= yes
PY_PATCHPLIST= yes
+# True eggs always have an egg-info directory, and thus there is no
+# PLIST conditional (as in distutils.mk for old versions of python).
+# Note that we substitute EGG_INFODIR rather than EGG_FILE, because
+# the egg information in an egg comprises multiple files in an
+# egg-info directory.
+
+# XXX The PLIST substitution of EGG_NAME does not appear to be
+# necessary. Either it should be removed or a comment added
+# explaining why it is necessary.
+
PLIST_SUBST+= EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX}
PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \