summaryrefslogtreecommitdiff
path: root/devel/py-pythondialog/Makefile
blob: 7cb320f07820f9bc456aeb3fcdf1cd7c16f97ff4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33

PORTNAME=	pythondialog
PORTVERSION=	3.5.1
CATEGORIES=	devel python
MASTER_SITES=	CHEESESHOP
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	jkim@FreeBSD.org
COMMENT=	Python interface to dialog(3)

LICENSE=	LGPL21+

RUN_DEPENDS=	cdialog:devel/cdialog

USES=		python:3.5+
USE_PYTHON=	autoplist concurrent distutils

PORTEXAMPLES=	*
REINPLACE_ARGS=	-i ""

OPTIONS_DEFINE=	EXAMPLES

post-patch:
	# devel/cdialog installs dialog as cdialog not to conflict
	# with dialog(1).
	${FIND} ${WRKSRC} -type f | \
	    ${XARGS} ${REINPLACE_CMD} -e 's|dialog="dialog"|dialog="cdialog"|g'

post-install-EXAMPLES-on:
	@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
	cd ${WRKSRC}/examples/ && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}

.include <bsd.port.mk>