[MacPorts] #69919: Nautilus upgrade + extra new ports tracker-3.0, tracker-miners and glib2 fix to include gio-launch-desktop bin.

MacPorts noreply at macports.org
Mon Jun 3 16:30:37 UTC 2024


#69919: Nautilus upgrade + extra new ports tracker-3.0,tracker-miners and glib2 fix
to include gio-launch-desktop bin.
-------------------------------------------------+-------------------------
  Reporter:  christophecvr                       |      Owner:  (none)
      Type:  enhancement                         |     Status:  new
  Priority:  Normal                              |  Milestone:
 Component:  ports                               |    Version:  2.9.99
Resolution:                                      |   Keywords:  gnome
      Port:  nautilus tracker-3.0 tracker-miner  |  nautilus
  glib2                                          |
-------------------------------------------------+-------------------------

Comment (by christophecvr):

 The adapted example will also be installed when this port is installed.
 I well have one question I could not find which is the variable who
 contains the python right build binary(or link)

  from :


 {{{
 configure.python          ${prefix}/bin/python3.12
 }}}

 so in my port file I added first a new var with


 {{{
 set buildpython     0
 }}}

 Then used this to set the used pyton which can be 3.10,3.11 or 3.12 in
 code block


 {{{
 variant python310 conflicts python311 python312 description {Use python
 3.10} {
     depends_lib-append        port:py310-gobject3
     configure.python          ${prefix}/bin/python3.10
     set buildpython           ${prefix}/bin/python3.10
     set python_framework
 ${frameworks_dir}/Python.framework/Versions/3.10
     configure.pkg_config_path ${python_framework}/lib/pkgconfig
 }

 variant python311 conflicts python310 python312 description {Use python
 3.11} {
     depends_lib-append        port:py311-gobject3
     configure.python          ${prefix}/bin/python3.11
     set buildpython           ${prefix}/bin/python3.11
     set python_framework
 ${frameworks_dir}/Python.framework/Versions/3.11
     configure.pkg_config_path ${python_framework}/lib/pkgconfig
 }

 variant python312 conflicts python310 python311 description {Use python
 3.12} {
     depends_lib-append        port:py312-gobject3
     configure.python          ${prefix}/bin/python3.12
     set buildpython           ${prefix}/bin/python3.12
     set python_framework
 ${frameworks_dir}/Python.framework/Versions/3.12
     configure.pkg_config_path ${python_framework}/lib/pkgconfig
 }

 }}}

 So in a post-destroot I did :


 {{{
 post-destroot {
     xinstall -d -m 0755 ${destroot}/opt/local/share/nautilus-
 python/extensions
     xinstall -m 0644 ${worksrcpath}/examples/open-terminal.py
 ${destroot}/opt/local/share/nautilus-python/extensions/open-terminal.py
     system "${buildpython} -m compileall ${destroot}/opt/local/share
 /nautilus-python/extensions/open-terminal.py"
 }
 }}}

 It works fine. But Is there not a var who containes the result of
 configure.python ?

-- 
Ticket URL: <https://trac.macports.org/ticket/69919#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list