diff options
author | gdt <gdt@pkgsrc.org> | 2011-12-16 12:57:17 +0000 |
---|---|---|
committer | gdt <gdt@pkgsrc.org> | 2011-12-16 12:57:17 +0000 |
commit | d0ef3efe89f90a1f302ac33cf2923748d42260d4 (patch) | |
tree | a8868cca038a40c515716612459f024f52018b20 /lang/python | |
parent | a7f0e6e4126448c09d11af294708c9c9ebef96d5 (diff) | |
download | pkgsrc-d0ef3efe89f90a1f302ac33cf2923748d42260d4.tar.gz |
Expand comments. (No code change.)
Diffstat (limited to 'lang/python')
-rw-r--r-- | lang/python/egg.mk | 17 |
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/, \ |