Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 9 Aug 2012 10:52:19 +0800 (CST)
From:      Po-Chien Lin <linpc@cs.nctu.edu.tw>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        lwhsu@FreeBSD.org
Subject:   ports/170496: [PATCH] www/py-django13: update to 1.3.3
Message-ID:  <201208090252.q792qJSJ039981@tbsd5.cs.nctu.edu.tw>
Resent-Message-ID: <201208090300.q79308vY079396@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         170496
>Category:       ports
>Synopsis:       [PATCH] www/py-django13: update to 1.3.3
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Thu Aug 09 03:00:08 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     Po-Chien Lin
>Release:        FreeBSD 8.2-RELEASE-p3 amd64
>Organization:
>Environment:
System: FreeBSD tbsd5.cs.nctu.edu.tw 8.2-RELEASE-p3 FreeBSD 8.2-RELEASE-p3 #0: Tue Sep 27 18:45:57 UTC 2011
>Description:
- Update to 1.3.3
- Convert to new options framework

Port maintainer (lwhsu@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: suffix)
>How-To-Repeat:
>Fix:

--- py27-django-1.3.3.patch begins here ---
diff -ruN --exclude=CVS ../py-django13.orig/Makefile ./Makefile
--- ../py-django13.orig/Makefile	2012-08-09 10:26:16.611419235 +0800
+++ ./Makefile	2012-08-09 10:46:52.175107596 +0800
@@ -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,14 @@
 
 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=	POSTGRESQL MYSQL SQLITE FASTCGI DOCS
+OPTIONS_DEFAULT=
+
+POSTGRESQL_DESC=	PostgreSQL support
+MYSQL_DESC=	MySQL support
+SQLITE_DESC=	SQLite support
+FASTCGI_DESC=	FastCGI support
+DOCS_DESC=	Install HTML documentation (requires Sphinx)
 
 MAN1=		daily_cleanup.1 django-admin.1 gather_profile_stats.1
 
@@ -43,31 +46,31 @@
 
 .include <bsd.port.pre.mk>
 
-.if defined(WITH_POSTGRESQL)
+.if ${PORT_OPTIONS:MPOSTGRESQL}
 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:MDOCS}
 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 ${PORT_OPTIONS:MDOCS}
 .	if defined(NOPORTDOCS)
 IGNORE=	you cannot build documentation while setting NOPORTDOCS
 .	endif
@@ -79,7 +82,7 @@
 	@${ECHO_MSG}	""
 	@${ECHO_MSG}	"			* See http://docs.djangoproject.com/ for complete documentation"
 	@${ECHO_MSG}	""
-.if defined(WITH_DOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
 	${CP} -R ${WRKSRC}/docs/_build/html ${DOCSDIR}
 .endif
diff -ruN --exclude=CVS ../py-django13.orig/distinfo ./distinfo
--- ../py-django13.orig/distinfo	2012-08-09 10:26:16.611419235 +0800
+++ ./distinfo	2012-08-09 10:47:25.436001338 +0800
@@ -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
--- py27-django-1.3.3.patch ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201208090252.q792qJSJ039981>