blob: 2277ff21a10983c02a226c757058badbd70b701b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: Makefile,v 1.9 2007/11/01 21:24:02 joerg Exp $
DISTNAME= Django-0.96.1
PKGNAME= ${PYPKGPREFIX}-django-0.96.1
CATEGORIES= www python
MASTER_SITES= http://media.djangoproject.com/releases/0.96/
MAINTAINER= joerg@NetBSD.org
HOMEPAGE= http://www.djangoproject.com/
COMMENT= Django, a high-level Python Web framework
PYDISTUTILSPKG= # yes
PYBINMODULE= # yes
PYTHON_VERSIONS_ACCEPTED= 24
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX:Q}
PKG_DESTDIR_SUPPORT= user-destdir
DEPENDS+= ${PYPKGPREFIX}-flup-[0-9]*:../../www/py-flup
.include "options.mk"
post-extract:
rm -r ${WRKSRC}/django/db/backends/ado_mssql
rm -r ${WRKSRC}/django/db/backends/oracle
.if empty(PKG_OPTIONS:Mmysql)
rm -r ${WRKSRC}/django/db/backends/mysql
.endif
.if empty(PKG_OPTIONS:Mpsycopg1) && empty(PKG_OPTIONS:Mpsycopg2)
rm -r ${WRKSRC}/django/db/backends/postgresql
.endif
.if empty(PKG_OPTIONS:Mpsycopg2)
rm -r ${WRKSRC}/django/db/backends/postgresql_psycopg2
.endif
.if empty(PKG_OPTIONS:Msqlite)
rm -r ${WRKSRC}/django/db/backends/sqlite3
.endif
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"
|