freebsd-ports/devel/py-snack/Makefile
Mathieu Arnold 4e1b79a0a6 Remove ${PORTSDIR}/ from dependencies, categories d, e, f, and g.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:00:51 +00:00

48 lines
1 KiB
Makefile

# $FreeBSD$
PORTNAME= snack
PORTVERSION= 0.52.18
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
BROKEN= conflicts with devel/newt
LIB_DEPENDS= libslang.so:devel/libslang2 \
libpopt.so:devel/popt \
libnewt.so: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:
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/_snack.so
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${INSTALL_SCRIPT} ${PORTEXAMPLES:S,^,${WRKSRC}/,} ${STAGEDIR}${EXAMPLESDIR}
.include <bsd.port.mk>