mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-24 04:33:24 +00:00
75a5f7f076
- Repocopy textproc/py-sphinx to textproc/py-sphinx18 Update it to 1.8.5 (latest version from 1.8.X). This version supports Python 2 and 3. Add test target. - textproc/py-sphinx: Update to 3.0.2 Python 3 only (3.5+). Add test target. - Mk/Uses/python.mk: Add PY_SPHINX Shared macro to use with flavors and not break ports with USES=python (all versions). Python >=3.5 --> textproc/py-sphinx (v3.0.2) Python < 3.5 --> textproc/py-sphinx18 (v1.8.5) All ports that uses sphinx were changed to use the new variable ${PY_SPHINX} in the dependency line, exceptions: * Ports that fails to build with sphinx 3.0.2 because of code. They are pointing to textproc/py-sphinx18 directly. There aren't many ports. * Ports that doesn't know Python flavors. - Add several patches to fix Sphinx consumers The most common issues are related with pkg-plist, the output files from Sphinx changes between versions, keep this dynamically is the better approach. This will save time in future sphinx updates. PR: 245629 Exp-run by: antoine
45 lines
1020 B
Makefile
45 lines
1020 B
Makefile
# Created by: Jaap Akkerhuis <jaap@NLnetLabs.nl>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= pyaudio
|
|
PORTVERSION= 0.2.11
|
|
PORTREVISION= 2
|
|
CATEGORIES= audio python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= PyAudio-${PORTVERSION}
|
|
|
|
MAINTAINER= jaap@NLnetLabs.nl
|
|
COMMENT= Portaudio toolkit bindings for Python
|
|
|
|
LICENSE= MIT
|
|
|
|
LIB_DEPENDS= libportaudio.so:audio/portaudio
|
|
|
|
USES= python gmake
|
|
USE_PYTHON= distutils concurrent autoplist
|
|
|
|
MAKE_ENV= PYTHON=${PYTHON_CMD} \
|
|
SPHINX=sphinx-build-${PYTHON_VER}
|
|
PORTDOCS= *
|
|
WRKSRC= ${WRKDIR}/PyAudio-${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= DOCS
|
|
|
|
DOCS_BUILD_DEPENDS= ${PY_SPHINX}
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} ${SUB_LIST:S/$/!g/:S/^/ -e s!%%/:S/=/%%!/} \
|
|
${WRKSRC}/setup.py
|
|
|
|
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:
|
|
@${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_portaudio.so
|
|
|
|
.include <bsd.port.mk>
|