www/django1{4,6,7,8}: Reduce diffs between ports

Reduce diffs between Django ports, standardizing on:

 * Prefer CHEESESHOP (Geo CDN) over DjangoProject.com for DISTFILES
 * Include version and optionally "LTS" in COMMENT suffixes
 * De-scope CONFLICTS to CONFLICTS_INSTALL and update match strings
 * Whitespace alignment and improve readability
 * Use empty(VARIABLE) instead of ! ${VARIABLE}
 * Sort Makefile entries (CPE_VENDOR and CONFLICTS_INSTALL)

Approved by:	python (with hat)
This commit is contained in:
Kubilay Kocak 2015-09-01 05:47:40 +00:00
parent 98c3d8f445
commit bd4c68f35e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=395745
4 changed files with 27 additions and 26 deletions

View file

@ -4,15 +4,15 @@
PORTNAME= django
PORTVERSION= 1.4.22
CATEGORIES= www python
MASTER_SITES= https://www.djangoproject.com/m/releases/${PORTVERSION:R}/ \
CHEESESHOP
MASTER_SITES= CHEESESHOP \
https://www.djangoproject.com/m/releases/${PORTVERSION:R}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 14
DISTNAME= Django-${PORTVERSION}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= High-level Python Web framework
COMMENT= High-level Python Web Framework (1.4.x LTS)
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
@ -20,15 +20,17 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe python:2
USE_PYTHON= autoplist distutils
CONFLICTS= py[23][0-9]-django-devel-[0-9]* py[23][0-9]-django-1.[0-35-9].*
CPE_VENDOR= djangoproject
CONFLICTS_INSTALL= py??-django-devel-* py??-django-1.[012356789].*
CPE_VENDOR= djangoproject
DOCSDIR= ${PREFIX}/share/doc/py-django
OPTIONS_DEFINE= FASTCGI HTMLDOCS
OPTIONS_DEFAULT=SQLITE
OPTIONS_GROUP= DATABASE
OPTIONS_DEFINE= FASTCGI HTMLDOCS
OPTIONS_DEFAULT= SQLITE
OPTIONS_GROUP= DATABASE
OPTIONS_GROUP_DATABASE= PGSQL MYSQL SQLITE
HTMLDOCS_DESC= Install HTML documentation (requires Sphinx)
PLIST_FILES= man/man1/daily_cleanup.1.gz \
@ -43,7 +45,7 @@ FASTCGI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MHTMLDOCS}
. if ! ${PORT_OPTIONS:MDOCS}
. if empty(PORT_OPTIONS:MDOCS)
IGNORE= you cannot build documentation with DOCS option disabled
. endif
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx

View file

@ -4,15 +4,15 @@
PORTNAME= django
PORTVERSION= 1.6.11
CATEGORIES= www python
MASTER_SITES= https://www.djangoproject.com/m/releases/${PORTVERSION}/ \
CHEESESHOP
MASTER_SITES= CHEESESHOP \
https://www.djangoproject.com/m/releases/${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 16
DISTNAME= Django-${PORTVERSION}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= High-level Python Web framework
COMMENT= High-level Python Web Framework (1.6.x)
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
@ -23,9 +23,8 @@ EXPIRATION_DATE= 2015-10-01
USES= cpe python
USE_PYTHON= autoplist distutils
CPE_VENDOR= djangoproject
CONFLICTS= py[23][0-9]-django-devel-[0-9]* py[23][0-9]-django-1.[0-57-9].*
CONFLICTS_INSTALL= py??-django-devel-* py??-django-1.[012345789].*
CPE_VENDOR= djangoproject
DOCSDIR= ${PREFIX}/share/doc/py-django

View file

@ -4,15 +4,15 @@
PORTNAME= django
PORTVERSION= 1.7.10
CATEGORIES= www python
MASTER_SITES= https://www.djangoproject.com/m/releases/${PORTVERSION}/ \
CHEESESHOP
MASTER_SITES= CHEESESHOP \
https://www.djangoproject.com/m/releases/${PORTVERSION}/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
PKGNAMESUFFIX= 17
DISTNAME= Django-${PORTVERSION}
DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
COMMENT= High-level Python Web framework
COMMENT= High-level Python Web Framework (1.7.x)
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
@ -20,16 +20,17 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe python
USE_PYTHON= autoplist distutils
CPE_VENDOR= djangoproject
CONFLICTS= py[23][0-9]-django-devel-[0-9]* py[23][0-9]-django-1.[0-57-9].*
CONFLICTS_INSTALL= py??-django-devel-* py??-django-1.[012345689].*
CPE_VENDOR= djangoproject
DOCSDIR= ${PREFIX}/share/doc/py-django
OPTIONS_DEFINE= FASTCGI HTMLDOCS
OPTIONS_DEFAULT=SQLITE
OPTIONS_GROUP= DATABASE
OPTIONS_DEFINE= FASTCGI HTMLDOCS
OPTIONS_DEFAULT= SQLITE
OPTIONS_GROUP= DATABASE
OPTIONS_GROUP_DATABASE= PGSQL MYSQL SQLITE
HTMLDOCS_DESC= Install HTML documentation (requires Sphinx)
PLIST_FILES= man/man1/django-admin.1.gz \

View file

@ -20,9 +20,8 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
USES= cpe python
USE_PYTHON= autoplist distutils
CPE_VENDOR= djangoproject
CONFLICTS_INSTALL= py??-django-devel-* py??-django-1.[012345679].*
CPE_VENDOR= djangoproject
DOCSDIR= ${PREFIX}/share/doc/py-django