Ticket #69809: oxygen-gtk-upgrade.diff

File oxygen-gtk-upgrade.diff, 6.2 KB (added by RJVB (René Bertin), 7 months ago)

rewrite and oxygen-gtk2 upgrade to 1.4.6.65 (la[te]st version)

  • gnome/oxygen-gtk2/Portfile

    diff --git a/gnome/oxygen-gtk2/Portfile b/gnome/oxygen-gtk2/Portfile
    index 404d71e9..e0f739ae 100644
    a b  
    22# kate: backspace-indents true; indent-pasted-text true; indent-width 4; keep-extra-spaces true; remove-trailing-spaces modified; replace-tabs true; replace-tabs-save true; syntax Tcl/Tk; tab-indents true; tab-width 4;
    33
    44PortSystem          1.0
     5PortGroup           cmake 1.1
     6PortGroup           github 1.0
    57PortGroup           muniversal 1.0
    68
    79name                oxygen-gtk2
    categories x11 gtk 
    1113
    1214description         Oxygen-Gtk is a port of the default KDE widget theme (Oxygen) to GTk.
    1315
    14 long_description    ${description} \n\
    15                     Its primary goal is to ensure visual consistency between GTk and Qt-based \
     16long_description    ${description} \
     17                    \nIts primary goal is to ensure visual consistency between GTk and Qt-based \
    1618                    applications running under KDE. A secondary objective is to have a \
    1719                    stand-alone nice looking GTk theme that behaves well on other desktop \
    18                     environments. \n\
    19                     Unlike other attempts made to port the KDE Oxygen theme to GTk, this attempt \
    20                     does not depend on Qt (via some Qt to GTk conversion engine), nor does it render \
    21                     the widget appearance via hardcoded pixmaps.
     20                    environments. \
     21                    \nUnlike other attempts made to port the KDE Oxygen theme to GTk, this attempt \
     22                    does not depend on Qt (via some Qt to GTk conversion engine)
    2223
    2324platforms           darwin
    2425license             LGPL-2+
    2526maintainers         {gmail.com:rjvbertin @RJVB}
    2627
    27 homepage            http://kde-look.org/content/show.php/Oxygen+Gtk?content=136216
     28homepage            https://store.kde.org/p/1005553
     29
    2830
    2931if {${subport} eq "oxygen-gtk3"} {
    30     version             1.4.1
     32    long_description    {*}${long_description}.
     33    git.branch          705b755f67b50213ec596a51b8cfabf2780bc24b
     34    github.setup        kde oxygen-gtk ${git.branch}
     35    name                oxygen-gtk3
     36    version             1.4.1.12
    3137    distname            ${subport}-${version}
    3238
    33     PortGroup           cmake 1.0
    34     cmake.out_of_source yes
    35 
    36     master_sites        kde:stable/${subport}/${version}/src/ \
    37                         ftp://ftp.kde.org/pub/kde/stable/${subport}/${version}/src
    38     livecheck.regex     "oxygen-gtk3 - version.*(1\\.\\d+?(\\.\\d+))"
    39 
    40     checksums           rmd160  3279bfd21840cd4c7fa85e4d411c2a962cffa9e3 \
    41                         sha256  0e64227c85753a479904ecb41160cd06abf0a3da4a2cf33c11edf502bfe4a75d
     39    checksums           rmd160  64f2dbd5f85926bb771f5449c6700b4746c92efa \
     40                        sha256  dba5a693a6e57818e758fba113a37c9be8690ee9d64291e486d9360e6184191ca \
     41                        size    263861
    4242
    43     depends_lib-append  path:lib/pkgconfig/gtk+-3.0.pc:gtk3
     43    depends_lib-append  port:gtk3
    4444} else {
    45     version             1.4.5
    46 
    47     PortGroup           cmake 1.0
    48     cmake.out_of_source yes
    49 
    50     master_sites        kde:stable/${name}/${version}/src/ \
    51                         ftp://ftp.kde.org/pub/kde/stable/${name}/${version}/src
    52     livecheck.regex     "Oxygen Gtk.*(1\\.\\d+?(\\.\\d+))"
     45    long_description    {*}${long_description}, nor does it render \
     46                        the widget appearance via hardcoded pixmaps.
     47    git.branch          3b0558f811d3dbf56de79939bfc1f6fee743fd41
     48    github.setup        kde oxygen-gtk ${git.branch}
     49    name                oxygen-gtk2
     50    version             1.4.6.65
     51    distname            ${subport}-${version}
    5352
    54     checksums           rmd160  51360c2b16887b22d093e29fea3456210d92e335 \
    55                         sha256  5b6c826a9741c244dc41ff5412657b82f1f4f622e8cfc3f99e6d2aa714c1d303
     53    checksums           rmd160  012e9c5c2f537e6c565476338dfd484776f3204e \
     54                        sha256  0480fc60b804afa74be288604dfa25dcaf549cea54f186d80b566779878cffd0 \
     55                        size    266053
    5656
    57     depends_lib-append  path:lib/pkgconfig/gtk+-2.0.pc:gtk2
     57    depends_lib-append  port:gtk2
    5858}
    5959
    60 livecheck.type      regex
    61 livecheck.url       ${homepage}
    62 
    63 use_bzip2           yes
    64 
    6560depends_build-append    port:pkgconfig
    66 depends_lib-append  port:xorg-libX11 \
    67                     path:lib/pkgconfig/cairo.pc:cairo \
    68                     port:dbus
    69 
    70 post-configure {
    71     # Default libraries extension is ".dylib" on Darwin, not ".so", but gtk-engines must have a .so extension
    72     # NB: replacing the extension post-destroot seems to work too, but this seems cleaner to me even if more complicated.
    73     if {[variant_exists universal] && [variant_isset universal]} {
    74         reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/build-x86_64/src/CMakeFiles/oxygen-gtk.dir/build.make \
    75             ${workpath}/build-x86_64/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
    76             ${workpath}/build-x86_64/src/CMakeFiles/oxygen-gtk.dir/link.txt \
    77             ${workpath}/build-x86_64/src/cmake_install.cmake
    78         reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/build-i386/src/CMakeFiles/oxygen-gtk.dir/build.make \
    79             ${workpath}/build-i386/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
    80             ${workpath}/build-i386/src/CMakeFiles/oxygen-gtk.dir/link.txt \
    81             ${workpath}/build-i386/src/cmake_install.cmake
    82     } else {
    83         reinplace {s/liboxygen-gtk\.dylib/liboxygen-gtk\.so/} ${workpath}/build/src/CMakeFiles/oxygen-gtk.dir/build.make \
    84             ${workpath}/build/src/CMakeFiles/oxygen-gtk.dir/cmake_clean.cmake \
    85             ${workpath}/build/src/CMakeFiles/oxygen-gtk.dir/link.txt \
    86             ${workpath}/build/src/cmake_install.cmake
    87     }
     61depends_lib-append      port:xorg-libX11 \
     62                        path:lib/pkgconfig/cairo.pc:cairo \
     63                        port:dbus
     64
     65post-patch {
     66    # build the engine as a shared module (= bundle), which means cmake will give it the .so extension
     67    # which is what GTk expects.
     68    # Cf. BKO #349475 (oxygen-gtk2) and BKO #349476 (oxygen-gtk3)
     69    reinplace "s|add_library(.*oxygen-gtk.*SHARED|add_library(oxygen-gtk MODULE|g" ${worksrcpath}/src/CMakeLists.txt
    8870}