- 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
This commit is contained in:
Ruslan Makhmatkhanov 2012-12-02 10:18:18 +00:00
parent bf09467ffb
commit 3caa05e50c
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=308093
2 changed files with 12 additions and 11 deletions

View File

@ -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>

View File

@ -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