Skip to content

Commit

Permalink
Move PY_PEP3147 specific PRINT_PLIST handling from common mk/plist/pr…
Browse files Browse the repository at this point in the history
…int-plist.mk

to lang/python/extension.mk, handling reverse way.
  • Loading branch information
obache committed Jan 24, 2014
1 parent 479421a commit ac482b7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
5 changes: 4 additions & 1 deletion lang/python/extension.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: extension.mk,v 1.36 2014/01/12 09:01:50 wiz Exp $
# $NetBSD: extension.mk,v 1.37 2014/01/24 12:42:52 obache Exp $

.include "../../lang/python/pyversion.mk"

Expand Down Expand Up @@ -69,4 +69,7 @@ PY_PEP3147?= yes
.if defined(PY_PEP3147) && !empty(PY_PEP3147:M[yY][eE][sS])
PLIST_AWK+= -f ${PKGSRCDIR}/lang/python/plist-python.awk
PLIST_AWK_ENV+= PYTHON_SOABI="cpython-${_PYTHON_VERSION}"
PRINT_PLIST_AWK+= /^[^@]/ && /[^\/]+\.py[co]$$/ {
PRINT_PLIST_AWK+= gsub(/__pycache__\//, "")
PRINT_PLIST_AWK+= gsub(/\.cpython-${_PYTHON_VERSION}/, "")}
.endif
5 changes: 1 addition & 4 deletions mk/plist/print-plist.mk
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# $NetBSD: print-plist.mk,v 1.25 2014/01/18 19:48:57 wiz Exp $
# $NetBSD: print-plist.mk,v 1.26 2014/01/24 12:42:52 obache Exp $

###
### Automatic PLIST generation
Expand Down Expand Up @@ -29,9 +29,6 @@ _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+=}

Expand Down

0 comments on commit ac482b7

Please sign in to comment.