[MacPorts] #46507: QtCurve update with support for Qt5
#46507: QtCurve update with support for Qt5 -------------------------+-------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: update | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.3 Keywords: haspatch | Port: QtCurve -------------------------+-------------------------------- This is a proposed update for the QtCurve port. It introduces support for Qt5 (and is "somewhat prepared" for a future appearance of KF5 in MacPorts) through a subport. Support for GTk2 is moved to a subport too, to avoid a combinatorial explosion of variants. Thus: - QtCurve still provides KDE4 and/or Qt4 support - qt5-QtCurve provides Qt5 and in the future also KF5 support - QtCurve-gtk2 provides GTk2/X11 support I named the subports in line with what seems to be usual, i.e. a prefix for Qt5 and a suffix for GTk2. qt5-QtCurve was tested with my own "concurrent" Qt5 install but ought to work just as well with the exclusive qt5-mac version currently in MacPorts. Ditto for QtCurve, btw. -- Ticket URL: <https://trac.macports.org/ticket/46507> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Changes (by mf2k@…): * keywords: haspatch => haspatch maintainer * version: 2.3.3 => * type: update => enhancement -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by ryandesign@…): You should not set the revision field to a large number like 20150110. The revision field is meant to be a small integer, increased whenever a change is made to the port that does ''not'' involve a change to the upstream code. Since your patch ''does'' involve a change to the upstream code, the version field should be changed instead and the revision left at its default value of 0. In the post-destroot, you have an empty block after an if statement: {{{ if {${subport} eq "qt5-${name}"} { } else { }}} This can be simplified to: {{{ if {${subport} ne "qt5-${name}"} { }}} You're using `system` procedure to run the `ln` executable to create a symlink: {{{ system "ln -s ${prefix}/lib/kde4/plugins/styles ${destroot}${qt_plugins_dir}/" }}} Instead, please use the MacPorts `ln` procedure: {{{ ln -s ${prefix}/lib/kde4/plugins/styles ${destroot}${qt_plugins_dir}/ }}} -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by rjvbertin@…): Replying to [comment:2 ryandesign@…]:
You should not set the revision field to a large number like 20150110. The revision field is meant to be a small integer, increased whenever a change is made to the port that does ''not'' involve a change to the upstream code. Since your patch ''does'' involve a change to the upstream code, the version field should be changed instead and the revision left at its default value of 0.
I know the dogma, but in this case it's impossible to change the version because the upstream version has not changed. I'd use the git commit number as a 4th version component, but those are random numbers, not monotonically increasing. -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by larryv@…): Replying to [comment:3 rjvbertin@…]:
I know the dogma, but in this case it's impossible to change the version because the upstream version has not changed. I'd use the git commit number as a 4th version component, but those are random numbers, not monotonically increasing.
So add a date component to `version` or something. Don’t hijack `revision` to indicate what’s actually a new version. -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by mk@…): This relies on committing PortGroup qt5, right?! -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by rjvbertin@…): That PortGroup already exists. I haven't tried, but a priori the Portfile as committed should function also with port:qt5-mac in its current, exclusive form. -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by rjvbertin@…): depends on the patches at https://git.reviewboard.kde.org/r/122279/ -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:8> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: macports-tickets@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Comment (by rjvbertin@…): Disregard version 20150122, this version should build as is. -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:9> MacPorts <https://www.macports.org/> Ports system for OS X
#46507: QtCurve update with support for Qt5 --------------------------+--------------------------------- Reporter: rjvbertin@… | Owner: mk@… Type: enhancement | Status: new Priority: Normal | Milestone: Component: ports | Version: Resolution: | Keywords: haspatch maintainer Port: QtCurve | --------------------------+--------------------------------- Changes (by mk@…): * owner: macports-tickets@… => mk@… * cc: mk@… (removed) -- Ticket URL: <https://trac.macports.org/ticket/46507#comment:10> MacPorts <https://www.macports.org/> Ports system for the Mac operating system
participants (1)
-
MacPorts