Lines 2-37
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= searx |
4 |
PORTNAME= searx |
5 |
PORTVERSION= 0.12.0 |
5 |
DISTVERSION= 0.14.0 |
6 |
DISTVERSIONPREFIX= v |
|
|
7 |
CATEGORIES= www python |
6 |
CATEGORIES= www python |
|
|
7 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
9 |
|
9 |
|
10 |
MAINTAINER= loic.blot@unix-experience.fr |
10 |
MAINTAINER= loic.blot@unix-experience.fr |
11 |
COMMENT= Searx / a privacy-respecting, hackable metasearch engine |
11 |
COMMENT= Privacy-respecting, hackable metasearch engine |
12 |
|
12 |
|
13 |
LICENSE= AGPLv3 |
13 |
LICENSE= AGPLv3 |
14 |
|
14 |
|
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}dateutil>=2.5.0:devel/py-dateutil@${FLAVOR} \ |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}certifi>0:security/py-certifi@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}Flask-Babel>=0.11.1:devel/py-flask-babel@${FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}lxml>=3.6.0:devel/py-lxml@${FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}Flask>0:www/py-flask@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}yaml>=3.11:devel/py-yaml@${FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}Flask-Babel>0:devel/py-flask-babel@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>=0.4.1:net/py-ndg_httpsclient@${FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}openssl>=0.15.1:security/py-openssl@${FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}ndg_httpsclient>0:net/py-ndg_httpsclient@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}pygments>=2.1.3:textproc/py-pygments@${FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}openssl>0:security/py-openssl@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}Flask>=0.11.1:www/py-flask@${FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}pygments>0:textproc/py-pygments@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}requests>=2.10:www/py-requests@${FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}splinter>0:www/py-splinter@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}certifi>=2016.2.28:security/py-certifi@${FLAVOR} |
25 |
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \ |
|
|
26 |
${PYTHON_PKGNAMEPREFIX}werkzeug>0:www/py-werkzeug@${PY_FLAVOR} |
26 |
|
27 |
|
|
|
28 |
USES= python |
29 |
USE_PYTHON= distutils autoplist noflavors |
30 |
NO_ARCH= yes |
27 |
USE_RC_SUBR= searx |
31 |
USE_RC_SUBR= searx |
28 |
|
32 |
|
29 |
USE_GITHUB= yes |
33 |
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} PYTHON_SITELIBDIR=${PYTHON_SITELIBDIR} |
30 |
GH_ACCOUNT= asciimoo |
|
|
31 |
GH_PROJECT= searx |
32 |
|
34 |
|
33 |
USES= python |
35 |
post-patch: # expect dependencies to be backwards-compatible, otherwise it is difficult to have a port |
34 |
NO_ARCH= yes |
36 |
@${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements.txt |
35 |
USE_PYTHON= autoplist distutils concurrent |
|
|
36 |
|
37 |
|
|
|
38 |
post-install: # workaround for https://github.com/asciimoo/searx/issues/1208 |
39 |
@${RM} -r ${STAGEDIR}${PYTHON_SITELIBDIR}/tests |
40 |
@${REINPLACE_CMD} -e 's|.*/tests/.*||' ${_PYTHONPKGLIST} |
41 |
|
37 |
.include <bsd.port.mk> |
42 |
.include <bsd.port.mk> |