summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorobache <obache>2011-02-13 08:09:43 +0000
committerobache <obache>2011-02-13 08:09:43 +0000
commit42945caf52f2d8e4508027312d545830288bfa35 (patch)
treef98dee564a63066f69eb601e2ce00f05286fe416 /lang/python
parent39feceec2e920b11c7f6209d475bb0fdc573507b (diff)
downloadpkgsrc-42945caf52f2d8e4508027312d545830288bfa35.tar.gz
change to match de-expanded ${PYSITELIB} in PRINT_PLIST_AWK.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/distutils.mk7
1 files changed, 3 insertions, 4 deletions
diff --git a/lang/python/distutils.mk b/lang/python/distutils.mk
index f0b7885a6f4..308fef3e356 100644
--- a/lang/python/distutils.mk
+++ b/lang/python/distutils.mk
@@ -1,4 +1,4 @@
-# $NetBSD: distutils.mk,v 1.1 2010/07/24 12:32:22 gdt Exp $
+# $NetBSD: distutils.mk,v 1.2 2011/02/13 08:09:43 obache Exp $
#
# Common logic for python distributions that use distutils.
#
@@ -36,9 +36,8 @@ PY_NO_EGG?= yes
# Egg files have the version encoded, so generalize in PLIST, and provide
# our conditional.
PLIST_SUBST+= EGG_FILE=${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
-# Somehow, this rule seems to run after PYSITELIB is de-expanded and
-# therefore not work.
-PRINT_PLIST_AWK+= { gsub("${PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info", \
+# PYSITELIB is already de-expanded
+PRINT_PLIST_AWK+= { gsub("[$$]{PYSITELIB}/${EGG_NAME}-py${PYVERSSUFFIX}.egg-info", \
"$${PLIST.eggfile}$${PYSITELIB}/$${EGG_FILE}") }
.include "../../lang/python/extension.mk"