Ticket #49577: polkitqt.diff
File polkitqt.diff, 3.1 KB (added by RJVB (René Bertin), 9 years ago) |
---|
-
kde/polkit-qt/Portfile
old new 3 3 4 4 PortSystem 1.0 5 5 PortGroup cmake 1.0 6 PortGroup qt4 1.07 6 8 7 name polkit-qt 9 version 0.103.0 10 revision 1 11 categories kde kde4 security 8 version 0.112.0 9 categories kde security 12 10 license {LGPL GPL-2+} 13 maintainers nomaintainer11 maintainers gmail.com:rjvbertin openmaintainer 14 12 description Qt PolicyKit wrapper 15 long_description ${description} 13 long_description Polkit-qt is a library that lets developers use the PolicyKit API through a nice \ 14 Qt-styled API. It is mainly a wrapper around QAction and QAbstractButton that \ 15 lets you integrate those two component easily with PolicyKit 16 16 platforms darwin 17 homepage http ://api.kde.org/kdesupport-api/kdesupport-apidocs/polkit-qt/html/17 homepage https://techbase.kde.org/Polkit-Qt-1 18 18 master_sites kde:stable/apps/KDE4.x/admin/ 19 19 distname ${name}-1-${version} 20 20 use_bzip2 yes 21 21 22 checksums rmd160 6 f25a409d3273396a67d0ebfe1437a9976963f8a\23 sha256 2e32566b8e3d0fd7cf619497089763303c3dc08b7e5a666b2369720fced2274c22 checksums rmd160 6104a17a0b5ae4bd8c21426d30dbb3e49a225fbb \ 23 sha256 67fb03bf6ca3e0bdbd98d374dfb5b1651a07d17ae6c23e11a81b4b084447e7c6 24 24 25 depends_build-append port:automoc\25 depends_build-append \ 26 26 port:pkgconfig 27 27 28 28 depends_lib port:policykit 29 29 30 subport polkit-qt5 { 31 long_description \ 32 Polkit-qt5 is a library that lets developers use the PolicyKit API through a nice \ 33 Qt5-styled API. It is mainly a wrapper around QAction and QAbstractButton that \ 34 lets you integrate those two component easily with PolicyKit 35 categories-append \ 36 kf5 37 PortGroup qt5 1.0 38 configure.args-append \ 39 -DUSE_QT5:BOOL=ON -DUSE_QT4:BOOL=OFF 40 } 41 42 if {${subport} ne "polkit-qt5"} { 43 categories-append \ 44 kde4 45 PortGroup qt4 1.0 46 configure.args-append \ 47 -DUSE_QT4:BOOL=ON -DUSE_QT5:BOOL=OFF 48 depends_build-append \ 49 port:automoc 50 } 51 30 52 post-patch { 31 # remove the buggy prodided script for finding automoc 32 delete ${worksrcpath}/cmake/modules/FindAutomoc4.cmake 53 if {[file exists ${worksrcpath}/cmake/modules/FindAutomoc4.cmake]} { 54 # remove the buggy prodided script for finding automoc 55 delete ${worksrcpath}/cmake/modules/FindAutomoc4.cmake 56 } 33 57 } 34 58 35 59 livecheck.type regex 36 livecheck.url ${homepage}37 livecheck.regex " Qt PolicyKit wrapper</h1><h3>(\\d+(?:\\.\\d+)*)"60 livecheck.url http://download.kde.org/stable/apps/KDE4.x/admin/ 61 livecheck.regex "${name}-1-(\\d+(?:\\.\\d+)*)"