summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--www/py-django/Makefile69
-rw-r--r--www/py-django/distinfo2
-rw-r--r--www/py-django/pkg-descr2
3 files changed, 18 insertions, 55 deletions
diff --git a/www/py-django/Makefile b/www/py-django/Makefile
index e3dc889c1168..434d72748f52 100644
--- a/www/py-django/Makefile
+++ b/www/py-django/Makefile
@@ -2,69 +2,32 @@
# $FreeBSD$
PORTNAME= django
-PORTVERSION= 1.8.7
CATEGORIES= www python
-MASTER_SITES= CHEESESHOP \
- https://www.djangoproject.com/m/releases/${PORTVERSION}/
+PORTVERSION= 1.11.1
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
-DISTNAME= Django-${PORTVERSION}
-DIST_SUBDIR= python
MAINTAINER= python@FreeBSD.org
-COMMENT= High-level Python Web Framework
+COMMENT= High-level Python Web Framework (meta port)
LICENSE= BSD3CLAUSE
-LICENSE_FILE= ${WRKSRC}/LICENSE
-USES= cpe python
-USE_PYTHON= autoplist distutils
+OPTIONS_SINGLE= DJANGO
+OPTIONS_SINGLE_DJANGO= DJANGO111 DJANGO110 DJANGO19 DJANGO18
+OPTIONS_DEFAULT= DJANGO111
+DJANGO18_DESC= Use Django 1.8.x
+DJANGO19_DESC= Use Django 1.9.x
+DJANGO110_DESC= Use Django 1.10.x
+DJANGO111_DESC= Use Django 1.11.x
-CPE_VENDOR= djangoproject
-
-CONFLICTS= py[23][0-9]-django-devel-[0-9]* py[23][0-9]-django-1.[0-57-9].*
-
-IGNORE= This port will switch to a meta port soon. Please use py-django18 instead.
-
-DOCSDIR= ${PREFIX}/share/doc/py-django
-
-OPTIONS_DEFINE= FASTCGI HTMLDOCS
-OPTIONS_DEFAULT= SQLITE
-
-OPTIONS_GROUP= DATABASE
-OPTIONS_GROUP_DATABASE= PGSQL MYSQL SQLITE
+PORTSCOUT= ignore:1
-HTMLDOCS_DESC= Install HTML documentation (requires Sphinx)
+USES= cpe metaport python:run
-PLIST_FILES= man/man1/django-admin.1.gz
-
-PGSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}psycopg2>0:databases/py-psycopg2
-MYSQL_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:databases/py-MySQLdb
-SQLITE_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sqlite3>0:databases/py-sqlite3
-FASTCGI_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flup>0:www/py-flup
-
-.include <bsd.port.options.mk>
-
-.if ${PORT_OPTIONS:MHTMLDOCS}
-. if empty(PORT_OPTIONS:MDOCS)
-IGNORE= you cannot build documentation with DOCS option disabled
-. endif
-BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx
-PORTDOCS= *
-.endif
-
-post-build:
-.if ${PORT_OPTIONS:MHTMLDOCS}
- cd ${WRKSRC}/docs && ${MAKE} html
-.endif
+CPE_VENDOR= djangoproject
-post-install:
- ${INSTALL_MAN} ${WRKSRC}/docs/man/* ${STAGEDIR}/${MAN1PREFIX}/man/man1
- @${ECHO_MSG} ""
- @${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
- @${ECHO_MSG} ""
-.if ${PORT_OPTIONS:MHTMLDOCS}
- ${MKDIR} ${STAGEDIR}/${DOCSDIR}
- ${CP} -R ${WRKSRC}/docs/_build/html ${STAGEDIR}/${DOCSDIR}
-.endif
+DJANGO18_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django18>=0:www/py-django18
+DJANGO19_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django19>=0:www/py-django19
+DJANGO110_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django110>=0:www/py-django110
+DJANGO111_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django111>=0:www/py-django111
.include <bsd.port.mk>
diff --git a/www/py-django/distinfo b/www/py-django/distinfo
deleted file mode 100644
index 10d6330565b9..000000000000
--- a/www/py-django/distinfo
+++ /dev/null
@@ -1,2 +0,0 @@
-SHA256 (python/Django-1.8.7.tar.gz) = 17a66de5cf59b5ee81c3dc57609b145bb45adddc0dc06937b998597d6e7b4523
-SIZE (python/Django-1.8.7.tar.gz) = 7276831
diff --git a/www/py-django/pkg-descr b/www/py-django/pkg-descr
index 638401f81c0e..97e1c61bab84 100644
--- a/www/py-django/pkg-descr
+++ b/www/py-django/pkg-descr
@@ -1,3 +1,5 @@
+This is a metaport for Django.
+
Django is a high-level Python Web framework that encourages rapid development
and clean, pragmatic design.