Skip to content

Commit

Permalink
www/py-dj42-django-crispy-forms: New port
Browse files Browse the repository at this point in the history
Django 4.2 version of www/py-django-crispy-forms, happy to pass
it to its maintainer or make it disappear, once 4.2 is the default
django version.
  • Loading branch information
grembo committed Feb 22, 2024
1 parent 49cef76 commit c4523f5
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions www/Makefile
Expand Up @@ -1499,6 +1499,7 @@
SUBDIR += py-dj42-django-celery-results
SUBDIR += py-dj42-django-compression-middleware
SUBDIR += py-dj42-django-cors-headers
SUBDIR += py-dj42-django-crispy-forms
SUBDIR += py-dj42-django-debug-toolbar
SUBDIR += py-dj42-django-extensions
SUBDIR += py-dj42-django-filter
Expand Down
27 changes: 27 additions & 0 deletions www/py-dj42-django-crispy-forms/Makefile
@@ -0,0 +1,27 @@
PORTNAME= django-crispy-forms
PORTVERSION= 2.0
CATEGORIES= www python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}dj42-

MAINTAINER= grembo@FreeBSD.org
COMMENT= Best way to have Django DRY forms
WWW= https://github.com/django-crispy-forms/django-crispy-forms

LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=61.0:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django42>=0:www/py-django42@${PY_FLAVOR}

USES= dos2unix python
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

CONFLICTS_INSTALL= ${PYTHON_PKGNAMEPREFIX}dj22-django-crispy-forms

PORTSCOUT= skipv:2.1

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions www/py-dj42-django-crispy-forms/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1684104566
SHA256 (django-crispy-forms-2.0.tar.gz) = 90193b068bf948d9c68449bc8260afed1a8e2afe11ee0bac8c4ebfaeb175b322
SIZE (django-crispy-forms-2.0.tar.gz) = 277697
12 changes: 12 additions & 0 deletions www/py-dj42-django-crispy-forms/pkg-descr
@@ -0,0 +1,12 @@
The best way to have Django DRY forms. Build programmatic reusable layouts out
of components, having full control of the rendered HTML without writing HTML in
templates. All this without breaking the standard way of doing things in Django,
so it plays nice with any other form application.

The application mainly provides:
- A filter named |crispy that will render elegant div based forms. Think of it
as the built-in methods: as_table, as_ul and as_p. You cannot tune up the
output, but it is easy to start using it.
- A tag named {% crispy %} that will render a form based on your configuration
and specific layout setup. This gives you amazing power without much hassle,
helping you save tons of time.

0 comments on commit c4523f5

Please sign in to comment.