ports/devel/py-setproctitle/Makefile
Kubilay Kocak 2fa55c75fb devel/py-setproctitle: Fix conflict with concurrent Python flavors
Since devel/py-setproctitle installs HISTORY.rst and README.rst in a
fixed location, pkg won't allow multiple flavors installed at the same time
and concurrent ports conflict on install with each other.

This change adds USE_PYTHON=concurrent which compensates for files in
DOCSDIR automatically, by using a different directory for each Python
version.

PR:		238601
Submitted by:	Ralf van der Enden <tremere cainites net>
Approved by:	portmgr (blanket(s): just fix it, ports (python) compliance)
MFH:		2019Q2 (blanket: bugfix)
2019-06-16 09:25:47 +00:00

34 lines
777 B
Makefile

# Created by: Sofian Brabez <sbrabez@gmail.com>
# $FreeBSD$
PORTNAME= setproctitle
PORTVERSION= 1.1.10
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sbz@FreeBSD.org
COMMENT= Python module to customize the process title
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYRIGHT
USES= python
USE_PYTHON= autoplist concurrent distutils
PORTDOCS= HISTORY.rst README.rst
OPTIONS_DEFINE= DOCS
post-install:
@${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/setproctitle.so
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
do-test:
@cd ${WRKSRC}/tests && ${PYTHON_CMD} ${WRKSRC}/tests/setproctitle_test.py
.include <bsd.port.mk>