/
Portfile
109 lines (91 loc) · 3.36 KB
/
Portfile
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
#-*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
name py-pyside2
version 5.15.12
revision 0
categories-append devel aqua
platforms darwin
maintainers {pmetzger @pmetzger} {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description Python bindings for the Qt cross-platform application and UI framework
long_description ${description}
homepage https://wiki.qt.io/Qt_for_Python
# see ${worksrcdir}/sources/pyside2/PySide2/licensecomment.txt
license {GPL-2 GPL-3+ LGPL-3}
master_sites https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-${version}-src
distname pyside-setup-opensource-src-${version}
use_xz yes
checksums rmd160 6490e24dcc3ec3195003f8fd48b2b5ca0c8092ac \
sha256 9c53a111ca5779064593e690db0da43ce0d5dad25369931b7a4f593886259ff4 \
size 3585204
python.versions 38 39 310 311
python.pep517 no
set llvm_version 17
if {${name} ne ${subport}} {
PortGroup qt5 1.0
# fix error with shiboken2 doc building
patchfiles-append patch-shiboken2-docs.diff
# see https://trac.macports.org/ticket/68072
qt5.min_version 5.14
# Needed for generating shiboken2 documentation
qt5.depends_build_component sqlite-plugin
depends_build-append \
path:bin/cmake:cmake \
port:py${python.version}-setuptools \
port:py${python.version}-sphinx \
port:py${python.version}-wheel
build.args-append \
--verbose-build \
--qmake=${qt_qmake_cmd} \
--cmake=${prefix}/bin/cmake \
--parallel=${build.jobs} \
--macos-deployment-target=${macosx_deployment_target}
if {${configure.sdkroot} != ""} {
build.args-append \
--macos-sysroot=${configure.sdkroot}
# see https://trac.macports.org/ticket/57355
build.env-append \
SDKROOT=${configure.sdkroot}
}
destroot.args-append \
--qmake=${qt_qmake_cmd} \
--cmake=${prefix}/bin/cmake \
--skip-cmake \
--reuse-build
depends_lib-append \
port:libxml2 \
port:libxslt \
port:clang-${llvm_version} \
port:llvm-${llvm_version} \
port:py${python.version}-numpy
# only find the llvm-config from the version we intend to
patchfiles-append patch-find-llvm-config.diff
build.env-append PATH=${prefix}/libexec/llvm-${llvm_version}/bin:$env(PATH)
qt5.depends_component \
qtxmlpatterns \
qt3d \
qtcharts \
qtdatavis3d \
qtdeclarative \
qtgamepad \
qtlocation \
qtmacextras \
qtmultimedia \
qtquickcontrols2 \
qtremoteobjects \
qtscript \
qtscxml \
qtsensors \
qtserialport \
qtspeech \
qtsvg \
qttools \
qtwebchannel \
qtwebengine \
qtwebsockets
livecheck.type none
} else {
livecheck.type regex
livecheck.url https://download.qt.io/official_releases/QtForPython/pyside2/
livecheck.regex (\\d+(\\.\\d+)+)
}