blob: 9916e9c218f7e7ebe7963b9bfbe14e8889a868dc (
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
|
# $NetBSD: Makefile,v 1.13 2010/08/29 11:00:31 nonaka Exp $
DISTNAME= ply-3.3
CATEGORIES= devel python
MASTER_SITES= http://www.dabeaz.com/ply/
MAINTAINER= nonaka@netbsd.org
HOMEPAGE= http://www.dabeaz.com/ply/
COMMENT= Python Lex-Yacc
PKG_DESTDIR_SUPPORT= user-destdir
USE_LANGUAGES= # none
DOCDIR= ${PREFIX}/share/doc/ply
EGDIR= ${PREFIX}/share/examples/ply
INSTALLATION_DIRS= ${DOCDIR} ${EGDIR}
do-test:
.for filtst in testlex.py testyacc.py
${RUN} cd ${WRKSRC}; ${SETENV} ${TEST_ENV} ${PYTHONBIN} test/$${filtst}
.endfor
post-install:
${INSTALL_DATA} ${WRKSRC}/README ${DESTDIR}${DOCDIR}
${INSTALL_DATA} ${WRKSRC}/doc/ply.html ${DESTDIR}${DOCDIR}
cd ${WRKSRC}/example && pax -rwppm * ${DESTDIR}${EGDIR}
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
|