aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-12-02 18:18:18 +0800
committerrm <rm@FreeBSD.org>2012-12-02 18:18:18 +0800
commitd3e13e0b33dc0e2fa24b2b9a5ce7260745907f14 (patch)
tree3d94f5f6abf4677c5ab440d9a316f7c2a6bad6a7
parent0f102abf1cef704d5c6bf7bbf5494391577dd585 (diff)
downloadfreebsd-ports-gnome-d3e13e0b33dc0e2fa24b2b9a5ce7260745907f14.tar.gz
freebsd-ports-gnome-d3e13e0b33dc0e2fa24b2b9a5ce7260745907f14.tar.zst
freebsd-ports-gnome-d3e13e0b33dc0e2fa24b2b9a5ce7260745907f14.zip
- 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 - limit python version to 2.x, while here PR: 173834 Submitted by: Kubilay Kocak <koobs.freebsd@gmail.com> Feature safe: yes
-rw-r--r--devel/py-urwid/Makefile19
-rw-r--r--devel/py-urwid/distinfo4
2 files changed, 12 insertions, 11 deletions
diff --git a/devel/py-urwid/Makefile b/devel/py-urwid/Makefile
index 1fb1dac213a5..c53dd2340d55 100644
--- a/devel/py-urwid/Makefile
+++ b/devel/py-urwid/Makefile
@@ -1,12 +1,8 @@
-# New ports collection makefile for: py-urwid
-# Date created: 7 December 2004
-# Whom: Hye-Shik Chang <perky@FreeBSD.org>
-#
+# Created by: Hye-Shik Chang <perky@FreeBSD.org>
# $FreeBSD$
-#
PORTNAME= urwid
-PORTVERSION= 1.0.2
+PORTVERSION= 1.1.1
CATEGORIES= devel python
MASTER_SITES= http://excess.org/urwid/
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
@@ -16,10 +12,12 @@ COMMENT= Curses-based user interface library for Python
LICENSE= LGPL21
+# Bypass ports infrastructure bug
+OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
OPTIONS_DEFINE= EXAMPLES
-USE_PYTHON= yes
-USE_PYDISTUTILS= yes
+USE_PYTHON= -2.7
+USE_PYDISTUTILS=yes
PORTEXAMPLES= bigtext.py \
browse.py \
@@ -46,7 +44,10 @@ post-patch:
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 --git a/devel/py-urwid/distinfo b/devel/py-urwid/distinfo
index cb68abff401c..e184ec2c9bb9 100644
--- a/devel/py-urwid/distinfo
+++ b/devel/py-urwid/distinfo
@@ -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