aboutsummaryrefslogtreecommitdiffstats
path: root/Mk/bsd.python.mk
diff options
context:
space:
mode:
authormva <mva@FreeBSD.org>2013-10-19 00:28:48 +0800
committermva <mva@FreeBSD.org>2013-10-19 00:28:48 +0800
commit5003086d9239894533eb3b72cf6796251639bc6d (patch)
tree9091a45ec3b38327e4a903377f337e78101c4653 /Mk/bsd.python.mk
parent0892b2afbe9aa0f7a59f72b408a1fb66d3d0f8a5 (diff)
downloadfreebsd-ports-gnome-5003086d9239894533eb3b72cf6796251639bc6d.tar.gz
freebsd-ports-gnome-5003086d9239894533eb3b72cf6796251639bc6d.tar.zst
freebsd-ports-gnome-5003086d9239894533eb3b72cf6796251639bc6d.zip
- Enable proper manpage handling for PYDISTUTILS_AUTOPLIST, if the
manpages are installed by distutils. Requested by: avg@ Improvements: jhein@symmetricom.com
Diffstat (limited to 'Mk/bsd.python.mk')
-rw-r--r--Mk/bsd.python.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/Mk/bsd.python.mk b/Mk/bsd.python.mk
index b32671b79527..d9317487b978 100644
--- a/Mk/bsd.python.mk
+++ b/Mk/bsd.python.mk
@@ -528,7 +528,9 @@ add-plist-pymod:
${SED} '/^\.$$/d' > ${WRKDIR}/.localmtree
@${ECHO_CMD} "${_RELSITELIBDIR}" >> ${WRKDIR}/.localmtree
@${ECHO_CMD} "${_RELLIBDIR}" >> ${WRKDIR}/.localmtree
- @${SED} 's|^${PREFIX}/||' ${_PYTHONPKGLIST} | ${SORT} >> ${TMPPLIST}
+ @${SED} -e 's|^${PREFIX}/||' \
+ -e 's|^\(man/man[0-9]\)/\(.*\.[0-9]\)$|\1/\2${MANEXT}|' \
+ ${_PYTHONPKGLIST} | ${SORT} >> ${TMPPLIST}
@${SED} -e 's|^${PREFIX}/\(.*\)/\(.*\)|\1|' ${_PYTHONPKGLIST} | \
${AWK} '{ num = split($$0, a, "/"); res=""; \
for(i = 1; i <= num; ++i) { \