aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPo-Chuan Hsieh <sunpoet@FreeBSD.org>2026-04-18 21:55:32 +0000
committerPo-Chuan Hsieh <sunpoet@FreeBSD.org>2026-04-18 21:55:55 +0000
commitc0bfae42eae007d0b945a7cf8a9ae618e0248764 (patch)
tree3c2ecec37390bcbac5826de4e99e24693516371f
parent1bb643e111207c8df7df614afb85cb4349414e9a (diff)
www/py-postorius: Add EXAMPLES option
- Bump PORTREVISION for package change PR: 294555 Requested by: leres
-rw-r--r--www/py-postorius/Makefile6
-rw-r--r--www/py-postorius/pkg-plist9
2 files changed, 15 insertions, 0 deletions
diff --git a/www/py-postorius/Makefile b/www/py-postorius/Makefile
index 2123a0e89ac8..0ed02550d6b6 100644
--- a/www/py-postorius/Makefile
+++ b/www/py-postorius/Makefile
@@ -1,5 +1,6 @@
PORTNAME= postorius
PORTVERSION= 1.3.13
+PORTREVISION= 1
CATEGORIES= www
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -31,4 +32,9 @@ CPE_VENDOR= postorius_project
SHEBANG_FILES= example_project/manage.py
+OPTIONS_DEFINE= EXAMPLES
+
+post-install-EXAMPLES-on:
+ cd ${WRKSRC} && ${COPYTREE_SHARE} example_project ${STAGEDIR}${EXAMPLESDIR}
+
.include <bsd.port.mk>
diff --git a/www/py-postorius/pkg-plist b/www/py-postorius/pkg-plist
new file mode 100644
index 000000000000..78a9fd2f37ec
--- /dev/null
+++ b/www/py-postorius/pkg-plist
@@ -0,0 +1,9 @@
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/README.rst
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/__init__.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/logs/.keep
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/mailman.cfg
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/manage.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/settings.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/test_settings.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/urls.py
+%%PORTEXAMPLES%%%%EXAMPLESDIR%%/example_project/wsgi.py