40 lines
1 KiB
Makefile
40 lines
1 KiB
Makefile
# Created by: Antoine Brodin <antoine@FreeBSD.org>
|
|
|
|
PORTNAME= python-registry
|
|
PORTVERSION= 1.4
|
|
CATEGORIES= security devel python
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= antoine@FreeBSD.org
|
|
COMMENT= Read access to Windows Registry files
|
|
|
|
LICENSE= APACHE20
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE.TXT
|
|
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}enum-compat>=0:devel/py-enum-compat@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}unicodecsv>=0:devel/py-unicodecsv@${PY_FLAVOR}
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= williballenthin
|
|
|
|
NO_ARCH= yes
|
|
USES= python:3.6+ shebangfix
|
|
USE_PYTHON= distutils autoplist concurrent
|
|
SHEBANG_FILES= samples/*.py
|
|
python_OLD_CMD= .*
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
PORTDOCS= *
|
|
PORTEXAMPLES= *
|
|
|
|
do-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/CHANGELOG.TXT ${WRKSRC}/CONTRIBUTORS.TXT ${WRKSRC}/README.MD \
|
|
${WRKSRC}/documentation/* ${STAGEDIR}${DOCSDIR}
|
|
|
|
do-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${WRKSRC}/samples/*.py ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|