[PATCH] devel/py27-urwid: update to 1.1.1, Add OPTIONSFILE, regression-test target
Kubilay Kocak
koobs.freebsd at gmail.com
Thu Nov 22 09:35:46 UTC 2012
>Submitter-Id: current-users
>Originator: Kubilay Kocak
>Organization:
>Confidential: no
>Synopsis: [PATCH] devel/py27-urwid: update to 1.1.1, Add OPTIONSFILE, regression-test target
>Severity: non-critical
>Priority: low
>Category: ports
>Class: update
>Release: FreeBSD 9.0-RELEASE-p3 amd64
>Environment:
System: FreeBSD freebsd-9-amd64 9.0-RELEASE-p3 FreeBSD 9.0-RELEASE-p3 #0: Sat Jul 7 21:26:56 EST
>Description:
- Update to 1.1.1
- Add OPTIONSFILE to save OPTIONS properly
- Fix source directory for installing EXAMPLES
- Add regression-test target for unit tests
- Trim Makefile header
- Silence @cd calls
- Whitespace alignment
====[QA]====
portlint: WARN: Makefile: only one MASTER_SITE configured
porttest: OK (GCC & CLANG 9.0-RELEASE amd64)
unittest: Ran 283 tests in 0.490s - FAILED (failures=5, errors=4)
Note:
The same tests fail for previous version (1.0.2). Failures
are for doctests, are due to missing gobject import and fail on:
evl = GLibEventLoop()
============
Port maintainer (python at FreeBSD.org) is cc'd.
Generated with FreeBSD Port Tools 0.99_6 (mode: update, diff: ports)
>How-To-Repeat:
>Fix:
--- py27-urwid-1.1.1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/devel/py-urwid/Makefile ./Makefile
--- /usr/ports/devel/py-urwid/Makefile 2012-11-17 16:56:51.000000000 +1100
+++ ./Makefile 2012-11-22 20:20:12.000000000 +1100
@@ -1,12 +1,8 @@
-# New ports collection makefile for: py-urwid
-# Date created: 7 December 2004
-# Whom: Hye-Shik Chang <perky at FreeBSD.org>
-#
+# Created by: Hye-Shik Chang <perky at FreeBSD.org>
# $FreeBSD: ports/devel/py-urwid/Makefile,v 1.24 2012/11/17 05:56:51 svnexp Exp $
-#
PORTNAME= urwid
-PORTVERSION= 1.0.2
+PORTVERSION= 1.1.1
CATEGORIES= devel python
MASTER_SITES= http://excess.org/urwid/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -17,8 +13,10 @@
LICENSE= LGPL21
OPTIONS_DEFINE= EXAMPLES
+# Bypass ports infrastructure bug
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
-USE_PYTHON= yes
+USE_PYTHON= yes
USE_PYDISTUTILS= yes
PORTEXAMPLES= bigtext.py \
@@ -46,7 +44,10 @@
post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
${MKDIR} ${EXAMPLESDIR}/
- cd ${WRKSRC}/ && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
+ @cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
.endif
+regression-test: build
+ @cd ${WRKSRC} && ${PYTHON_CMD} -m urwid.tests
+
.include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/devel/py-urwid/distinfo ./distinfo
--- /usr/ports/devel/py-urwid/distinfo 2012-07-18 22:48:22.000000000 +1000
+++ ./distinfo 2012-11-22 20:18:07.000000000 +1100
@@ -1,2 +1,2 @@
-SHA256 (urwid-1.0.2.tar.gz) = 2e13bd98dc8162caeb768263b6805f98a468ccb3bc28f6eed54770c80a514b37
-SIZE (urwid-1.0.2.tar.gz) = 285489
+SHA256 (urwid-1.1.1.tar.gz) = b301b4e0c2cd1634390cda80149d8aa2a07365af81a281ecf258770e47d30e99
+SIZE (urwid-1.1.1.tar.gz) = 482432
--- py27-urwid-1.1.1.patch ends here ---
More information about the freebsd-python
mailing list