summaryrefslogtreecommitdiff
path: root/mk
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2014-01-18 19:48:57 +0000
committerwiz <wiz@pkgsrc.org>2014-01-18 19:48:57 +0000
commit308a6a34f92cc14a111a5e532ce0d0b9ee6257d2 (patch)
tree62a39f2986989e2166a4a292c5485f606616fefa /mk
parentcf78b77fca113105f4cc43dbde30e36dbc015c13 (diff)
downloadpkgsrc-308a6a34f92cc14a111a5e532ce0d0b9ee6257d2.tar.gz
Improve support for python-3.3.
Diffstat (limited to 'mk')
-rw-r--r--mk/plist/print-plist.mk6
1 files changed, 5 insertions, 1 deletions
diff --git a/mk/plist/print-plist.mk b/mk/plist/print-plist.mk
index da8ed6d8f2a..55b0d6bfc41 100644
--- a/mk/plist/print-plist.mk
+++ b/mk/plist/print-plist.mk
@@ -1,4 +1,4 @@
-# $NetBSD: print-plist.mk,v 1.24 2013/07/05 15:31:54 jperkin Exp $
+# $NetBSD: print-plist.mk,v 1.25 2014/01/18 19:48:57 wiz Exp $
###
### Automatic PLIST generation
@@ -29,6 +29,10 @@ _PRINT_PLIST_AWK_SUBST+= \
gsub("^${PKGGNUDIR:S/\/$$//}/", "gnu/"); \
gsub("^${PKGINFODIR}/", "info/"); \
gsub("^${PKGMANDIR}/", "man/");
+# for Python packages
+_PRINT_PLIST_AWK_SUBST+= gsub(/__pycache__\//, "");
+_PRINT_PLIST_AWK_SUBST+= gsub(/\.cpython-[0-9]+/, "")
+
_PRINT_PLIST_AWK_SUBST+=}
_PRINT_PLIST_AWK_IGNORE= ($$0 ~ /^${PKG_DBDIR:S|^${PREFIX}/||:S|/|\\/|g}\//)