Line 0
Link Here
|
|
|
1 |
# $FreeBSD$ |
2 |
|
3 |
PORTNAME= opengrok-tools |
4 |
PORTVERSION= 1.1.2 |
5 |
CATEGORIES= devel python |
6 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
7 |
|
8 |
MAINTAINER= python@FreeBSD.org |
9 |
COMMENT= OpenGrok tools for synchronization and mirroring |
10 |
|
11 |
LICENSE= CDDL |
12 |
|
13 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR} |
14 |
|
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}jsonschema>=2.6.0:devel/py-jsonschema@${PY_FLAVOR} |
16 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}requests>=2.18.4:www/py-requests@${PY_FLAVOR} |
17 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} |
18 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}resource>=0.2.0:devel/py-resource@${PY_FLAVOR} |
19 |
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}filelock>0:sysutils/py-filelock@${PY_FLAVOR} |
20 |
|
21 |
# According to the vendor, Python3 is required |
22 |
USES= python:3.6 |
23 |
USE_PYTHON= distutils autoplist noflavors |
24 |
|
25 |
USE_GITHUB= yes |
26 |
|
27 |
GH_ACCOUNT= oracle |
28 |
GH_PROJECT= opengrok |
29 |
GH_TAGNAME= 1.1.2 |
30 |
|
31 |
BUILD_WRKSRC= ${WRKSRC}/opengrok-tools |
32 |
INSTALL_WRKSRC= ${BUILD_WRKSRC} |
33 |
|
34 |
post-patch: |
35 |
@${REINPLACE_CMD} -e 's|requests\=\=2\.20\.0|requests==2.18.4|g' ${BUILD_WRKSRC}/requirements.txt |
36 |
@${REINPLACE_CMD} -e 's|requests>\=2\.20\.0|requests>=2.18.4|g' ${BUILD_WRKSRC}/setup.py |
37 |
|
38 |
#do-build: |
39 |
# cd ${WRKSRC}/opengrok-tools && ${PYTHON_CMD} ${PYSETUP} build |
40 |
|
41 |
#do-install: |
42 |
# cd ${WRKSRC}/opengrok-tools && ${PYTHON_CMD} ${PYSETUP} install --prefix=${PREFIX} --root=${STAGEDIR} |
43 |
|
44 |
.include <bsd.port.mk> |