diff options
author | rodent <rodent@pkgsrc.org> | 2014-12-06 15:17:08 +0000 |
---|---|---|
committer | rodent <rodent@pkgsrc.org> | 2014-12-06 15:17:08 +0000 |
commit | a97b64db4638d50bc14c5528cbb2739ce84af634 (patch) | |
tree | 13b8cd4a1cff499817bbf7d69a8cd3f4f3861a4c | |
parent | 576880c54ddf87a3e11194b7f15832b0f34090f7 (diff) | |
download | pkgsrc-a97b64db4638d50bc14c5528cbb2739ce84af634.tar.gz |
Make EGG_INFODIR available for use in Makefiles. Clarify comment regarding
necessity of substituting EGG_NAME in PLISTs.
-rw-r--r-- | lang/python/egg.mk | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lang/python/egg.mk b/lang/python/egg.mk index 70f50efd6eb..317da0b1349 100644 --- a/lang/python/egg.mk +++ b/lang/python/egg.mk @@ -1,4 +1,4 @@ -# $NetBSD: egg.mk,v 1.17 2014/01/26 00:41:07 wiz Exp $ +# $NetBSD: egg.mk,v 1.18 2014/12/06 15:17:08 rodent Exp $ # # Common logic to handle Python Eggs # @@ -10,6 +10,7 @@ # which creates an egg-info file; those should use distutils.mk EGG_NAME?= ${DISTNAME} +EGG_INFODIR?= ${EGG_NAME}-py${PYVERSSUFFIX}.egg-info PYDISTUTILSPKG= yes PY_PATCHPLIST= yes @@ -20,12 +21,13 @@ PY_PATCHPLIST= yes # 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. +# The PLIST substitution of EGG_NAME is not necessary. However, it +# is convenient. See lang/ruby/gem.mk and PLIST files for ruby gem +# packages to understand other examples of this feature in non-python +# packages. PLIST_SUBST+= EGG_NAME=${EGG_NAME}-py${PYVERSSUFFIX} -PLIST_SUBST+= EGG_INFODIR=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info +PLIST_SUBST+= EGG_INFODIR=${EGG_INFODIR} PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info/, \ "$${EGG_INFODIR}") } PRINT_PLIST_AWK+= { gsub(/${EGG_NAME}-py${PYVERSSUFFIX}-nspkg.pth/, \ |