From 8f49288172b4c76b13d11f6da336e72d755ad62c Mon Sep 17 00:00:00 2001 From: Po-Chuan Hsieh Date: Sat, 9 Mar 2024 21:44:30 +0800 Subject: [PATCH] www/py-dj42-django-treebeard: Add py-dj42-django-treebeard 4.7.1 (copied from py-django-treebeard) django-treebeard is a library that implements efficient tree implementations for the Django Web Framework 1.8 and later. Features: - Flexible: Includes 3 different tree implementations with the same API: * Adjacency List * Materialized Path * Nested Sets - Fast: Optimized non-naive tree operations - Easy: Uses Django Model Inheritance with abstract classes to define your own models. - Clean: Testable and well tested code base. Code/branch test coverage is above 96%. --- www/Makefile | 1 + www/py-dj42-django-treebeard/Makefile | 37 ++++++++++++++++++++++++++ www/py-dj42-django-treebeard/distinfo | 3 +++ www/py-dj42-django-treebeard/pkg-descr | 14 ++++++++++ 4 files changed, 55 insertions(+) create mode 100644 www/py-dj42-django-treebeard/Makefile create mode 100644 www/py-dj42-django-treebeard/distinfo create mode 100644 www/py-dj42-django-treebeard/pkg-descr diff --git a/www/Makefile b/www/Makefile index 3d230de775fe..4e5fbc0d4bd3 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1518,6 +1518,7 @@ SUBDIR += py-dj42-django-tables2 SUBDIR += py-dj42-django-taggit SUBDIR += py-dj42-django-timezone-field + SUBDIR += py-dj42-django-treebeard SUBDIR += py-dj42-djangoql SUBDIR += py-dj42-djangorestframework SUBDIR += py-dj42-djangorestframework-guardian diff --git a/www/py-dj42-django-treebeard/Makefile b/www/py-dj42-django-treebeard/Makefile new file mode 100644 index 000000000000..9a3f7334f35f --- /dev/null +++ b/www/py-dj42-django-treebeard/Makefile @@ -0,0 +1,37 @@ +PORTNAME= django-treebeard +DISTVERSION= 4.7.1 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42- + +MAINTAINER= kai@FreeBSD.org +COMMENT= Efficient tree implementations for Django +WWW= https://github.com/django-treebeard/django-treebeard + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=3.2:www/py-django42@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest-django>=4.0:devel/py-pytest-django@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils pytest + +TEST_ENV= DATABASE_ENGINE=sqlite + +NO_ARCH= yes +PORTDOCS= * + +OPTIONS_DEFINE= DOCS +DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=2.2:www/py-django42@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}graphviz>0:graphics/py-graphviz@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}sphinx>=0,1:textproc/py-sphinx@${PY_FLAVOR} +DOCS_VARS= PYDISTUTILS_BUILD_TARGET+="build_sphinx -a -E" + +post-install-DOCS-on: + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @(cd ${WRKSRC}/build/sphinx/html && \ + ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} \ + "! -name .buildinfo -and ! -name objects.inv") + +.include diff --git a/www/py-dj42-django-treebeard/distinfo b/www/py-dj42-django-treebeard/distinfo new file mode 100644 index 000000000000..56310b6db66c --- /dev/null +++ b/www/py-dj42-django-treebeard/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1706970935 +SHA256 (django-treebeard-4.7.1.tar.gz) = 846e462904b437155f76e04907ba4e48480716855f88b898df4122bdcfbd6e98 +SIZE (django-treebeard-4.7.1.tar.gz) = 294139 diff --git a/www/py-dj42-django-treebeard/pkg-descr b/www/py-dj42-django-treebeard/pkg-descr new file mode 100644 index 000000000000..1529d6d19b22 --- /dev/null +++ b/www/py-dj42-django-treebeard/pkg-descr @@ -0,0 +1,14 @@ +django-treebeard is a library that implements efficient tree implementations for +the Django Web Framework 1.8 and later. + +Features: + +- Flexible: Includes 3 different tree implementations with the same API: + * Adjacency List + * Materialized Path + * Nested Sets +- Fast: Optimized non-naive tree operations +- Easy: Uses Django Model Inheritance with abstract classes to define your own + models. +- Clean: Testable and well tested code base. Code/branch test coverage is + above 96%.