1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/devel/pyinstaller/Makefile
Alexey Dokuchaev 7e1f8d807d Do not leak documentation build substrate into final package, by excluding
those bits from extraction; make sure that EXTRACT_AFTER_ARGS is augmented
correctly by placing it after .include <bsd.port.mk> (looks weird, I know).
2015-03-30 08:35:45 +00:00

41 lines
1.0 KiB
Makefile

# Created by: Alexey Dokuchaev <danfe@FreeBSD.org>
# $FreeBSD$
PORTNAME= PyInstaller
PORTVERSION= 2.1
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Program to create standalone executables from Python scripts
LICENSE= GPLv2
USES= python
USE_PYTHON= autoplist distutils
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
PORTDOCS= *
post-patch:
@${REINPLACE_CMD} -e '/install_requires/s,distribute,setuptools,' \
${WRKSRC}/${PYSETUP}
@${REINPLACE_CMD} -e '/\/sbin\/ldconfig/s,-p,-r,' \
${WRKSRC}/PyInstaller/bindepend.py \
${WRKSRC}/PyInstaller/depend/utils.py
@${REINPLACE_CMD} -e '/libpython/s,\.so\.1\.0,.so.1,' \
${WRKSRC}/PyInstaller/bindepend.py
pre-build:
cd ${WRKSRC}/bootloader && ${PYTHON_CMD} waf configure build install
post-install:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC}/doc && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
EXTRACT_AFTER_ARGS+= --exclude doc/source