Lines 1-8
Link Here
|
1 |
# Created by: Kubilay Kocak <koobs@FreeBSD.org> |
1 |
# Created by: Kubilay Kocak <koobs@FreeBSD.org> |
2 |
|
2 |
|
3 |
PORTNAME= dpaste |
3 |
PORTNAME= dpaste |
4 |
PORTVERSION= 3.3.1 |
4 |
PORTVERSION= 3.5 |
5 |
PORTREVISION= 1 |
|
|
6 |
CATEGORIES= www python |
5 |
CATEGORIES= www python |
7 |
MASTER_SITES= CHEESESHOP |
6 |
MASTER_SITES= CHEESESHOP |
8 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}django- |
7 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}django- |
Lines 13-33
COMMENT= Django based pastebin for text and code
Link Here
|
13 |
LICENSE= MIT |
12 |
LICENSE= MIT |
14 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
15 |
|
14 |
|
16 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \ |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django22>=2.2:www/py-django22@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}django22>=1.11:www/py-django22@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}dj-database-url>=0.5.0:www/py-dj-database-url@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}pygments>=1.6:textproc/py-pygments@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}django-csp>=3.6:www/py-django-csp@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}django-csp>=3.3:www/py-django-csp@${PY_FLAVOR} \ |
|
|
20 |
${PYTHON_PKGNAMEPREFIX}django-staticinline>=1.0:www/py-django-staticinline@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}django-staticinline>=1.0:www/py-django-staticinline@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}jsx-lexer>=0.0.7:textproc/py-jsx-lexer@${PY_FLAVOR} \ |
|
|
22 |
${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}docutils>0:textproc/py-docutils@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}misaka>=2.1.0:textproc/py-misaka@${PY_FLAVOR} |
20 |
${PYTHON_PKGNAMEPREFIX}jsx-lexer>=0.0.8:textproc/py-jsx-lexer@${PY_FLAVOR} \ |
|
|
21 |
${PYTHON_PKGNAMEPREFIX}misaka>=2.1.0:textproc/py-misaka@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}pygments>=1.6:textproc/py-pygments@${PY_FLAVOR} |
23 |
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}pytest-django>0:devel/py-pytest-django@${PY_FLAVOR} |
24 |
|
25 |
|
25 |
USES= python:3.4+ |
26 |
USES= python:3.6-3.10 |
26 |
USE_PYTHON= distutils autoplist |
27 |
USE_PYTHON= distutils autoplist |
27 |
|
28 |
|
|
|
29 |
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} |
30 |
|
28 |
NO_ARCH= yes |
31 |
NO_ARCH= yes |
29 |
|
32 |
|
30 |
do-test: |
33 |
do-test: |
31 |
@cd ${WRKSRC} && ${PYTHON_CMD} runtests.py |
34 |
@cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs --ds=dpaste.settings.tests -o addopts= |
32 |
|
35 |
|
33 |
.include <bsd.port.mk> |
36 |
.include <bsd.port.mk> |