summaryrefslogtreecommitdiff
path: root/lang/python
diff options
context:
space:
mode:
authorwiz <wiz>2014-12-31 13:57:25 +0000
committerwiz <wiz>2014-12-31 13:57:25 +0000
commitae8d0daaba8083e36e5e3111a0b56c354f52759b (patch)
tree6f2607c3acaa8e555f020155e7d5a5eda8a24fd6 /lang/python
parente68e420f139e7095cf0c7a03be9deec1934deb74 (diff)
downloadpkgsrc-ae8d0daaba8083e36e5e3111a0b56c354f52759b.tar.gz
Improve EGG_NAME default to work for packages with '-' in their name.
Remove now unnecessary overrides in various packages.
Diffstat (limited to 'lang/python')
-rw-r--r--lang/python/distutils.mk4
-rw-r--r--lang/python/egg.mk4
2 files changed, 4 insertions, 4 deletions
diff --git a/lang/python/distutils.mk b/lang/python/distutils.mk
index eb09f18aef8..77816f5f4f7 100644
--- a/lang/python/distutils.mk
+++ b/lang/python/distutils.mk
@@ -1,4 +1,4 @@
-# $NetBSD: distutils.mk,v 1.6 2012/04/23 13:02:06 obache Exp $
+# $NetBSD: distutils.mk,v 1.7 2014/12/31 13:57:28 wiz Exp $
#
# Common logic for python distributions that use distutils.
#
@@ -19,7 +19,7 @@ PYDISTUTILSPKG= yes
# this norm and will work with all python versions.
# Set the egg file basename.
-EGG_NAME?= ${DISTNAME}
+EGG_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g}
# Python distutils will create an eggfile.
PY_NO_EGG?= no
diff --git a/lang/python/egg.mk b/lang/python/egg.mk
index 2b0a1b382c1..5da8dd6836e 100644
--- a/lang/python/egg.mk
+++ b/lang/python/egg.mk
@@ -1,4 +1,4 @@
-# $NetBSD: egg.mk,v 1.19 2014/12/17 07:23:04 wiz Exp $
+# $NetBSD: egg.mk,v 1.20 2014/12/31 13:57:28 wiz Exp $
#
# Common logic to handle Python Eggs
#
@@ -9,7 +9,7 @@
# use setuptools to create an egg. Some distributions use distutils,
# which creates an egg-info file; those should use distutils.mk
-EGG_NAME?= ${DISTNAME}
+EGG_NAME?= ${DISTNAME:C/-([^0-9])/_\1/g}
EGG_INFODIR?= ${EGG_NAME}-py${PYVERSSUFFIX}.egg-info
PYDISTUTILSPKG= yes