mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
devel/py-pyinstaller: Update to 6.3.0
PR: 276396
This commit is contained in:
parent
047115ab61
commit
2d5a85b7b9
6 changed files with 59 additions and 97 deletions
|
@ -1,58 +1,62 @@
|
||||||
PORTNAME= pyinstaller
|
PORTNAME= pyinstaller
|
||||||
PORTVERSION= 3.5
|
DISTVERSION= 6.3.0
|
||||||
PORTREVISION= 1
|
|
||||||
CATEGORIES= devel python
|
CATEGORIES= devel python
|
||||||
MASTER_SITES= PYPI
|
MASTER_SITES= PYPI
|
||||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||||
DISTNAME= PyInstaller-${PORTVERSION}
|
|
||||||
|
|
||||||
MAINTAINER= python@FreeBSD.org
|
MAINTAINER= hsw@bitmark.com
|
||||||
COMMENT= Program to create standalone executables from Python scripts
|
COMMENT= Program to create standalone executables from Python scripts
|
||||||
WWW= https://www.pyinstaller.org/
|
WWW= https://www.pyinstaller.org/
|
||||||
|
|
||||||
LICENSE= GPLv2
|
LICENSE= APACHE20 GPLv2 MIT
|
||||||
|
LICENSE_COMB= multi
|
||||||
LICENSE_FILE= ${WRKSRC}/COPYING.txt
|
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
|
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}
|
DOCSDIR= ${PREFIX}/share/doc/${PYTHON_PKGNAMEPREFIX}${PORTNAME}
|
||||||
PORTDOCS= *.txt
|
|
||||||
|
|
||||||
OPTIONS_DEFINE= DOCS MANPAGES
|
PLIST_FILES= share/man/man1/pyi-makespec.1.gz \
|
||||||
OPTIONS_DEFAULT= MANPAGES
|
share/man/man1/pyinstaller.1.gz
|
||||||
OPTIONS_SUB= yes
|
|
||||||
|
|
||||||
DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>0:textproc/py-sphinx@${PY_FLAVOR} \
|
PORTDOCS= *
|
||||||
${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:
|
OPTIONS_DEFINE= DOCS
|
||||||
@${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
|
|
||||||
|
|
||||||
pre-build:
|
pre-build:
|
||||||
cd ${WRKSRC}/bootloader && \
|
cd ${WRKSRC}/bootloader && \
|
||||||
${PYTHON_CMD} waf all
|
${PYTHON_CMD} waf all
|
||||||
|
|
||||||
do-install-MANPAGES-on:
|
do-build-DOCS-on:
|
||||||
( cd ${WRKSRC}/doc; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} man ${MAKE_ARGS})
|
(cd ${WRKSRC}/doc && \
|
||||||
( cd ${WRKSRC}/doc/_build/man ; ${INSTALL_MAN} pyi-makespec.1 pyinstaller.1 \
|
${SETENV} sphinx-build-${PYTHON_VER} -b html . _build/html)
|
||||||
${STAGEDIR}${PREFIX}/share/man/man1 )
|
|
||||||
|
post-build:
|
||||||
|
(cd ${WRKSRC}/doc && \
|
||||||
|
${SETENV} sphinx-build-${PYTHON_VER} -b man . _build/man)
|
||||||
|
|
||||||
do-install-DOCS-on:
|
do-install-DOCS-on:
|
||||||
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
||||||
(cd ${WRKSRC}/doc ; ${SETENV} ${MAKE_ENV} ${MAKE_CMD} text ${MAKE_ARGS})
|
(cd ${WRKSRC}/doc/_build/html && \
|
||||||
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/_build/text/|} ${STAGEDIR}${DOCSDIR}
|
${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>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
TIMESTAMP = 1562773511
|
TIMESTAMP = 1705445280
|
||||||
SHA256 (PyInstaller-3.5.tar.gz) = ee7504022d1332a3324250faf2135ea56ac71fdb6309cff8cd235de26b1d0a96
|
SHA256 (pyinstaller-6.3.0.tar.gz) = 914d4c96cc99472e37ac552fdd82fbbe09e67bb592d0717fcffaa99ea74273df
|
||||||
SIZE (PyInstaller-3.5.tar.gz) = 3518991
|
SIZE (pyinstaller-6.3.0.tar.gz) = 4133400
|
||||||
|
|
|
@ -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
|
+++ bootloader/src/main.c
|
||||||
@@ -16,6 +16,11 @@
|
@@ -36,7 +36,9 @@
|
||||||
* main: For OS X and Linux
|
|
||||||
*/
|
|
||||||
|
|
||||||
+#ifdef __FreeBSD__
|
|
||||||
+ #include <sys/cdefs.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"
|
#include "pyi_win32_utils.h"
|
||||||
|
|
||||||
-#ifdef __FreeBSD__
|
#ifdef __FreeBSD__
|
||||||
- #include <floatingpoint.h>
|
+ #include <sys/cdefs.h>
|
||||||
-#endif
|
#include <floatingpoint.h>
|
||||||
|
+ #include <ieeefp.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
#define MS_WINDOWS
|
@@ -88,21 +90,9 @@ main(int argc, char **argv)
|
||||||
@@ -87,19 +89,12 @@ main(int argc, char **argv)
|
main(int argc, char **argv)
|
||||||
{
|
{
|
||||||
int res;
|
int res;
|
||||||
|
-
|
||||||
- #ifdef __FreeBSD__
|
- #ifdef __FreeBSD__
|
||||||
- fp_except_t m;
|
- fp_except_t m;
|
||||||
- #endif
|
-
|
||||||
|
- /* 754 requires that FP exceptions run in "no stop" mode by default,
|
||||||
/* 754 requires that FP exceptions run in "no stop" mode by default,
|
- * and until C vendors implement C99's ways to control FP exceptions,
|
||||||
* and until C vendors implement C99's ways to control FP exceptions,
|
- * Python requires non-stop mode. Alas, some platforms enable FP
|
||||||
* Python requires non-stop mode. Alas, some platforms enable FP
|
- * exceptions by default. Here we disable them.
|
||||||
* exceptions by default. Here we disable them.
|
- */
|
||||||
*/
|
|
||||||
- #ifdef __FreeBSD__
|
|
||||||
- m = fpgetmask();
|
- m = fpgetmask();
|
||||||
- fpsetmask(m & ~FP_X_OFL);
|
- fpsetmask(m & ~FP_X_OFL);
|
||||||
- #endif
|
- #endif
|
||||||
|
|
||||||
res = pyi_main(argc, argv);
|
res = pyi_main(argc, argv);
|
||||||
return res;
|
return res;
|
||||||
|
}
|
||||||
|
|
||||||
|
-#endif /* defined(WIN32) */
|
||||||
|
+#endif /* defined(WIN32) */
|
||||||
|
\ No newline at end of file
|
||||||
|
|
|
@ -1,20 +0,0 @@
|
||||||
--- bootloader/wscript.orig 2018-09-22 05:02:42 UTC
|
|
||||||
+++ bootloader/wscript
|
|
||||||
@@ -361,7 +361,7 @@ def set_arch_flags(ctx):
|
|
||||||
# or vice versa or with manually choosen --target-arch.
|
|
||||||
# Option -m32/-m64 has to be passed to cflags and linkflages.
|
|
||||||
elif ctx.env.PYI_ARCH == '32bit':
|
|
||||||
- if machine() in ('arm', 'aarch') and ctx.env.DEST_OS == 'linux':
|
|
||||||
+ if ctx.env.CC_NAME == "gcc":
|
|
||||||
# It was reported that flag '-m32' does not work with gcc
|
|
||||||
# on 32-bit arm Linux. So skip the -m32 flag.
|
|
||||||
pass
|
|
||||||
@@ -377,7 +377,7 @@ def set_arch_flags(ctx):
|
|
||||||
if ctx.env.DEST_OS == 'win32':
|
|
||||||
ctx.env.append_value('LINKFLAGS', '-Wl,--large-address-aware')
|
|
||||||
elif ctx.env.PYI_ARCH == '64bit':
|
|
||||||
- if machine() in ('arm', 'aarch') and ctx.env.DEST_OS == 'linux':
|
|
||||||
+ if ctx.env.CC_NAME == 'gcc':
|
|
||||||
# flag '-m64' does not work with gcc on 64-bit arm/aarch Linux.
|
|
||||||
pass
|
|
||||||
else:
|
|
|
@ -1,12 +0,0 @@
|
||||||
--- doc/help2rst.py.orig 2019-07-09 19:14:04 UTC
|
|
||||||
+++ doc/help2rst.py
|
|
||||||
@@ -63,6 +63,9 @@ def process(program, generate_headings, headings_chara
|
|
||||||
elif '\noptional arguments:' in help:
|
|
||||||
# argparse style
|
|
||||||
help = help.split('\noptional arguments:', 1)[1]
|
|
||||||
+ elif '\noptions:' in help:
|
|
||||||
+ # argparse style, since python 3.10
|
|
||||||
+ help = help.split('\noptions:', 1)[1]
|
|
||||||
else:
|
|
||||||
raise SystemError('unexpected format of output for --help')
|
|
||||||
# Remove any obsolete options
|
|
|
@ -1,2 +0,0 @@
|
||||||
%%MANPAGES%%share/man/man1/pyi-makespec.1.gz
|
|
||||||
%%MANPAGES%%share/man/man1/pyinstaller.1.gz
|
|
Loading…
Add table
Reference in a new issue