Ticket #56039: QtCurve.diff
File QtCurve.diff, 7.2 KB (added by RJVB (René Bertin), 7 years ago) |
---|
-
Portfile
old new 5 5 fetch.type git 6 6 git.url git://anongit.kde.org/qtcurve.git 7 7 8 name qtcurve 9 set qtc_version 1.8.18 10 revision 2 8 name QtCurve 9 set qtc_version 1.9.0 11 10 if {${subport} eq "${name}-gtk2"} { 12 # the GTk2 branch barely evolves at all so qtcurve-gtk2 doesn't need to13 # be updated every time the Qt version is updated.14 git.branch 438553dfa702c43240257fe61935c9ab10563cc215 version ${qtc_version}. 26311 # the GTk2 branch barely evolves at all so QtCurve-gtk2 doesn't need to 12 # be updated every time the Qt version evolves. 13 git.branch 9cd0f0eb740f26b7e03244be64491da2c3f56569 14 version ${qtc_version}.8 16 15 } else { 17 git.branch 16eef6f91c3fe73ea7287e6dc66e87aaf91220d918 version ${qtc_version}.27 016 git.branch 2bb3e383c12f46f0ad599386edc51972effc5930 17 version ${qtc_version}.27 19 18 } 20 19 epoch 2 21 20 … … 23 22 description A set of widget styles for Qt4/KDE4, Qt5/KF5 and/or GTk2 based apps. 24 23 25 24 categories kde 26 platforms darwin 25 platforms darwin linux 27 26 license LGPL-2+ 28 27 maintainers gmail.com:rjvbertin 29 28 … … 38 37 39 38 test.run yes 40 39 41 # This is a guard against installing a port variant for the still uncommitted KF5 40 subport ${name}-qt5 {} 41 # Safeguard against installing a port variant for the still uncommitted KF5 ports 42 42 if {${subport} eq "${name}-qt5"} { 43 43 if {![variant_isset qtonly]} { 44 44 default_variants +qtonly 45 45 } 46 46 } 47 47 48 subport ${name}-qt5 {49 if {![variant_isset qtonly]} {50 long_description A highly configurable widget style for Qt5/KF551 } else {52 long_description A highly configurable widget style for Qt553 }54 }55 56 if {${os.platform} eq "darwin" && ${os.major} <= 10} {57 # variant libcxx description {build against libc++ (untested)} {58 # PortGroup cxx11 1.059 # }60 if {![variant_exists libcxx] || ![variant_isset libcxx]} {61 depends_build-delete port:clang-3.4 port:clang-3.562 pre-fetch {63 ui_msg "This port only builds with configure.compiler=macports-gcc-4.7 (from port:gcc47) or newer on OS X 10.6"64 }65 }66 }67 68 48 subport ${name}-gtk2 { 69 49 PortGroup cmake 1.1 70 50 long_description The GTk2 version of the highly configurable QtCurve widget style for Qt 71 51 72 52 post-patch { 73 # qtcurve-gtk2 has pure and optional runtime dependencies on KDE4 (and KF5)53 # QtCurve-gtk2 has pure and optional runtime dependencies on KDE4 (and KF5) 74 54 reinplace "s|kde4-config|${prefix}/bin/kde4-config|g" \ 75 55 ${worksrcpath}/gtk2/style/qt_settings.cpp 76 56 } … … 81 61 default build.dir {${workpath}/build} 82 62 83 63 variant LTO description {Build with Link-Time Optimisation (LTO)} { 84 configure.cflags-append -flto85 configure.cxxflags-append -flto86 configure.objcflags-append -flto87 configure.objcxxflags-append -flto88 configure.ldflags-append -flto64 configure.cflags-append -flto 65 configure.cxxflags-append -flto 66 configure.objcflags-append -flto 67 configure.objcxxflags-append -flto 68 configure.ldflags-append -flto 89 69 # assume any compiler not clang will be gcc 90 70 if {![string match "*clang*" ${configure.compiler}]} { 91 71 configure.cflags-append -fuse-linker-plugin -ffat-lto-objects … … 113 93 long_description Installs the Mac-specific default configuration plus additional \ 114 94 configuration presets and colour palettes for QtCurve 115 95 version ${qtc_version} 116 revision 2117 96 use_configure no 118 97 installs_libs no 119 98 supported_archs noarch … … 134 113 xinstall -m 644 ${filespath}/OxygenOSXGraphite.colors ${destroot}/${prefix}/share/apps/color-schemes/ 135 114 } 136 115 pre-activate { 137 # qtcurve-extra installs files that previously belonged to qtcurve116 # QtCurve-extra installs files that previously belonged to QtCurve 138 117 if {![catch {set installed [lindex [registry_active qtcurve] 0]}]} { 139 118 set _epoch [lindex $installed 5] 140 119 if {${_epoch} < 2} { … … 147 126 148 127 if {${subport} ne "${name}-extra"} { 149 128 depends_run-append port:${name}-extra 129 150 130 patchfiles-append patch-systemconfig-support.diff 151 131 # deactivate config page(s) that don't make sense on OS X and/or don't work properly anywhere 152 132 patchfiles-append patch-deactivate-config-page.diff … … 159 139 } 160 140 161 141 if {(${subport} ne "${name}-gtk2") && (${subport} ne "${name}-extra")} { 162 patchfiles-append patch-qtc-no-qtc-activewin-events.diff \ 163 patch-qt5-dbus-fixes-by-debian.diff 142 patchfiles-append patch-qtc-no-qtc-activewin-events.diff 143 # https://bugs.kde.org/show_bug.cgi?id=374224 144 patchfiles-append patch-simpler-translucent-menus.diff 145 164 146 if {${subport} eq "${name}-qt5"} { 165 147 166 148 categories kde kf5 qt5 … … 172 154 ${kf5::pythondep} 173 155 kf5.depends_frameworks karchive kconfig kconfigwidgets \ 174 156 ki18n kdelibs4support kguiaddons kio \ 175 kiconthemes kwidgetsaddons kxmlgui 157 kiconthemes kwidgetsaddons kwindowsystem \ 158 kxmlgui frameworkintegration 176 159 177 160 configure.args-append -DPYTHON_EXECUTABLE=${prefix}/bin/python${kf5::pyversion} \ 178 161 -DQTC_QT5_ENABLE_KDE:BOOL=ON … … 199 182 cmake.install_rpath-prepend \ 200 183 ${qt_libs_dir} 201 184 configure.args-append -DQTC_QT5_ENABLE_KDE:BOOL=OFF 202 qt5.depends_component qtsvg203 185 } 186 qt5.depends_component qtsvg 204 187 205 188 # CMake will look for automoc4, but will of course not use it. 206 189 configure.args-append -DENABLE_QT4:BOOL=OFF -DENABLE_QT5:BOOL=ON \ … … 229 212 } 230 213 231 214 configure.args-append -DQTC_QT4_STYLE_SUPPORT:BOOL=OFF -DQTC_QT4_ENABLE_KWIN:BOOL=OFF \ 232 -DQTC_ ENABLE_PO:BOOL=ON -DENABLE_GTK2:BOOL=OFF215 -DQTC_INSTALL_PO:BOOL=ON -DENABLE_GTK2:BOOL=OFF 233 216 if {${os.platform} eq "darwin"} { 234 217 configure.args-append -DQTC_ENABLE_X11:BOOL=OFF 235 218 } … … 257 240 # never strip binaries for more useful backtraces 258 241 configure.args-append -DCMAKE_STRIP:FILEPATH=/bin/echo 259 242 260 if {${os.platform} eq "darwin" && ${os.major} < = 10&& ${subport} ne "${name}-extra"} {243 if {${os.platform} eq "darwin" && ${os.major} < 13 && ${subport} ne "${name}-extra"} { 261 244 long_description-append \n\ 262 245 This port requires the libc++ conversion but should also build with GCC 4.7 or later (configure.compiler=macports-gcc-4.7). 263 246 }