mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
Fix stage-qa errors when building a non-default Python flavor when DOCS option
is enabled. (e.g. py27 default, try to build py36) ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: %%PYTHON_SITELIBDIR%%/pyaudio.pyc ===> Checking for items in pkg-plist which are not in STAGEDIR ===> Error: Plist issues found. textproc/py-sphinx is only needed for DOCS here and should be the same flavor as the port being built to avoid bytecode leftovers. Do DOCS build in the build stage and simplify DOCS installation Approved by: portmgr (blanket)
This commit is contained in:
parent
249c3c5d4c
commit
d7f993c03b
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463026
1 changed files with 11 additions and 10 deletions
|
@ -3,6 +3,7 @@
|
|||
|
||||
PORTNAME= pyaudio
|
||||
PORTVERSION= 0.2.11
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= audio python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
|
@ -14,30 +15,30 @@ COMMENT= Portaudio toolkit bindings for Python
|
|||
LICENSE= MIT
|
||||
|
||||
LIB_DEPENDS= libportaudio.so:audio/portaudio
|
||||
BUILD_DEPENDS= sphinx-build:textproc/py-sphinx
|
||||
|
||||
USES= python gmake
|
||||
USE_PYTHON= distutils autoplist
|
||||
|
||||
MAKE_ENV= PYTHON=${PYTHON_CMD} \
|
||||
SPHINX=sphinx-build-${PYTHON_VER}
|
||||
PORTDOCS= *
|
||||
WRKSRC= ${WRKDIR}/PyAudio-${PORTVERSION}
|
||||
|
||||
OPTIONS_DEFINE= DOCS
|
||||
PORTDOCS= *
|
||||
|
||||
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR}
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
||||
${WRKSRC}/setup.py
|
||||
|
||||
pre-install:
|
||||
(cd ${BUILD_WRKSRC} && ${MAKE_CMD} PYTHON=${PYTHON_CMD} docs)
|
||||
post-build-DOCS-on:
|
||||
(cd ${BUILD_WRKSRC} && ${DO_MAKE_BUILD} docs)
|
||||
|
||||
post-install-DOCS-on:
|
||||
(cd ${WRKSRC}/docs && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "! -name .buildinfo -and ! -path *doctrees*")
|
||||
|
||||
post-install:
|
||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/*.html ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/*.js ${STAGEDIR}${DOCSDIR}
|
||||
${INSTALL_DATA} ${WRKSRC}/docs/*.inv ${STAGEDIR}${DOCSDIR}
|
||||
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _static ${STAGEDIR}${DOCSDIR}/
|
||||
@cd ${WRKSRC}/docs && ${COPYTREE_SHARE} _sources ${STAGEDIR}${DOCSDIR}/
|
||||
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_portaudio.so
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
Loading…
Add table
Reference in a new issue