49 lines
1.8 KiB
Makefile
49 lines
1.8 KiB
Makefile
PORTNAME= postorius
|
|
PORTVERSION= 1.3.13
|
|
PORTREVISION= 5
|
|
CATEGORIES= www
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
PATCH_SITES= https://gitlab.com/mailman/postorius/-/commit/
|
|
PATCHFILES= c4706abd05ba6bcf472fc674b160d3a9d6a4868b.patch:-p1
|
|
|
|
MAINTAINER= sunpoet@FreeBSD.org
|
|
COMMENT= Web user interface for GNU Mailman
|
|
WWW= https://docs.mailman3.org/projects/postorius/en/latest/ \
|
|
https://gitlab.com/mailman/postorius
|
|
|
|
LICENSE= GPLv3
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pdm-backend>=0:devel/py-pdm-backend@${PY_FLAVOR}
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-mailman3>=1.3.13:mail/py-django-mailman3@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}django52>=4.2<5.3:www/py-django52@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}mailmanclient>=3.3.3:mail/py-mailmanclient@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}readme-renderer>=0:devel/py-readme-renderer@${PY_FLAVOR}
|
|
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup4>=0:www/py-beautifulsoup4@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}django-debug-toolbar>=0:www/py-django-debug-toolbar@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}django-requests-debug-toolbar>=0:www/py-django-requests-debug-toolbar@${PY_FLAVOR} \
|
|
${PYTHON_PKGNAMEPREFIX}isort>=0:devel/py-isort@${PY_FLAVOR}
|
|
|
|
USES= cpe python shebangfix
|
|
USE_PYTHON= autoplist concurrent pep517
|
|
|
|
NO_ARCH= yes
|
|
|
|
CPE_VENDOR= postorius_project
|
|
|
|
SHEBANG_FILES= example_project/manage.py
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
post-patch:
|
|
# https://gitlab.com/mailman/postorius/-/commit/c4706abd05ba6bcf472fc674b160d3a9d6a4868b
|
|
@${RM} ${WRKSRC}/src/postorius/doc/news.rst.orig
|
|
@${RM} ${WRKSRC}/src/postorius/static/postorius/js/held_messages.js.orig
|
|
|
|
post-install-EXAMPLES-on:
|
|
cd ${WRKSRC} && ${COPYTREE_SHARE} example_project ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|