1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-02 06:03:50 +00:00
freebsd-ports/devel/py-snack/Makefile
Marcus von Appen 89e07f4a18 - Convert ports of devel/ to USES=python
Approved by:	portmgr (implicit)
2014-10-20 16:04:12 +00:00

44 lines
959 B
Makefile

# $FreeBSD$
PORTNAME= snack
PORTVERSION= 0.52.17
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
LICENSE= GPLv2
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
USES= python:2
USE_PYTHON= distutils autoplist
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>