PYDISTUTILS_AUTOPLIST, stage, man pages

Andriy Gapon avg at FreeBSD.org
Fri Oct 18 06:51:27 UTC 2013


on 18/10/2013 09:44 Marcus von Appen said the following:
> Can you give the following change to Mk/bsd.python.mk a try:
> 
> Index: Mk/bsd.python.mk
> ===================================================================
> --- Mk/bsd.python.mk	(revision 330721)
> +++ Mk/bsd.python.mk	(working copy)
> @@ -528,7 +528,9 @@
>  		${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) { \
> 
> It adds the .gz to every man/manX/*.X, if it is defined (depending on
> the NO_MANCOMPRESS setting).

Woo-hoo, thanks a lot!  The patch worked perfectly for me.
>From pkg info -l py27-obnam-1.5:
        /usr/local/man/man1/obnam-benchmark.1.gz
        /usr/local/man/man1/obnam-viewprof.1.gz
        /usr/local/man/man1/obnam.1.gz


-- 
Andriy Gapon


More information about the freebsd-python mailing list