summaryrefslogtreecommitdiff
path: root/x11-fm/nautilus-python
diff options
context:
space:
mode:
Diffstat (limited to 'x11-fm/nautilus-python')
-rw-r--r--x11-fm/nautilus-python/Makefile23
-rw-r--r--x11-fm/nautilus-python/distinfo6
-rw-r--r--x11-fm/nautilus-python/files/patch-meson.build10
-rw-r--r--x11-fm/nautilus-python/files/patch-src_nautilus-python-object.c44
-rw-r--r--x11-fm/nautilus-python/files/patch-src_nautilus-python.c28
-rw-r--r--x11-fm/nautilus-python/files/patch-src_nautilus-python.h51
-rw-r--r--x11-fm/nautilus-python/pkg-plist10
7 files changed, 26 insertions, 146 deletions
diff --git a/x11-fm/nautilus-python/Makefile b/x11-fm/nautilus-python/Makefile
index 863f5e53d6ae..b3a69c51e747 100644
--- a/x11-fm/nautilus-python/Makefile
+++ b/x11-fm/nautilus-python/Makefile
@@ -1,32 +1,25 @@
PORTNAME= nautilus-python
-DISTVERSION= 1.2.3
-PORTREVISION= 5
+DISTVERSION= 4.0.1
CATEGORIES= x11-fm gnome python
MASTER_SITES= GNOME
MAINTAINER= daniel@shafer.cc
-COMMENT= Python nautilus bindings
-WWW= https://wiki.gnome.org/Projects/NautilusPython
+COMMENT= Python bindings for the Nautilus extension framework
+WWW= https://gitlab.gnome.org/GNOME/nautilus-python
-BROKEN= does not work with latest nautilus
-
-LICENSE= GPLv2
+LICENSE= GPLv2+
LICENSE_FILE= ${WRKSRC}/COPYING
-USES= gmake gnome libtool localbase pathfix pkgconfig python \
- tar:xz
-USE_GNOME= cairo gdkpixbuf nautilus3 pygobject3
+USES= gnome localbase meson pkgconfig python tar:xz
+USE_GNOME= glib20 nautilus4 pygobject3
USE_LDCONFIG= yes
-
-GNU_CONFIGURE= yes
-INSTALL_TARGET= install-strip
+BINARY_ALIAS= python3=${PYTHON_VERSION}
OPTIONS_DEFINE= GTKDOC
OPTIONS_SUB= yes
-GTKDOC_MESON_TRUE= gtk_doc
+GTKDOC_MESON_ENABLED= docs
GTKDOC_DESC= Build documentation
GTKDOC_BUILD_DEPENDS= gtkdocize:textproc/gtk-doc
-GTKDOC_CONFIGURE_ENABLE= gtk-doc
.include <bsd.port.mk>
diff --git a/x11-fm/nautilus-python/distinfo b/x11-fm/nautilus-python/distinfo
index 47bda5f7cf80..c2be82184109 100644
--- a/x11-fm/nautilus-python/distinfo
+++ b/x11-fm/nautilus-python/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1615472301
-SHA256 (nautilus-python-1.2.3.tar.xz) = 073ce0297282259937ab473d189b97a04f42b97197c9292fc3bde9d135282098
-SIZE (nautilus-python-1.2.3.tar.xz) = 269320
+TIMESTAMP = 1739111410
+SHA256 (nautilus-python-4.0.1.tar.xz) = fc49c104fb32a0ad195a66b0136784cd19d10d8b3e8d59d5ee7f73e8f94e928f
+SIZE (nautilus-python-4.0.1.tar.xz) = 32236
diff --git a/x11-fm/nautilus-python/files/patch-meson.build b/x11-fm/nautilus-python/files/patch-meson.build
new file mode 100644
index 000000000000..dd69680827f9
--- /dev/null
+++ b/x11-fm/nautilus-python/files/patch-meson.build
@@ -0,0 +1,10 @@
+--- meson.build.orig 2022-09-17 20:28:52 UTC
++++ meson.build
+@@ -59,6 +59,7 @@ pkg.generate(
+ 'pythondir=${datadir}/nautilus-python/extensions',
+ ],
+ dataonly: true,
++ install_dir: join_paths(get_option('prefix'), 'libdata', 'pkgconfig'),
+ )
+
+ summary({
diff --git a/x11-fm/nautilus-python/files/patch-src_nautilus-python-object.c b/x11-fm/nautilus-python/files/patch-src_nautilus-python-object.c
deleted file mode 100644
index 2018ed53fd66..000000000000
--- a/x11-fm/nautilus-python/files/patch-src_nautilus-python-object.c
+++ /dev/null
@@ -1,44 +0,0 @@
---- src/nautilus-python-object.c.orig 2020-09-13 15:40:21 UTC
-+++ src/nautilus-python-object.c
-@@ -49,7 +49,7 @@ int __PyString_Check(PyObject *obj) {
- #endif
- }
-
--char* __PyString_AsString(PyObject *obj) {
-+const char* __PyString_AsString(PyObject *obj) {
- #if PY_MAJOR_VERSION >= 3
- return PyUnicode_AsUTF8(obj);
- #else
-@@ -398,7 +398,7 @@ beach:
- #define METHOD_NAME "update_file_info"
- static NautilusOperationResult
- nautilus_python_object_update_file_info (NautilusInfoProvider *provider,
-- NautilusFile *file,
-+ NautilusFileInfo *file_info,
- GClosure *update_complete,
- NautilusOperationHandle **handle) {
- NautilusPythonObject *object = (NautilusPythonObject*)provider;
-@@ -417,12 +417,12 @@ nautilus_python_object_update_file_info (NautilusInfoP
- pygobject_new((GObject*)provider),
- py_handle,
- pyg_boxed_new(G_TYPE_CLOSURE, update_complete, TRUE, TRUE),
-- pygobject_new((GObject*)file));
-+ pygobject_new((GObject*)file_info));
- }
- else if (PyObject_HasAttrString(object->instance, "update_file_info")) {
- py_ret = PyObject_CallMethod(object->instance,
- METHOD_PREFIX METHOD_NAME, "(N)",
-- pygobject_new((GObject*)file));
-+ pygobject_new((GObject*)file_info));
- }
- else {
- goto beach;
-@@ -443,7 +443,7 @@ nautilus_python_object_update_file_info (NautilusInfoP
- #endif
-
- beach:
-- free_pygobject_data(file, NULL);
-+ free_pygobject_data(file_info, NULL);
- Py_XDECREF(py_ret);
- pyg_gil_state_release(state);
- return ret;
diff --git a/x11-fm/nautilus-python/files/patch-src_nautilus-python.c b/x11-fm/nautilus-python/files/patch-src_nautilus-python.c
deleted file mode 100644
index 0b37b505b560..000000000000
--- a/x11-fm/nautilus-python/files/patch-src_nautilus-python.c
+++ /dev/null
@@ -1,28 +0,0 @@
---- src/nautilus-python.c.orig 2020-09-13 15:42:41 UTC
-+++ src/nautilus-python.c
-@@ -22,6 +22,7 @@
- #endif
-
- #include <Python.h>
-+#define NO_IMPORT_PYGOBJECT //To avoid a multiple definition, nautilus-python-object.c also includes and does the import.
- #include <pygobject.h>
- #include <gmodule.h>
- #include <gtk/gtk.h>
-@@ -41,6 +42,17 @@ static gboolean nautilus_python_init_python(void);
-
- static GArray *all_types = NULL;
-
-+PyTypeObject *_PyGtkWidget_Type;
-+PyTypeObject *_PyNautilusColumn_Type;
-+PyTypeObject *_PyNautilusColumnProvider_Type;
-+PyTypeObject *_PyNautilusInfoProvider_Type;
-+PyTypeObject *_PyNautilusLocationWidgetProvider_Type;
-+PyTypeObject *_PyNautilusMenu_Type;
-+PyTypeObject *_PyNautilusMenuItem_Type;
-+PyTypeObject *_PyNautilusMenuProvider_Type;
-+PyTypeObject *_PyNautilusPropertyPage_Type;
-+PyTypeObject *_PyNautilusPropertyPageProvider_Type;
-+PyTypeObject *_PyNautilusOperationHandle_Type;
-
- static inline gboolean
- np_init_pygobject(void) {
diff --git a/x11-fm/nautilus-python/files/patch-src_nautilus-python.h b/x11-fm/nautilus-python/files/patch-src_nautilus-python.h
deleted file mode 100644
index 469a44acc863..000000000000
--- a/x11-fm/nautilus-python/files/patch-src_nautilus-python.h
+++ /dev/null
@@ -1,51 +0,0 @@
---- src/nautilus-python.h.orig 2020-09-13 15:43:39 UTC
-+++ src/nautilus-python.h
-@@ -43,37 +43,37 @@ extern NautilusPythonDebug nautilus_python_debug;
- #define debug_enter_args(x, y) { if (nautilus_python_debug & NAUTILUS_PYTHON_DEBUG_MISC) \
- g_printf("%s: entered " x "\n", __FUNCTION__, y); }
-
--PyTypeObject *_PyGtkWidget_Type;
-+extern PyTypeObject *_PyGtkWidget_Type;
- #define PyGtkWidget_Type (*_PyGtkWidget_Type)
-
--PyTypeObject *_PyNautilusColumn_Type;
-+extern PyTypeObject *_PyNautilusColumn_Type;
- #define PyNautilusColumn_Type (*_PyNautilusColumn_Type)
-
--PyTypeObject *_PyNautilusColumnProvider_Type;
-+extern PyTypeObject *_PyNautilusColumnProvider_Type;
- #define PyNautilusColumnProvider_Type (*_PyNautilusColumnProvider_Type)
-
--PyTypeObject *_PyNautilusInfoProvider_Type;
-+extern PyTypeObject *_PyNautilusInfoProvider_Type;
- #define PyNautilusInfoProvider_Type (*_PyNautilusInfoProvider_Type)
-
--PyTypeObject *_PyNautilusLocationWidgetProvider_Type;
-+extern PyTypeObject *_PyNautilusLocationWidgetProvider_Type;
- #define PyNautilusLocationWidgetProvider_Type (*_PyNautilusLocationWidgetProvider_Type)
-
--PyTypeObject *_PyNautilusMenu_Type;
-+extern PyTypeObject *_PyNautilusMenu_Type;
- #define PyNautilusMenu_Type (*_PyNautilusMenu_Type)
-
--PyTypeObject *_PyNautilusMenuItem_Type;
-+extern PyTypeObject *_PyNautilusMenuItem_Type;
- #define PyNautilusMenuItem_Type (*_PyNautilusMenuItem_Type)
-
--PyTypeObject *_PyNautilusMenuProvider_Type;
-+extern PyTypeObject *_PyNautilusMenuProvider_Type;
- #define PyNautilusMenuProvider_Type (*_PyNautilusMenuProvider_Type)
-
--PyTypeObject *_PyNautilusPropertyPage_Type;
-+extern PyTypeObject *_PyNautilusPropertyPage_Type;
- #define PyNautilusPropertyPage_Type (*_PyNautilusPropertyPage_Type)
-
--PyTypeObject *_PyNautilusPropertyPageProvider_Type;
-+extern PyTypeObject *_PyNautilusPropertyPageProvider_Type;
- #define PyNautilusPropertyPageProvider_Type (*_PyNautilusPropertyPageProvider_Type)
-
--PyTypeObject *_PyNautilusOperationHandle_Type;
-+extern PyTypeObject *_PyNautilusOperationHandle_Type;
- #define PyNautilusOperationHandle_Type (*_PyNautilusOperationHandle_Type)
-
- #endif /* NAUTILUS_PYTHON_H */
diff --git a/x11-fm/nautilus-python/pkg-plist b/x11-fm/nautilus-python/pkg-plist
index bfb523dee684..f70e5e374d7a 100644
--- a/x11-fm/nautilus-python/pkg-plist
+++ b/x11-fm/nautilus-python/pkg-plist
@@ -1,23 +1,23 @@
-lib/nautilus/extensions-3.0/libnautilus-python.so
+lib/nautilus/extensions-4/libnautilus-python.so
libdata/pkgconfig/nautilus-python.pc
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-column-provider.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-column.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-file-info.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-info-provider.html
-%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-location-widget-provider.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-menu-item.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-menu-provider.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-menu.html
-%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-property-page-provider.html
-%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-property-page.html
+%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-properties-item.html
+%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-properties-model-provider.html
+%%GTKDOC%%share/gtk-doc/html/nautilus-python/class-nautilus-python-properties-model.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/enum-nautilus-python-operation-result.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/home.png
%%GTKDOC%%share/gtk-doc/html/nautilus-python/index.html
-%%GTKDOC%%share/gtk-doc/html/nautilus-python/index.sgml
%%GTKDOC%%share/gtk-doc/html/nautilus-python/left-insensitive.png
%%GTKDOC%%share/gtk-doc/html/nautilus-python/left.png
%%GTKDOC%%share/gtk-doc/html/nautilus-python/nautilus-python-class-reference.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/nautilus-python-enum-reference.html
+%%GTKDOC%%share/gtk-doc/html/nautilus-python/nautilus-python-migrating-to-4.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/nautilus-python-overview-example.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/nautilus-python-overview-methods.html
%%GTKDOC%%share/gtk-doc/html/nautilus-python/nautilus-python-overview.html