mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-16 07:58:04 +00:00
3caa05e50c
- 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
54 lines
1.1 KiB
Makefile
54 lines
1.1 KiB
Makefile
# Created by: Hye-Shik Chang <perky@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= urwid
|
|
PORTVERSION= 1.1.1
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= http://excess.org/urwid/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
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= -2.7
|
|
USE_PYDISTUTILS=yes
|
|
|
|
PORTEXAMPLES= bigtext.py \
|
|
browse.py \
|
|
calc.py \
|
|
dialog.py \
|
|
edit.py \
|
|
fib.py \
|
|
graph.py \
|
|
input_test.py \
|
|
lcd_cf635.py \
|
|
palette_test.py \
|
|
pop_up.py \
|
|
subproc.py \
|
|
tour.py \
|
|
treesample.py
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
post-patch:
|
|
# disable setuptools for now
|
|
@${REINPLACE_CMD} 's/setuptools/do_not_use_&/g' ${WRKSRC}/setup.py
|
|
|
|
post-install:
|
|
.if ${PORT_OPTIONS:MEXAMPLES}
|
|
${MKDIR} ${EXAMPLESDIR}/
|
|
@cd ${WRKSRC}/examples && ${INSTALL_DATA} ${PORTEXAMPLES} ${EXAMPLESDIR}/
|
|
.endif
|
|
|
|
regression-test: build
|
|
@cd ${WRKSRC} && ${PYTHON_CMD} -m urwid.tests
|
|
|
|
.include <bsd.port.mk>
|