ports/162811: [Update]www/py-bottle:update to 0.9.7

Wen Heping wen at FreeBSD.org
Thu Nov 24 12:20:09 UTC 2011


>Number:         162811
>Category:       ports
>Synopsis:       [Update]www/py-bottle:update to 0.9.7
>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 Nov 24 12:20:08 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Wen Heping
>Release:        
>Organization:
FreeBSD
>Environment:
>Description:
1 update to 0.9.7
2 now build with python3
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -urN py-bottle.orig/Makefile py-bottle/Makefile
--- py-bottle.orig/Makefile	2011-11-24 20:07:14.000000000 +0800
+++ py-bottle/Makefile	2011-11-24 16:32:23.000000000 +0800
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	bottle
-PORTVERSION=	0.9.6
+PORTVERSION=	0.9.7
 CATEGORIES=	www python
 MASTER_SITES=	CHEESESHOP \
 		http://nivi.interfree.it/distfiles/${PORTNAME}/
@@ -16,7 +16,7 @@
 COMMENT=	Fast and simple WSGI-framework for small web-applications
 
 # Python3 ready
-USE_PYTHON=	-2.7
+USE_PYTHON=		yes
 USE_PYDISTUTILS=	yes
 
 .include <bsd.port.mk>
diff -urN py-bottle.orig/distinfo py-bottle/distinfo
--- py-bottle.orig/distinfo	2011-11-24 20:07:14.000000000 +0800
+++ py-bottle/distinfo	2011-11-24 16:32:28.000000000 +0800
@@ -1,2 +1,2 @@
-SHA256 (bottle-0.9.6.tar.gz) = b9c894069a74db70b9f8717894957e1427ea2a662517fcde0e011351da89a69c
-SIZE (bottle-0.9.6.tar.gz) = 45332
+SHA256 (bottle-0.9.7.tar.gz) = 1ef0b6802eaf59a497fd9cea0cd949e396b82b7f9fcf926d8644fbe786b927ca
+SIZE (bottle-0.9.7.tar.gz) = 45388
diff -urN py-bottle.orig/files/patch-setup.py py-bottle/files/patch-setup.py
--- py-bottle.orig/files/patch-setup.py	1970-01-01 08:00:00.000000000 +0800
+++ py-bottle/files/patch-setup.py	2011-11-24 16:47:16.000000000 +0800
@@ -0,0 +1,16 @@
+--- setup.py.orig	2011-11-24 16:46:19.000000000 +0800
++++ setup.py	2011-11-24 16:46:55.000000000 +0800
+@@ -13,9 +13,10 @@
+     from distutils.command.build_py import build_py
+ 
+ # Ugly, but we can't import bottle with 3.x to read __version__ (throws SyntaxError)
+-for line in open(os.path.join(os.path.dirname(sys.argv[0]),'bottle.py')):
+-    if line.startswith('__version__'):
+-        version = eval(line.split('=')[-1])
++#for line in open(os.path.join(os.path.dirname(sys.argv[0]),'bottle.py')):
++#    if line.startswith('__version__'):
++#        version = eval(line.split('=')[-1])
++version='0.9.7'
+ 
+ setup(name='bottle',
+       version=version,


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



More information about the freebsd-ports-bugs mailing list