blob: 5f2b24014580cc705c65fb32a06537dbb5bb386b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
PORTNAME= backports
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PORTVERSION= 1
CATEGORIES= devel python
DISTFILES=
MAINTAINER= lifanov@FreeBSD.org
COMMENT= Shared namespace shim for py-backports.* ports
LICENSE= MIT
USES= python:3.6+
USE_PYTHON= flavors py3kplist
NO_ARCH= yes
NO_BUILD= yes
PLIST_FILES= ${PYTHON_SITELIBDIR}/backports/__init__.py \
${PYTHON_SITELIBDIR}/backports/__init__.pyc \
${PYTHON_SITELIBDIR}/backports/__init__.pyo
do-install:
${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/backports
${ECHO_CMD} "__path__ = __import__('pkgutil').extend_path(__path__, __name__)" > ${STAGEDIR}${PYTHON_SITELIBDIR}/backports/__init__.py
${PYTHON_CMD} -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${PYTHON_CMD} -O -m compileall -d ${PYTHON_SITELIBDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
.include <bsd.port.mk>
|