svn commit: r308093 - head/devel/py-urwid

Ruslan Mahmatkhanov rm at FreeBSD.org
Sun Dec 2 10:18:19 UTC 2012


Author: rm
Date: Sun Dec  2 10:18:18 2012
New Revision: 308093
URL: http://svnweb.freebsd.org/changeset/ports/308093

Log:
  - 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 at gmail.com>
  Feature safe:	yes

Modified:
  head/devel/py-urwid/Makefile
  head/devel/py-urwid/distinfo

Modified: head/devel/py-urwid/Makefile
==============================================================================
--- head/devel/py-urwid/Makefile	Sun Dec  2 10:17:08 2012	(r308092)
+++ head/devel/py-urwid/Makefile	Sun Dec  2 10:18:18 2012	(r308093)
@@ -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$
-#
 
 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 lib
 
 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>

Modified: head/devel/py-urwid/distinfo
==============================================================================
--- head/devel/py-urwid/distinfo	Sun Dec  2 10:17:08 2012	(r308092)
+++ head/devel/py-urwid/distinfo	Sun Dec  2 10:18:18 2012	(r308093)
@@ -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


More information about the svn-ports-all mailing list