1
- # $NetBSD: Makefile,v 1.50 2022/06/16 00:29:04 gdt Exp $
1
+ # $NetBSD: Makefile,v 1.51 2022/06/16 11:49:08 gdt Exp $
2
2
3
- DISTNAME = matrix-synapse-1.57.0
3
+ DISTNAME = matrix-synapse-1.58.1
4
4
CATEGORIES = chat
5
5
MASTER_SITES = ${MASTER_SITE_GITHUB:=matrix-org/}
6
- EGG_NAME = matrix_synapse-${PKGVERSION_NOREV}
7
6
GITHUB_PROJECT = synapse
8
7
GITHUB_TAG = v${PKGVERSION_NOREV}
9
8
@@ -12,6 +11,10 @@ HOMEPAGE= https://github.com/matrix-org/synapse/
12
11
COMMENT = Reference homeserver for the Matrix decentralised comms protocol
13
12
LICENSE = apache-2.0
14
13
14
+ # Build tools:
15
+ TOOL_DEPENDS+ = ${PYPKGPREFIX}-poetry-[0-9]*:../../devel/py-poetry
16
+
17
+ # Dependencies as defined by synapse's build system (in theory):
15
18
DEPENDS+ = ${PYPKGPREFIX}-asn1-modules>=0.0.7:../../security/py-asn1-modules
16
19
DEPENDS+ = ${PYPKGPREFIX}-asn1>=0.1.9:../../security/py-asn1
17
20
DEPENDS+ = ${PYPKGPREFIX}-attrs>=19.2.0:../../devel/py-attrs
@@ -52,6 +55,9 @@ PYTHON_VERSIONS_INCOMPATIBLE= 27 # py-unpaddedbase64
52
55
USE_PKG_RESOURCES = yes
53
56
54
57
USE_LANGUAGES = # none
58
+
59
+ REPLACE_PYTHON+ = synapse/_scripts/*.py
60
+
55
61
USE_TOOLS+ = perl:run
56
62
REPLACE_PERL+ = scripts/sync_room_to_group.pl
57
63
@@ -88,10 +94,16 @@ SUBST_VARS.pl= SYNAPSE_DEFAULT_CREATOR_PL
88
94
89
95
BUILD_DEFS+ = SYNAPSE_DEFAULT_CREATOR_PL
90
96
97
+ post-patch :
98
+ # Otherwise, this file is installed and pollutes PLIST.
99
+ rm ${WRKSRC} /synapse/handlers/room.py.orig
100
+
101
+ # \todo Grok upstream's new test scheme and port to it.
91
102
# test status as of 1.51.0
92
103
# 51 warnings, 1 error
93
104
do-test :
94
105
cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} pytest-${PYVERSSUFFIX}
95
106
96
- .include "../../lang/python/egg.mk"
107
+ .include "../../lang/python/application.mk"
108
+ .include "../../lang/python/wheel.mk"
97
109
.include "../../mk/bsd.pkg.mk"
0 commit comments