freebsd-ports/devel/py-opengrok-tools/Makefile
2019-04-26 20:19:19 +00:00

36 lines
1.1 KiB
Makefile

# $FreeBSD$
PORTNAME= opengrok-tools
PORTVERSION= 1.2.7
CATEGORIES= devel python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= swills@FreeBSD.org
COMMENT= OpenGrok tools for synchronization and mirroring
LICENSE= CDDL
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6.0:devel/py-jsonschema@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}requests>=2.18.4:www/py-requests@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}resource>=0.2.0:devel/py-resource@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR}
# According to the vendor, Python3 is required
USES= python:3.5+
USE_PYTHON= autoplist distutils noflavors
USE_GITHUB= yes
GH_ACCOUNT= oracle
GH_PROJECT= opengrok
BUILD_WRKSRC= ${WRKSRC}/opengrok-tools
INSTALL_WRKSRC= ${BUILD_WRKSRC}
post-patch:
@${REINPLACE_CMD} -e 's|requests\=\=2\.20\.0|requests==2.18.4|g' ${BUILD_WRKSRC}/requirements.txt
@${REINPLACE_CMD} -e 's|requests>\=2\.20\.0|requests>=2.18.4|g' ${BUILD_WRKSRC}/setup.py
.include <bsd.port.mk>