Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
devel/py-pyinstaller: Update to 6.3.0
PR: 276396
- Loading branch information
Showing
6 changed files
with
61 additions
and
99 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,62 @@ | ||
PORTNAME= pyinstaller | ||
PORTVERSION= 3.5 | ||
PORTREVISION= 1 | ||
DISTVERSION= 6.3.0 | ||
CATEGORIES= devel python | ||
MASTER_SITES= PYPI | ||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} | ||
DISTNAME= PyInstaller-${PORTVERSION} | ||
|
||
MAINTAINER= python@FreeBSD.org | ||
MAINTAINER= hsw@bitmark.com | ||
COMMENT= Program to create standalone executables from Python scripts | ||
WWW= https://www.pyinstaller.org/ | ||
|
||
LICENSE= GPLv2 | ||
LICENSE= APACHE20 GPLv2 MIT | ||
LICENSE_COMB= multi | ||
LICENSE_FILE= ${WRKSRC}/COPYING.txt | ||
|
||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}altgraph>0:math/py-altgraph@${PY_FLAVOR} | ||
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}altgraph>0:math/py-altgraph@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}setuptools>0:devel/py-setuptools@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}sphinx-autodoc-typehints>0:textproc/py-sphinx-autodoc-typehints@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}sphinx-issues>0:textproc/py-sphinx-issues@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}sphinxcontrib-towncrier>0:textproc/py-sphinxcontrib-towncrier@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} | ||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}altgraph>0:math/py-altgraph@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}pyinstaller-hooks-contrib>0:devel/py-pyinstaller-hooks-contrib@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} | ||
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}execnet>0:sysutils/py-execnet@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}psutil>0:sysutils/py-psutil@${PY_FLAVOR} | ||
|
||
USES= cpe python | ||
USE_PYTHON= autoplist concurrent distutils | ||
USE_PYTHON= autoplist concurrent pep517 pytest | ||
|
||
EXTRACT_AFTER_ARGS= --exclude doc/source --no-same-owner --no-same-permissions | ||
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME} | ||
PORTDOCS= *.txt | ||
|
||
OPTIONS_DEFINE= DOCS MANPAGES | ||
OPTIONS_DEFAULT= MANPAGES | ||
OPTIONS_SUB= yes | ||
|
||
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \ | ||
${PYTHON_PKGNAMEPREFIX}sphinx_rtd_theme>0:textproc/py-sphinx_rtd_theme@${PY_FLAVOR} | ||
DOCS_MAKE_ARGS= SPHINXBUILD=sphinx-build-${PYTHON_VER} | ||
DOCS_USES= gmake | ||
MANPAGES_BUILD_DEPENDS= ${DOCS_BUILD_DEPENDS} | ||
MANPAGES_MAKE_ARGS= ${DOCS_MAKE_ARGS} | ||
MANPAGES_USES= gmake | ||
|
||
post-patch: | ||
@${REINPLACE_CMD} -e '/install_requires/s,distribute,setuptools,' \ | ||
${WRKSRC}/${PYSETUP} | ||
@${REINPLACE_CMD} -e '/\/sbin\/ldconfig/s,-p,-r,' \ | ||
${WRKSRC}/PyInstaller/depend/utils.py | ||
${INSTALL_DATA} ${WRKSRC}/PyInstaller/utils/cliutils/makespec.py ${WRKSRC}/makespec.py | ||
|
||
PLIST_FILES= share/man/man1/pyi-makespec.1.gz \ | ||
share/man/man1/pyinstaller.1.gz | ||
|
||
PORTDOCS= * | ||
|
||
OPTIONS_DEFINE= DOCS | ||
|
||
pre-build: | ||
cd ${WRKSRC}/bootloader && \ | ||
${PYTHON_CMD} waf all | ||
|
||
do-install-MANPAGES-on: | ||
( cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} man ${MAKE_ARGS}) | ||
( cd ${WRKSRC}/doc/_build/man ; ${INSTALL_MAN} pyi-makespec.1 pyinstaller.1 \ | ||
${STAGEDIR}${PREFIX}/share/man/man1 ) | ||
do-build-DOCS-on: | ||
(cd ${WRKSRC}/doc && \ | ||
${SETENV} sphinx-build-${PYTHON_VER} -b html . _build/html) | ||
|
||
post-build: | ||
(cd ${WRKSRC}/doc && \ | ||
${SETENV} sphinx-build-${PYTHON_VER} -b man . _build/man) | ||
|
||
do-install-DOCS-on: | ||
@${MKDIR} ${STAGEDIR}${DOCSDIR} | ||
(cd ${WRKSRC}/doc ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} text ${MAKE_ARGS}) | ||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/_build/text/|} ${STAGEDIR}${DOCSDIR} | ||
(cd ${WRKSRC}/doc/_build/html && \ | ||
${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR} "-not -name .buildinfo -not -regex ^./.doctrees.* -not -regex ^./_sources.*") | ||
|
||
post-install: | ||
${INSTALL_MAN} ${WRKSRC}/doc/_build/man/*.1 \ | ||
${STAGEDIR}${PREFIX}/share/man/man1 | ||
|
||
.include <bsd.port.mk> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
TIMESTAMP = 1562773511 | ||
SHA256 (PyInstaller-3.5.tar.gz) = ee7504022d1332a3324250faf2135ea56ac71fdb6309cff8cd235de26b1d0a96 | ||
SIZE (PyInstaller-3.5.tar.gz) = 3518991 | ||
TIMESTAMP = 1705445280 | ||
SHA256 (pyinstaller-6.3.0.tar.gz) = 914d4c96cc99472e37ac552fdd82fbbe09e67bb592d0717fcffaa99ea74273df | ||
SIZE (pyinstaller-6.3.0.tar.gz) = 4133400 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,36 @@ | ||
--- bootloader/src/main.c.orig 2019-07-09 19:14:04 UTC | ||
--- bootloader/src/main.c.orig 2024-01-16 22:55:44 UTC | ||
+++ bootloader/src/main.c | ||
@@ -16,6 +16,11 @@ | ||
* main: For OS X and Linux | ||
*/ | ||
@@ -36,7 +36,9 @@ | ||
#include "pyi_win32_utils.h" | ||
|
||
+#ifdef __FreeBSD__ | ||
#ifdef __FreeBSD__ | ||
+ #include <sys/cdefs.h> | ||
+ #include <floatingpoint.h> | ||
#include <floatingpoint.h> | ||
+ #include <ieeefp.h> | ||
+#endif | ||
#ifdef _WIN32 | ||
#include <windows.h> | ||
#include <wchar.h> | ||
@@ -33,9 +38,6 @@ | ||
#include "pyi_global.h" | ||
#include "pyi_win32_utils.h" | ||
|
||
-#ifdef __FreeBSD__ | ||
- #include <floatingpoint.h> | ||
-#endif | ||
#endif | ||
|
||
#if defined(_WIN32) | ||
#define MS_WINDOWS | ||
@@ -87,19 +89,12 @@ main(int argc, char **argv) | ||
@@ -88,21 +90,9 @@ main(int argc, char **argv) | ||
main(int argc, char **argv) | ||
{ | ||
int res; | ||
- | ||
- #ifdef __FreeBSD__ | ||
- fp_except_t m; | ||
- #endif | ||
|
||
/* 754 requires that FP exceptions run in "no stop" mode by default, | ||
* and until C vendors implement C99's ways to control FP exceptions, | ||
* Python requires non-stop mode. Alas, some platforms enable FP | ||
* exceptions by default. Here we disable them. | ||
*/ | ||
- #ifdef __FreeBSD__ | ||
- | ||
- /* 754 requires that FP exceptions run in "no stop" mode by default, | ||
- * and until C vendors implement C99's ways to control FP exceptions, | ||
- * Python requires non-stop mode. Alas, some platforms enable FP | ||
- * exceptions by default. Here we disable them. | ||
- */ | ||
- m = fpgetmask(); | ||
- fpsetmask(m & ~FP_X_OFL); | ||
- #endif | ||
|
||
res = pyi_main(argc, argv); | ||
return res; | ||
} | ||
|
||
-#endif /* defined(WIN32) */ | ||
+#endif /* defined(WIN32) */ | ||
\ No newline at end of file |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.