1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00

- Update to 1.3.3

- Convert to new options framework

PR:		ports/170496
Submitted by:	Po-Chien Lin <linpc@cs.nctu.edu.tw>
This commit is contained in:
Li-Wen Hsu 2012-08-31 17:55:22 +00:00
parent 5a9e59c5c5
commit e256fe50e5
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=303438
2 changed files with 17 additions and 18 deletions

View File

@ -6,7 +6,7 @@
#
PORTNAME= django
PORTVERSION= 1.3.2
PORTVERSION= 1.3.3
CATEGORIES= www python
MASTER_SITES= http://www.djangoproject.com/m/releases/${PORTVERSION:R}/ \
CHEESESHOP
@ -30,11 +30,10 @@ CONFLICTS= py2[0-9]-django-devel-[0-9]* py2[0-9]-django-1.[24]*
DOCSDIR= ${PREFIX}/share/doc/py-django
OPTIONS= POSTGRESQL "PostgreSQL support" off \
MYSQL "MySQL support" off \
SQLITE "SQLite support" off \
FASTCGI "FastCGI support" off \
DOCS "Install HTML documentation (requires Sphinx)" off
OPTIONS_DEFINE= PGSQL MYSQL SQLITE FASTCGI HTMLDOCS
OPTIONS_DEFAULT=
HTMLDOCS_DESC= Build and install the HTML documentation (requires Sphinx)
MAN1= daily_cleanup.1 django-admin.1 gather_profile_stats.1
@ -43,34 +42,34 @@ OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
.include <bsd.port.pre.mk>
.if defined(WITH_POSTGRESQL)
.if ${PORT_OPTIONS:MPGSQL}
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/psycopg2/_psycopg.so:${PORTSDIR}/databases/py-psycopg2
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-changeset_16520.diff
.endif
.if defined(WITH_MYSQL)
.if ${PORT_OPTIONS:MMYSQL}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}MySQLdb>=1.2.2:${PORTSDIR}/databases/py-MySQLdb
.endif
.if defined(WITH_SQLITE)
.if ${PORT_OPTIONS:MSQLITE}
RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
.endif
.if defined(WITH_FASTCGI)
.if ${PORT_OPTIONS:MFASTCGI}
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}flup>0:${PORTSDIR}/www/py-flup
.endif
.if defined(WITH_DOCS)
.if ${PORT_OPTIONS:MHTMLDOCS}
. if defined(NOPORTDOCS)
IGNORE= you cannot build documentation while setting NOPORTDOCS
. endif
BUILD_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}sphinx>0:${PORTSDIR}/textproc/py-sphinx
EXTRA_PATCHES+= ${FILESDIR}/extra-patch-changeset_16223_16231.diff
PORTDOCS= *
.endif
post-build:
.if defined(WITH_DOCS)
. if defined(NOPORTDOCS)
IGNORE= you cannot build documentation while setting NOPORTDOCS
. endif
.if ${PORT_OPTIONS:MHTMLDOCS}
cd ${WRKSRC}/docs && ${MAKE} html
.endif
@ -79,7 +78,7 @@ post-install:
@${ECHO_MSG} ""
@${ECHO_MSG} " * See http://docs.djangoproject.com/ for complete documentation"
@${ECHO_MSG} ""
.if defined(WITH_DOCS)
.if ${PORT_OPTIONS:MHTMLDOCS}
${MKDIR} ${DOCSDIR}
${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
.endif

View File

@ -1,2 +1,2 @@
SHA256 (python/Django-1.3.2.tar.gz) = 72c4080fe30863c4581521ef6f7bfcc12d01e7c55b9ad1935acaa43e466dd764
SIZE (python/Django-1.3.2.tar.gz) = 6507042
SHA256 (python/Django-1.3.3.tar.gz) = 8ef44cfd89dee0331018ec56a2ed27dc14ae8d65feb664c10e128b3437cbd46a
SIZE (python/Django-1.3.3.tar.gz) = 6507280