mirror of
https://git.freebsd.org/ports.git
synced 2025-06-03 11:56:28 -04:00
The previous MASTER_SITES URL doesn't contain the tarball any more: $ wget --no-check-certificate https://www.dabeaz.com/ply/ply-3.11.tar.gz --2024-09-13 01:16:27-- https://www.dabeaz.com/ply/ply-3.11.tar.gz Resolving www.dabeaz.com (www.dabeaz.com)... 207.150.218.207 Connecting to www.dabeaz.com (www.dabeaz.com)|207.150.218.207|:443... connected. WARNING: cannot verify www.dabeaz.com's certificate, issued by ‘CN=GeoTrust TLS RSA CA G1,OU=www.digicert.com,O=DigiCert Inc,C=US’: Unable to locally verify the issuer's authority. HTTP request sent, awaiting response... 404 Not Found 2024-09-13 01:16:27 ERROR 404: Not Found. Approved by: portmgr@ (blanket unbreak)
41 lines
1 KiB
Makefile
41 lines
1 KiB
Makefile
PORTNAME= ply
|
|
PORTVERSION= 3.11
|
|
CATEGORIES= devel python
|
|
MASTER_SITES= PYPI
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= dbaio@FreeBSD.org
|
|
COMMENT= Python Lex-Yacc
|
|
WWW= http://www.dabeaz.com/ply/
|
|
|
|
LICENSE= BSD3CLAUSE
|
|
|
|
USES= python
|
|
USES+= shebangfix
|
|
USE_PYTHON= autoplist concurrent distutils
|
|
NO_ARCH= yes
|
|
SHEBANG_FILES= example/newclasscalc/calc.py \
|
|
example/classcalc/calc.py
|
|
|
|
PORTDOCS= ply.html internal.html
|
|
|
|
OPTIONS_DEFINE= DOCS EXAMPLES
|
|
|
|
post-patch:
|
|
@${REINPLACE_CMD} -e 's|/usr/local/bin/python|${python_CMD}|' \
|
|
${WRKSRC}/example/yply/yply.py
|
|
@${FIND} ${WRKSRC} -name \*.bak -delete
|
|
|
|
post-install-DOCS-on:
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/ply.html ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/doc/internal.html ${STAGEDIR}${DOCSDIR}
|
|
|
|
post-install-EXAMPLES-on:
|
|
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
|
|
cd ${WRKSRC}/example && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR}
|
|
|
|
do-test:
|
|
@cd ${WRKSRC}/test && ${PYTHON_CMD} testlex.py && ${PYTHON_CMD} testyacc.py
|
|
|
|
.include <bsd.port.mk>
|