Newt is a windowing toolkit for text mode built from the slang library. It allows color text mode applications to easily use stackable windows, push buttons, check boxes, radio buttons, lists, entry fields, labels, and displayable text. Scrollbars are supported, and forms may be nested to provide extra functionality. WWW: https://fedorahosted.org/newt/
42 lines
956 B
Makefile
42 lines
956 B
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= snack
|
|
PORTVERSION= 0.52.16
|
|
CATEGORIES= devel
|
|
MASTER_SITES= https://fedorahosted.org/releases/n/e/newt/
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= newt-${PORTVERSION}
|
|
|
|
MAINTAINER= python@FreeBSD.org
|
|
COMMENT= Not Eriks Windowing Toolkit Python bindings
|
|
|
|
LIB_DEPENDS= libslang.so:${PORTSDIR}/devel/libslang2 \
|
|
libpopt.so:${PORTSDIR}/devel/popt \
|
|
libnewt.so:${PORTSDIR}/devel/newt
|
|
|
|
OPTIONS_DEFINE= EXAMPLES
|
|
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS= --disable-nls
|
|
|
|
USE_PYTHON= 2
|
|
USE_PYDISTUTILS=yes
|
|
PYDISTUTILS_AUTOPLIST= yes
|
|
PYSETUP= ${WRKDIR}/setup.py
|
|
|
|
SUB_FILES= setup.py
|
|
SUB_LIST= VERSION=${PORTVERSION}
|
|
|
|
PORTEXAMPLES= peanuts.py \
|
|
popcorn.py
|
|
|
|
post-patch: apply-slist
|
|
@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
|
|
${WRKSRC}/popcorn.py \
|
|
${WRKSRC}/peanuts.py
|
|
|
|
post-install:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
.include <bsd.port.mk>
|