[MacPorts] #47047: new (meta)port submission: qt5-mac-mysql-plugins
#47047: new (meta)port submission: qt5-mac-mysql-plugins -------------------------+----------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Keywords: haspatch | Port: qt5-mac-mysql-plugins -------------------------+----------------------------------- Attached a portfile for a new metaport, qt5-mac-mysql-plugins, which provides the mutually conflicting subports for Qt 5. This is an adapted copy of qt4-mac-mysql55-plugin which also provides the other mysql plugin variants, for Qt 4 . Contrary to that portfile, I've opted *not* to use one of the variants as the main port, but rather a stub main (meta) port, an approach I find a bit cleaner. I'm also trying a new (for me) way of defining the port version. Since it depends on the installed (and even the active) Qt port, I obtain the active version through the qmake executable that's an inevitable part of every Qt install. This should remove the need to bump the port version every time Qt is updated, and should even allow users to reinstall (using e.g. `port -n upgrade --force`) the installed subport after activating a different Qt 5 version (regardless of whether that's qt5-mac or qt5-mac-devel). I hope I haven't overlooked potential issues with this approach. -- Ticket URL: <https://trac.macports.org/ticket/47047> MacPorts <https://www.macports.org/> Ports system for OS X
#47047: new (meta)port submission: qt5-mac-mysql-plugins ------------------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: qt5-mac-mysql-plugins | ------------------------------------+-------------------------------- Comment (by larryv@…): Replying to [ticket:47047 rjvbertin@…]:
I'm also trying a new (for me) way of defining the port version. Since it depends on the installed (and even the active) Qt port, I obtain the active version through the qmake executable that's an inevitable part of every Qt install.
This won’t work. This portfile will trip up `portindex` on all systems that do not have qmake installed. {{{ Creating port index in /Users/larryv/Projects/MacPorts/git- svn/trunk/dports Failed to parse file aqua/qt5-mac-mysql-plugins/Portfile: couldn't execute "/opt/local/bin/qmake": no such file or directory }}} -- Ticket URL: <https://trac.macports.org/ticket/47047#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#47047: new (meta)port submission: qt5-mac-mysql-plugins ------------------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: qt5-mac-mysql-plugins | ------------------------------------+-------------------------------- Comment (by rjvbertin@…): Doh, that's the only use case I didn't foresee :) What about something like {{{ if {[file exists ${qt_qmake_cmd}] { version [exec ${qt_qmake_cmd} -query QT_VERSION] } else { version 5.4.1 } }}} Kinda removes part of the charm of my clever lil idea, we'll still have to bump that fallback version each time Qt is updated, but the other advantages should remain intact for users with Qt 5 installed... -- Ticket URL: <https://trac.macports.org/ticket/47047#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#47047: new (meta)port submission: qt5-mac-mysql-plugins ------------------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: qt5-mac-mysql-plugins | ------------------------------------+-------------------------------- Comment (by rjvbertin@…): This version supports Qt 5.3.2 on OS X 10.6.8 . -- Ticket URL: <https://trac.macports.org/ticket/47047#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#47047: new (meta)port submission: qt5-mac-mysql-plugins ------------------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: submission | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch Port: qt5-mac-mysql-plugins | ------------------------------------+-------------------------------- Comment (by rjvbertin@…): https://github.com/RJVB/mp-port-repository/tree/master/aqua/qt5-mac-mysql- plugins This version improves the update from 2 days ago: the source is now treated as if it were "external" code (= not part of Qt). Notably, the installed mkspecs files are used instead of the bundled ones (rather important on OS X 10.6.8) -- Ticket URL: <https://trac.macports.org/ticket/47047#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts