pkgsrc/www/py-django/Makefile
adam 461d5ee333 Changes 1.6.2:
Prevented the base geometry object of a prepared geometry to be garbage collected, which could lead to crash Django.
Fixed a crash when executing the changepassword command when the user object representation contained non-ASCII characters.
The collectstatic command will raise an error rather than default to using the current working directory if STATIC_ROOT is not set. Combined with the --clear option, the previous behavior could wipe anything below the current working directory.
Fixed mail encoding on Python 3.3.3+.
Fixed an issue where when settings.DATABASES['default']['AUTOCOMMIT'] = False, the connection wasn’t in autocommit mode but Django pretended it was.
Fixed a regression in multiple-table inheritance exclude() queries.
Added missing items to django.utils.timezone.__all__.
Fixed a field misalignment issue with select_related() and model inheritance.
Fixed join promotion for negated AND conditions.
Oracle database introspection now works with boolean and float fields.
Fixed an issue where lazy objects weren’t actually marked as safe when passed through mark_safe() and could end up being double-escaped
2014-02-09 08:09:04 +00:00

53 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.49 2014/02/09 08:09:04 adam Exp $
DISTNAME= Django-1.6.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:tl}
CATEGORIES= www python
MASTER_SITES= http://www.djangoproject.com/m/releases/${PKGVERSION_NOREV:R}/
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://www.djangoproject.com/
COMMENT= Django, a high-level Python Web framework
LICENSE= modified-bsd
PREV_PKGPATH= www/py-django-devel
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
USE_LANGUAGES= # empty
REPLACE_PYTHON= ${WRKSRC}/django/bin/*.py
REPLACE_PYTHON+= ${WRKSRC}/django/bin/profiling/*.py
REPLACE_PYTHON+= ${WRKSRC}/django/contrib/admin/bin/*.py
REPLACE_PYTHON+= ${WRKSRC}/django/contrib/admin/static/admin/js/*.py
REPLACE_PYTHON+= ${WRKSRC}/django/conf/project_template/*.py
PYTHON_VERSIONED_DEPENDENCIES= flup
.include "options.mk"
pre-configure:
.if empty(PKG_OPTIONS:Mmysql)
rm -r ${WRKSRC}/django/db/backends/mysql
.endif
.if empty(PKG_OPTIONS:Moracle)
rm -r ${WRKSRC}/django/db/backends/oracle
.endif
.if empty(PKG_OPTIONS:Mpgsql)
rm -r ${WRKSRC}/django/db/backends/postgresql_psycopg2
.endif
.if empty(PKG_OPTIONS:Msqlite)
rm -r ${WRKSRC}/django/db/backends/sqlite3
.endif
BACKEND_PATH= ${PYSITELIB}/django/db/backends
BACKEND_PATH_PLIST= $${PYSITELIB}/django/db/backends
PRINT_PLIST_AWK+= { gsub("^${BACKEND_PATH}/mysql/", "$${PLIST.mysql}${BACKEND_PATH_PLIST}/mysql/") }
PRINT_PLIST_AWK+= { gsub("^${BACKEND_PATH}/oracle/", "$${PLIST.oracle}${BACKEND_PATH_PLIST}/oracle/") }
PRINT_PLIST_AWK+= { gsub("^${BACKEND_PATH}/postgresql_psycopg2/", "$${PLIST.pgsql}${BACKEND_PATH_PLIST}/postgresql_psycopg2/") }
PRINT_PLIST_AWK+= { gsub("^${BACKEND_PATH}/sqlite3/", "$${PLIST.sqlite}${BACKEND_PATH_PLIST}/sqlite3/") }
.include "../../lang/python/application.mk"
.include "../../lang/python/distutils.mk"
.include "../../lang/python/versioned_dependencies.mk"
.include "../../mk/bsd.pkg.mk"