summaryrefslogtreecommitdiff
path: root/devel/py-jaraco/Makefile
blob: b86feb4b3e5378c1802aa8616f7c4a7a28c44f54 (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
PORTNAME=	jaraco
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
PORTVERSION=	1
CATEGORIES=	devel python
DISTFILES=	# empty

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	Shared namespace shim for py-jaraco.* ports

LICENSE=	MIT

USES=		python:3.6+
USE_PYTHON=	flavors

NO_ARCH=	yes
NO_BUILD=	yes

PLIST_FILES=	${PYTHON_SITELIBDIR}/jaraco/__init__.py \
		${PYTHON_SITELIBDIR}/jaraco/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.opt-1.pyc \
		${PYTHON_SITELIBDIR}/jaraco/__pycache__/__init__.cpython-${PYTHON_SUFFIX}.pyc

do-install:
	${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco
	${ECHO_CMD} "__path__ = __import__('pkgutil').extend_path(__path__, __name__)" > ${STAGEDIR}${PYTHON_SITELIBDIR}/jaraco/__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>