blob: eec7ebfd997ca48345c46f76b53bff0145449d65 (
plain)
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
|
PORTNAME= pyside2
DISTVERSION= 5.15.2
CATEGORIES= devel
MASTER_SITES= QT/official_releases/QtForPython/shiboken2/PySide2-${DISTVERSION}-src
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pyside-setup-opensource-src-${DISTVERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Python Qt bindings for Qt 5.12+
LICENSE= LGPL3
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR} \
git>0:devel/git
LIB_DEPENDS= libshiboken2.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}.so:devel/shiboken2@${PY_FLAVOR}
USES= cmake gl python:3.5+ qt:5 tar:xz
USE_GL= gl
USE_LDCONFIG= yes
USE_PYTHON= flavors
USE_QT= 3d buildtools_build charts concurrent core datavis3d declarative \
designer gamepad gui help location multimedia network opengl \
printsupport qmake_build quickcontrols2 remoteobjects serialport \
script scripttools scxml sensors speech sql svg testlib uitools \
webchannel websockets widgets x11extras xml xmlpatterns
CMAKE_ARGS+= "-DUSE_PYTHON_VERSION=${PYTHON_VER}" \
"-DPYTHON_EXECUTABLE=${PYTHON_CMD}"
.include <bsd.port.pre.mk>
PLIST_SUB+= PYVERSTR=.cpython-${PYTHON_SUFFIX}${PYTHON_ABIVER}
PLIST_SUB+= DISTVERSION=${DISTVERSION}
WRKSRC= ${WRKDIR}/pyside-setup-opensource-src-${DISTVERSION:C/^([0-9].[0-9]+.[0-9])(.[0-9])?/\1/}/sources/pyside2
.if ${ARCH} == amd64 || ${ARCH} == i386
DEPRECATED= Uses EOL Python 2.7 via www/qt5-webengine
EXPIRATION_DATE=2021-06-23
PLIST_SUB+= WEBENGINE=""
USE_QT+= webengine
.else
PLIST_SUB+= WEBENGINE="@comment "
.endif
# AVOID a build_fs_violation with poudriere
post-build:
${RM} -r ${PYTHON_SITELIBDIR}/shiboken2/files.dir/shibokensupport/__pycache__
${RM} -r ${PYTHON_SITELIBDIR}/shiboken2/files.dir/shibokensupport/signature/__pycache__
${RM} -r ${PYTHON_SITELIBDIR}/shiboken2/files.dir/shibokensupport/signature/lib/__pycache__
post-stage:
${RM} -r ${PYTHON_SITELIBDIR}/shiboken2/files.dir/shibokensupport/__pycache__
${RM} -r ${PYTHON_SITELIBDIR}/shiboken2/files.dir/shibokensupport/signature/__pycache__
${RM} -r ${PYTHON_SITELIBDIR}/shiboken2/files.dir/shibokensupport/signature/lib/__pycache__
.include <bsd.port.post.mk>
|