1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00

- Update to 1.0 (based on [1])

- Fix dependency on sqlite3, for PYTHON_REL >= 250, uses databases/py-sqlite3,
  for PYTHON_REL < 250, uses databases/py-pysqlite23 (based on [2])
- Make document installation as an option

PR:		[1] ports/127113, [2] ports/126982
Submitted by:	Artis Caune <Artis.Caune AT gmail.com> [1]
		Julien Laffaye <kimelto AT gmail.com> [2]
This commit is contained in:
Li-Wen Hsu 2008-09-07 19:49:04 +00:00
parent b652cfa177
commit 589d11632a
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=220157
12 changed files with 5484 additions and 984 deletions

View File

@ -6,10 +6,9 @@
#
PORTNAME= django
PORTVERSION= 0.96.2
PORTREVISION= 1
PORTVERSION= 1.0
CATEGORIES= www python
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION:R}/ \
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION}/ \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Django-${PORTVERSION}
@ -22,6 +21,7 @@ USE_GETTEXT= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Django
PYDISTUTILS_PKGVERSION= 1.0_final
CONFLICTS= py2[0-9]-django-devel-[0-9]*
@ -31,7 +31,10 @@ OPTIONS= MOD_PYTHON3 "Install Apache2 with mod_python3" off \
POSTGRESQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
SQLITE "SQLite support" off \
FASTCGI "FastCGI support" off
FASTCGI "FastCGI support" off \
DOCS "Install HTML documentation (requires Sphinx)" off
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
@ -51,24 +54,35 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_mysql.so:${PORTSDIR}/databases/py-MySQLdb
.endif
.if defined(WITH_SQLITE)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif
.endif
.if defined(WITH_FASTCGI)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
.endif
.if defined(WITH_DOCS)
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
PORTDOCS= *
.endif
post-build:
.if defined(WITH_DOCS)
cd ${WRKSRC}/docs && ${MAKE} html
.endif
post-install:
.if !defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${MAN1PREFIX}/man/man1
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
@${ECHO_MSG} ""
.if defined(WITH_DOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
@${ECHO_MSG} ""
@${ECHO_MSG} " * See ${DOCSDIR} for complete documentation"
@${ECHO_MSG} ""
.else
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://www.djangoproject.com/documentation/ for complete documentation"
@${ECHO_MSG} ""
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (python/Django-0.96.2.tar.gz) = 2e39a43b93b50c2ca90bcade26010878
SHA256 (python/Django-0.96.2.tar.gz) = 8964023587331412aed118549c83cf0dcc106850833cc75573e8671b68ecf29c
SIZE (python/Django-0.96.2.tar.gz) = 1637044
MD5 (python/Django-1.0.tar.gz) = 84d0490e4126f31d1c23f640e1e86f2f
SHA256 (python/Django-1.0.tar.gz) = 4c780b9e2906944ce02a9325b15f480d2bd4c0b12137f752aa4800c0f8563acf
SIZE (python/Django-1.0.tar.gz) = 4789634

File diff suppressed because it is too large Load Diff

View File

@ -6,10 +6,9 @@
#
PORTNAME= django
PORTVERSION= 0.96.2
PORTREVISION= 1
PORTVERSION= 1.0
CATEGORIES= www python
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION:R}/ \
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION}/ \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Django-${PORTVERSION}
@ -22,6 +21,7 @@ USE_GETTEXT= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Django
PYDISTUTILS_PKGVERSION= 1.0_final
CONFLICTS= py2[0-9]-django-devel-[0-9]*
@ -31,7 +31,10 @@ OPTIONS= MOD_PYTHON3 "Install Apache2 with mod_python3" off \
POSTGRESQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
SQLITE "SQLite support" off \
FASTCGI "FastCGI support" off
FASTCGI "FastCGI support" off \
DOCS "Install HTML documentation (requires Sphinx)" off
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
@ -51,24 +54,35 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_mysql.so:${PORTSDIR}/databases/py-MySQLdb
.endif
.if defined(WITH_SQLITE)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif
.endif
.if defined(WITH_FASTCGI)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
.endif
.if defined(WITH_DOCS)
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
PORTDOCS= *
.endif
post-build:
.if defined(WITH_DOCS)
cd ${WRKSRC}/docs && ${MAKE} html
.endif
post-install:
.if !defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${MAN1PREFIX}/man/man1
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
@${ECHO_MSG} ""
.if defined(WITH_DOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
@${ECHO_MSG} ""
@${ECHO_MSG} " * See ${DOCSDIR} for complete documentation"
@${ECHO_MSG} ""
.else
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://www.djangoproject.com/documentation/ for complete documentation"
@${ECHO_MSG} ""
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (python/Django-0.96.2.tar.gz) = 2e39a43b93b50c2ca90bcade26010878
SHA256 (python/Django-0.96.2.tar.gz) = 8964023587331412aed118549c83cf0dcc106850833cc75573e8671b68ecf29c
SIZE (python/Django-0.96.2.tar.gz) = 1637044
MD5 (python/Django-1.0.tar.gz) = 84d0490e4126f31d1c23f640e1e86f2f
SHA256 (python/Django-1.0.tar.gz) = 4c780b9e2906944ce02a9325b15f480d2bd4c0b12137f752aa4800c0f8563acf
SIZE (python/Django-1.0.tar.gz) = 4789634

File diff suppressed because it is too large Load Diff

View File

@ -6,10 +6,9 @@
#
PORTNAME= django
PORTVERSION= 0.96.2
PORTREVISION= 1
PORTVERSION= 1.0
CATEGORIES= www python
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION:R}/ \
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION}/ \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Django-${PORTVERSION}
@ -22,6 +21,7 @@ USE_GETTEXT= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Django
PYDISTUTILS_PKGVERSION= 1.0_final
CONFLICTS= py2[0-9]-django-devel-[0-9]*
@ -31,7 +31,10 @@ OPTIONS= MOD_PYTHON3 "Install Apache2 with mod_python3" off \
POSTGRESQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
SQLITE "SQLite support" off \
FASTCGI "FastCGI support" off
FASTCGI "FastCGI support" off \
DOCS "Install HTML documentation (requires Sphinx)" off
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
@ -51,24 +54,35 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_mysql.so:${PORTSDIR}/databases/py-MySQLdb
.endif
.if defined(WITH_SQLITE)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif
.endif
.if defined(WITH_FASTCGI)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
.endif
.if defined(WITH_DOCS)
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
PORTDOCS= *
.endif
post-build:
.if defined(WITH_DOCS)
cd ${WRKSRC}/docs && ${MAKE} html
.endif
post-install:
.if !defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${MAN1PREFIX}/man/man1
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
@${ECHO_MSG} ""
.if defined(WITH_DOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
@${ECHO_MSG} ""
@${ECHO_MSG} " * See ${DOCSDIR} for complete documentation"
@${ECHO_MSG} ""
.else
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://www.djangoproject.com/documentation/ for complete documentation"
@${ECHO_MSG} ""
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (python/Django-0.96.2.tar.gz) = 2e39a43b93b50c2ca90bcade26010878
SHA256 (python/Django-0.96.2.tar.gz) = 8964023587331412aed118549c83cf0dcc106850833cc75573e8671b68ecf29c
SIZE (python/Django-0.96.2.tar.gz) = 1637044
MD5 (python/Django-1.0.tar.gz) = 84d0490e4126f31d1c23f640e1e86f2f
SHA256 (python/Django-1.0.tar.gz) = 4c780b9e2906944ce02a9325b15f480d2bd4c0b12137f752aa4800c0f8563acf
SIZE (python/Django-1.0.tar.gz) = 4789634

File diff suppressed because it is too large Load Diff

View File

@ -6,10 +6,9 @@
#
PORTNAME= django
PORTVERSION= 0.96.2
PORTREVISION= 1
PORTVERSION= 1.0
CATEGORIES= www python
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION:R}/ \
MASTER_SITES= http://media.djangoproject.com/releases/${PORTVERSION}/ \
http://www.cs.nctu.edu.tw/~lwhsu/ports/distfiles/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= Django-${PORTVERSION}
@ -22,6 +21,7 @@ USE_GETTEXT= yes
USE_PYTHON= yes
USE_PYDISTUTILS= yes
PYDISTUTILS_PKGNAME= Django
PYDISTUTILS_PKGVERSION= 1.0_final
CONFLICTS= py2[0-9]-django-devel-[0-9]*
@ -31,7 +31,10 @@ OPTIONS= MOD_PYTHON3 "Install Apache2 with mod_python3" off \
POSTGRESQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
SQLITE "SQLite support" off \
FASTCGI "FastCGI support" off
FASTCGI "FastCGI support" off \
DOCS "Install HTML documentation (requires Sphinx)" off
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
# bypass infrastructure bug
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
@ -51,24 +54,35 @@ RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_mysql.so:${PORTSDIR}/databases/py-MySQLdb
.endif
.if defined(WITH_SQLITE)
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite20
.if ${PYTHON_REL} < 250
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/pysqlite2/__init__.py:${PORTSDIR}/databases/py-pysqlite23
.else
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif
.endif
.if defined(WITH_FASTCGI)
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
.endif
.if defined(WITH_DOCS)
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
PORTDOCS= *
.endif
post-build:
.if defined(WITH_DOCS)
cd ${WRKSRC}/docs && ${MAKE} html
.endif
post-install:
.if !defined(NOPORTDOCS)
${INSTALL_MAN} ${WRKSRC}/docs/man/* ${MAN1PREFIX}/man/man1
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
@${ECHO_MSG} ""
.if defined(WITH_DOCS)
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/docs/* ${DOCSDIR}
@${ECHO_MSG} ""
@${ECHO_MSG} " * See ${DOCSDIR} for complete documentation"
@${ECHO_MSG} ""
.else
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://www.djangoproject.com/documentation/ for complete documentation"
@${ECHO_MSG} ""
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
.endif
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (python/Django-0.96.2.tar.gz) = 2e39a43b93b50c2ca90bcade26010878
SHA256 (python/Django-0.96.2.tar.gz) = 8964023587331412aed118549c83cf0dcc106850833cc75573e8671b68ecf29c
SIZE (python/Django-0.96.2.tar.gz) = 1637044
MD5 (python/Django-1.0.tar.gz) = 84d0490e4126f31d1c23f640e1e86f2f
SHA256 (python/Django-1.0.tar.gz) = 4c780b9e2906944ce02a9325b15f480d2bd4c0b12137f752aa4800c0f8563acf
SIZE (python/Django-1.0.tar.gz) = 4789634

File diff suppressed because it is too large Load Diff