View | Details | Raw Unified | Return to bug 249944 | Differences between
and this patch

Collapse All | Expand All

(-)MOVED (+1 lines)
Lines 15628-15630 Link Here
15628
devel/py-pyqi||2020-09-25|No longer developed, use devel/py-click instead
15628
devel/py-pyqi||2020-09-25|No longer developed, use devel/py-click instead
15629
net-im/libnice-gst010|net-im/libnice-gst1|2020-09-25|Not depended on, gstream0.10 support has been removed in newer versions
15629
net-im/libnice-gst010|net-im/libnice-gst1|2020-09-25|Not depended on, gstream0.10 support has been removed in newer versions
15630
graphics/evince-lite|graphics/evince@lite|2020-09-26|Has been replaced by a flavor
15630
graphics/evince-lite|graphics/evince@lite|2020-09-26|Has been replaced by a flavor
15631
devel/pygobject3-common|devel/py-gobject3|2020-09-27|Merged, drop support of Python2
(-)devel/Makefile (-1 lines)
Lines 5251-5257 Link Here
5251
    SUBDIR += pycos
5251
    SUBDIR += pycos
5252
    SUBDIR += pycount
5252
    SUBDIR += pycount
5253
    SUBDIR += pydbus-common
5253
    SUBDIR += pydbus-common
5254
    SUBDIR += pygobject3-common
5255
    SUBDIR += pylint
5254
    SUBDIR += pylint
5256
    SUBDIR += pylint1
5255
    SUBDIR += pylint1
5257
    SUBDIR += pyobfuscate
5256
    SUBDIR += pyobfuscate
(-)devel/py-gobject3/Makefile (-8 / +29 lines)
Lines 1-14 Link Here
1
# Created by: Joe Marcus Clarke <marcus@FreeBSD.org>
1
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
4
PORTNAME=	gobject
5
PKGNAMESUFFIX=	3
5
PORTVERSION=	3.38.0
6
CATEGORIES=	devel python
7
MASTER_SITES=	GNOME/sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
8
PKGNAMEPREFIX?=	${PYTHON_PKGNAMEPREFIX}
9
PKGNAMESUFFIX?=	3
10
DISTNAME=	pygobject-${PORTVERSION}
11
DIST_SUBDIR=	gnome
6
12
7
COMMENT=	Python ${PYTHON_VER} bindings for GObject
13
MAINTAINER=	desktop@FreeBSD.org
14
COMMENT?=	Common files for the Python bindings for GObject
8
15
9
SLAVE_PORT=	python
16
LICENSE=	LGPL21
17
LICENSE_FILE=	${WRKSRC}/COPYING
10
18
11
MASTERDIR=	${.CURDIR}/../../devel/pygobject3-common
19
BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cairo>=1.18.2:graphics/py-cairo@${PY_FLAVOR}
12
PLIST=		${.CURDIR}/pkg-plist
20
LIB_DEPENDS=	libffi.so:devel/libffi
13
21
14
.include "${MASTERDIR}/Makefile"
22
USES=		gettext-runtime gnome meson pkgconfig \
23
		python:3.6+,build tar:xz
24
USE_GNOME=	glib20 cairo introspection
25
USE_PYTHON=	py3kplist
26
27
# this port doesn't work with py-gobject < 2.28.6_2, clungle below
28
CONFLICTS=	py*-gtk-0* py*-gobject-2.*.[0-6] py*-gobject-2.*.[7-9] \
29
		py*-gobject-2.*.6_1
30
31
MESON_ARGS=	-Dpython=${PYTHON_CMD}
32
33
PLIST_SUB=	VERSION=${PORTVERSION}
34
35
.include <bsd.port.mk>
(-)devel/py-gobject3/distinfo (+3 lines)
Line 0 Link Here
1
TIMESTAMP = 1600009933
2
SHA256 (gnome/pygobject-3.38.0.tar.xz) = 0372d1bb9122fc19f500a249b1f38c2bb67485000f5887497b4b205b3e7084d5
3
SIZE (gnome/pygobject-3.38.0.tar.xz) = 553892
(-)devel/py-gobject3/pkg-descr (+5 lines)
Line 0 Link Here
1
PyGObject provides a convenient wrapper for the GObject+, GTK, GStreamer
2
libraries for use in Python programs, and takes care of many of the
3
boring details such as managing memory and type casting.
4
5
WWW: https://pygobject.readthedocs.io/
(-)devel/py-gobject3/pkg-plist (-51 / +5 lines)
Lines 1-78 Link Here
1
include/pygobject-3.0/pygobject.h
2
%%PYTHON_SITELIBDIR%%/PyGObject-%%VERSION%%.egg-info
1
%%PYTHON_SITELIBDIR%%/gi/__init__.py
3
%%PYTHON_SITELIBDIR%%/gi/__init__.py
2
%%PYTHON_SITELIBDIR%%/gi/__init__.pyc
3
%%PYTHON_SITELIBDIR%%/gi/__init__.pyo
4
%%PYTHON_SITELIBDIR%%/gi/_constants.py
4
%%PYTHON_SITELIBDIR%%/gi/_constants.py
5
%%PYTHON_SITELIBDIR%%/gi/_constants.pyc
6
%%PYTHON_SITELIBDIR%%/gi/_constants.pyo
7
%%PYTHON_SITELIBDIR%%/gi/_error.py
5
%%PYTHON_SITELIBDIR%%/gi/_error.py
8
%%PYTHON_SITELIBDIR%%/gi/_error.pyc
9
%%PYTHON_SITELIBDIR%%/gi/_error.pyo
10
%%PYTHON_SITELIBDIR%%/gi/_gi.so
6
%%PYTHON_SITELIBDIR%%/gi/_gi.so
11
%%PYTHON_SITELIBDIR%%/gi/_gi_cairo.so
7
%%PYTHON_SITELIBDIR%%/gi/_gi_cairo.so
8
%%PYTHON_SITELIBDIR%%/gi/_gtktemplate.py
12
%%PYTHON_SITELIBDIR%%/gi/_option.py
9
%%PYTHON_SITELIBDIR%%/gi/_option.py
13
%%PYTHON_SITELIBDIR%%/gi/_option.pyc
14
%%PYTHON_SITELIBDIR%%/gi/_option.pyo
15
%%PYTHON_SITELIBDIR%%/gi/_ossighelper.py
10
%%PYTHON_SITELIBDIR%%/gi/_ossighelper.py
16
%%PYTHON_SITELIBDIR%%/gi/_ossighelper.pyc
17
%%PYTHON_SITELIBDIR%%/gi/_ossighelper.pyo
18
%%PYTHON_SITELIBDIR%%/gi/_propertyhelper.py
11
%%PYTHON_SITELIBDIR%%/gi/_propertyhelper.py
19
%%PYTHON_SITELIBDIR%%/gi/_propertyhelper.pyc
20
%%PYTHON_SITELIBDIR%%/gi/_propertyhelper.pyo
21
%%PYTHON_SITELIBDIR%%/gi/_signalhelper.py
12
%%PYTHON_SITELIBDIR%%/gi/_signalhelper.py
22
%%PYTHON_SITELIBDIR%%/gi/_signalhelper.pyc
23
%%PYTHON_SITELIBDIR%%/gi/_signalhelper.pyo
24
%%PYTHON_SITELIBDIR%%/gi/docstring.py
13
%%PYTHON_SITELIBDIR%%/gi/docstring.py
25
%%PYTHON_SITELIBDIR%%/gi/docstring.pyc
26
%%PYTHON_SITELIBDIR%%/gi/docstring.pyo
27
%%PYTHON_SITELIBDIR%%/gi/importer.py
14
%%PYTHON_SITELIBDIR%%/gi/importer.py
28
%%PYTHON_SITELIBDIR%%/gi/importer.pyc
29
%%PYTHON_SITELIBDIR%%/gi/importer.pyo
30
%%PYTHON_SITELIBDIR%%/gi/module.py
15
%%PYTHON_SITELIBDIR%%/gi/module.py
31
%%PYTHON_SITELIBDIR%%/gi/module.pyc
32
%%PYTHON_SITELIBDIR%%/gi/module.pyo
33
%%PYTHON_SITELIBDIR%%/gi/overrides/GIMarshallingTests.py
16
%%PYTHON_SITELIBDIR%%/gi/overrides/GIMarshallingTests.py
34
%%PYTHON_SITELIBDIR%%/gi/overrides/GIMarshallingTests.pyc
35
%%PYTHON_SITELIBDIR%%/gi/overrides/GIMarshallingTests.pyo
36
%%PYTHON_SITELIBDIR%%/gi/overrides/GLib.py
17
%%PYTHON_SITELIBDIR%%/gi/overrides/GLib.py
37
%%PYTHON_SITELIBDIR%%/gi/overrides/GLib.pyc
38
%%PYTHON_SITELIBDIR%%/gi/overrides/GLib.pyo
39
%%PYTHON_SITELIBDIR%%/gi/overrides/GObject.py
18
%%PYTHON_SITELIBDIR%%/gi/overrides/GObject.py
40
%%PYTHON_SITELIBDIR%%/gi/overrides/GObject.pyc
41
%%PYTHON_SITELIBDIR%%/gi/overrides/GObject.pyo
42
%%PYTHON_SITELIBDIR%%/gi/overrides/Gdk.py
19
%%PYTHON_SITELIBDIR%%/gi/overrides/Gdk.py
43
%%PYTHON_SITELIBDIR%%/gi/overrides/Gdk.pyc
20
%%PYTHON_SITELIBDIR%%/gi/overrides/GdkPixbuf.py
44
%%PYTHON_SITELIBDIR%%/gi/overrides/Gdk.pyo
45
%%PYTHON_SITELIBDIR%%/gi/overrides/Gio.py
21
%%PYTHON_SITELIBDIR%%/gi/overrides/Gio.py
46
%%PYTHON_SITELIBDIR%%/gi/overrides/Gio.pyc
47
%%PYTHON_SITELIBDIR%%/gi/overrides/Gio.pyo
48
%%PYTHON_SITELIBDIR%%/gi/overrides/Gtk.py
22
%%PYTHON_SITELIBDIR%%/gi/overrides/Gtk.py
49
%%PYTHON_SITELIBDIR%%/gi/overrides/Gtk.pyc
50
%%PYTHON_SITELIBDIR%%/gi/overrides/Gtk.pyo
51
%%PYTHON_SITELIBDIR%%/gi/overrides/Pango.py
23
%%PYTHON_SITELIBDIR%%/gi/overrides/Pango.py
52
%%PYTHON_SITELIBDIR%%/gi/overrides/Pango.pyc
53
%%PYTHON_SITELIBDIR%%/gi/overrides/Pango.pyo
54
%%PYTHON_SITELIBDIR%%/gi/overrides/__init__.py
24
%%PYTHON_SITELIBDIR%%/gi/overrides/__init__.py
55
%%PYTHON_SITELIBDIR%%/gi/overrides/__init__.pyc
56
%%PYTHON_SITELIBDIR%%/gi/overrides/__init__.pyo
57
%%PYTHON_SITELIBDIR%%/gi/overrides/keysyms.py
25
%%PYTHON_SITELIBDIR%%/gi/overrides/keysyms.py
58
%%PYTHON_SITELIBDIR%%/gi/overrides/keysyms.pyc
59
%%PYTHON_SITELIBDIR%%/gi/overrides/keysyms.pyo
60
%%PYTHON_SITELIBDIR%%/gi/pygtkcompat.py
26
%%PYTHON_SITELIBDIR%%/gi/pygtkcompat.py
61
%%PYTHON_SITELIBDIR%%/gi/pygtkcompat.pyc
62
%%PYTHON_SITELIBDIR%%/gi/pygtkcompat.pyo
63
%%PYTHON_SITELIBDIR%%/gi/repository/__init__.py
27
%%PYTHON_SITELIBDIR%%/gi/repository/__init__.py
64
%%PYTHON_SITELIBDIR%%/gi/repository/__init__.pyc
65
%%PYTHON_SITELIBDIR%%/gi/repository/__init__.pyo
66
%%PYTHON_SITELIBDIR%%/gi/types.py
28
%%PYTHON_SITELIBDIR%%/gi/types.py
67
%%PYTHON_SITELIBDIR%%/gi/types.pyc
68
%%PYTHON_SITELIBDIR%%/gi/types.pyo
69
%%PYTHON_SITELIBDIR%%/pygobject-%%VERSION%%-py%%PYTHON_VER%%.egg-info
70
%%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.py
29
%%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.py
71
%%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.pyc
72
%%PYTHON_SITELIBDIR%%/pygtkcompat/__init__.pyo
73
%%PYTHON_SITELIBDIR%%/pygtkcompat/generictreemodel.py
30
%%PYTHON_SITELIBDIR%%/pygtkcompat/generictreemodel.py
74
%%PYTHON_SITELIBDIR%%/pygtkcompat/generictreemodel.pyc
75
%%PYTHON_SITELIBDIR%%/pygtkcompat/generictreemodel.pyo
76
%%PYTHON_SITELIBDIR%%/pygtkcompat/pygtkcompat.py
31
%%PYTHON_SITELIBDIR%%/pygtkcompat/pygtkcompat.py
77
%%PYTHON_SITELIBDIR%%/pygtkcompat/pygtkcompat.pyc
32
libdata/pkgconfig/pygobject-3.0.pc
78
%%PYTHON_SITELIBDIR%%/pygtkcompat/pygtkcompat.pyo
(-)devel/pygobject3-common/Makefile (-75 lines)
Lines 1-75 Link Here
1
# Created by: Gustau Perez i Querol <gustau.perez@gmail.com>
2
# $FreeBSD$
3
4
PORTNAME=	gobject
5
PORTVERSION=	3.28.3
6
PORTREVISION=	2
7
CATEGORIES=	devel python
8
MASTER_SITES=	GNOME/sources/pygobject/${PORTVERSION:C/^([0-9]+\.[0-9]+).*/\1/}
9
PKGNAMEPREFIX?=	py
10
PKGNAMESUFFIX?=	3-common
11
DISTNAME=	pygobject-${PORTVERSION}
12
DIST_SUBDIR=	gnome
13
14
MAINTAINER=	desktop@FreeBSD.org
15
COMMENT?=	Common files for the Python bindings for GObject
16
17
LICENSE=	LGPL21
18
LICENSE_FILE=	${WRKSRC}/COPYING
19
20
SLAVE_PORT?=	no
21
22
USES=		gmake libtool pathfix pkgconfig tar:xz
23
GNU_CONFIGURE=	yes
24
INSTALL_TARGET=	install-strip
25
26
# this port doesn't work with py-gobject < 2.28.6_2, clungle below
27
CONFLICTS=	py*-gtk-0* py*-gobject-2.*.[0-6] py*-gobject-2.*.[7-9] \
28
		py*-gobject-2.*.6_1
29
30
PLIST_SUB=	ARCH=${ARCH} UNAME_R=${UNAME_R} VERSION=${PORTVERSION} \
31
		OPSYS=${OPSYS:tl} UNAME_M=${UNAME_M}
32
33
# Override PYTHON_VERSION from DEPENDS_ARGS
34
MAKE_ARGS=	PYTHON_VERSION=${PYTHON_VER}
35
36
.if ${SLAVE_PORT} == no
37
PORTSCOUT?=	limitw:1,even
38
39
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR}
40
USES+=		gnome python:build
41
USE_GNOME=	glib20:build introspection:build
42
NO_BUILD=	yes
43
44
do-install:
45
	@${MKDIR} ${STAGEDIR}${PREFIX}/include/pygobject-3.0/
46
	${INSTALL_DATA} ${WRKSRC}/gi/pygobject.h \
47
		${STAGEDIR}${PREFIX}/include/pygobject-3.0/pygobject.h
48
	${INSTALL_DATA} ${WRKSRC}/pygobject-3.0.pc \
49
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/pygobject-3.0.pc
50
.else
51
PORTSCOUT=	ignore:1
52
53
USES+=		gettext-runtime gnome
54
USE_GNOME+=	cairo glib20 introspection
55
LIB_DEPENDS+=	libffi.so:devel/libffi
56
RUN_DEPENDS+=	pygobject3-common>=0:devel/pygobject3-common
57
58
.if ${SLAVE_PORT} == python
59
USES+=		python
60
USE_PYTHON=	flavors py3kplist
61
BUILD_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR}
62
RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}cairo>=0:graphics/py-cairo@${PY_FLAVOR}
63
.endif
64
65
post-install:
66
	@${RM} -r ${STAGEDIR}${PREFIX}/include/pygobject-3.0 \
67
		${STAGEDIR}${PREFIX}/libdata/pkgconfig/pygobject-3.0.pc
68
.endif
69
70
.include <bsd.port.pre.mk>
71
72
UNAME_R!=	${UNAME} -r
73
UNAME_M!=	${UNAME} -m
74
75
.include <bsd.port.post.mk>
(-)devel/pygobject3-common/distinfo (-3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1527917161
2
SHA256 (gnome/pygobject-3.28.3.tar.xz) = 3dd3e21015d06e00482ea665fc1733b77e754a6ab656a5db5d7f7bfaf31ad0b0
3
SIZE (gnome/pygobject-3.28.3.tar.xz) = 1005368
(-)devel/pygobject3-common/files/patch-python38 (-88 lines)
Lines 1-88 Link Here
1
https://gitlab.gnome.org/GNOME/pygobject/-/commit/bfc759c9c0bb
2
3
--- gi/gimodule.c.orig	2018-05-31 14:39:04 UTC
4
+++ gi/gimodule.c
5
@@ -685,7 +685,10 @@ PYGLIB_MODULE_START(_gi, "_gi")
6
     pygi_error_register_types (module);
7
     _pygi_repository_register_types (module);
8
     _pygi_info_register_types (module);
9
+    pygobject_type_register_types (module_dict);
10
+    pygobject_pointer_register_types (module_dict);
11
     _pygi_struct_register_types (module);
12
+    pygobject_boxed_register_types (module_dict);
13
     _pygi_boxed_register_types (module);
14
     _pygi_ccallback_register_types (module);
15
     pygi_resulttuple_register_types (module);
16
@@ -699,12 +702,9 @@ PYGLIB_MODULE_START(_gi, "_gi")
17
     pygobject_register_features (module_dict);
18
     pygobject_register_version_tuples (module_dict);
19
     pygobject_register_warnings (module_dict);
20
-    pygobject_type_register_types (module_dict);
21
     pygobject_object_register_types (module_dict);
22
     pygobject_interface_register_types (module_dict);
23
     pygobject_paramspec_register_types (module_dict);
24
-    pygobject_boxed_register_types (module_dict);
25
-    pygobject_pointer_register_types (module_dict);
26
     pygobject_enum_register_types (module_dict);
27
     pygobject_flags_register_types (module_dict);
28
 
29
--- gi/pygboxed.c.orig	2018-05-31 14:39:04 UTC
30
+++ gi/pygboxed.c
31
@@ -162,6 +162,7 @@ pyg_register_boxed(PyObject *dict, const gchar *class_
32
     if (!type->tp_dealloc)  type->tp_dealloc  = (destructor)pyg_boxed_dealloc;
33
 
34
     Py_TYPE(type) = &PyType_Type;
35
+    g_assert (Py_TYPE (&PyGBoxed_Type) != NULL);
36
     type->tp_base = &PyGBoxed_Type;
37
 
38
     if (PyType_Ready(type) < 0) {
39
--- gi/pygi-boxed.c.orig	2018-05-31 14:39:04 UTC
40
+++ gi/pygi-boxed.c
41
@@ -230,6 +230,7 @@ void
42
 _pygi_boxed_register_types (PyObject *m)
43
 {
44
     Py_TYPE(&PyGIBoxed_Type) = &PyType_Type;
45
+    g_assert (Py_TYPE (&PyGBoxed_Type) != NULL);
46
     PyGIBoxed_Type.tp_base = &PyGBoxed_Type;
47
     PyGIBoxed_Type.tp_new = (newfunc) _boxed_new;
48
     PyGIBoxed_Type.tp_init = (initproc) _boxed_init;
49
--- gi/pygi-struct.c.orig	2018-05-31 14:39:04 UTC
50
+++ gi/pygi-struct.c
51
@@ -231,6 +231,7 @@ void
52
 _pygi_struct_register_types (PyObject *m)
53
 {
54
     Py_TYPE(&PyGIStruct_Type) = &PyType_Type;
55
+    g_assert (Py_TYPE (&PyGPointer_Type) != NULL);
56
     PyGIStruct_Type.tp_base = &PyGPointer_Type;
57
     PyGIStruct_Type.tp_new = (newfunc) _struct_new;
58
     PyGIStruct_Type.tp_init = (initproc) _struct_init;
59
--- gi/pyginterface.c.orig	2018-05-31 14:39:04 UTC
60
+++ gi/pyginterface.c
61
@@ -72,6 +72,7 @@ pyg_register_interface(PyObject *dict, const gchar *cl
62
     PyObject *o;
63
 
64
     Py_TYPE(type) = &PyType_Type;
65
+    g_assert (Py_TYPE (&PyGInterface_Type) != NULL);
66
     type->tp_base = &PyGInterface_Type;
67
 
68
     if (PyType_Ready(type) < 0) {
69
--- gi/pygpointer.c.orig	2018-05-31 14:39:04 UTC
70
+++ gi/pygpointer.c
71
@@ -117,6 +117,7 @@ pyg_register_pointer(PyObject *dict, const gchar *clas
72
     if (!type->tp_dealloc) type->tp_dealloc = (destructor)pyg_pointer_dealloc;
73
 
74
     Py_TYPE(type) = &PyType_Type;
75
+    g_assert (Py_TYPE (&PyGPointer_Type) != NULL);
76
     type->tp_base = &PyGPointer_Type;
77
 
78
     if (PyType_Ready(type) < 0) {
79
--- gi/pygtype.c.orig	2018-05-31 14:39:04 UTC
80
+++ gi/pygtype.c
81
@@ -345,6 +345,7 @@ pyg_type_wrapper_new(GType type)
82
 {
83
     PyGTypeWrapper *self;
84
 
85
+    g_assert (Py_TYPE (&PyGTypeWrapper_Type) != NULL);
86
     self = (PyGTypeWrapper *)PyObject_NEW(PyGTypeWrapper,
87
 					  &PyGTypeWrapper_Type);
88
     if (self == NULL)
(-)devel/pygobject3-common/pkg-descr (-4 lines)
Lines 1-4 Link Here
1
PyGObject provides a convenient wrapper for the GObject+ library for use
2
in Python programs, and takes care of many of the boring details such as
3
managing memory and type casting.  When combined with PyGTK, PyORBit and
4
gnome-python, it can be used to write full featured Gnome applications.
(-)devel/pygobject3-common/pkg-plist (-2 lines)
Lines 1-2 Link Here
1
include/pygobject-3.0/pygobject.h
2
libdata/pkgconfig/pygobject-3.0.pc

Return to bug 249944