[153619] trunk/dports/devel/dbusmenu-qt/Portfile
mk at macports.org
mk at macports.org
Thu Oct 6 01:14:51 CEST 2016
Revision: 153619
https://trac.macports.org/changeset/153619
Author: mk at macports.org
Date: 2016-10-05 16:14:51 -0700 (Wed, 05 Oct 2016)
Log Message:
-----------
dbusmenu-qt5: new subport (closes #49630)
Modified Paths:
--------------
trunk/dports/devel/dbusmenu-qt/Portfile
Modified: trunk/dports/devel/dbusmenu-qt/Portfile
===================================================================
--- trunk/dports/devel/dbusmenu-qt/Portfile 2016-10-05 22:49:03 UTC (rev 153618)
+++ trunk/dports/devel/dbusmenu-qt/Portfile 2016-10-05 23:14:51 UTC (rev 153619)
@@ -2,43 +2,71 @@
# $Id$
PortSystem 1.0
-PortGroup kde4 1.1
name dbusmenu-qt
-version 0.9.2
-revision 1
categories devel kde4 kde
-maintainers nomaintainer
+maintainers gmail.com:rjvbertin mk
license GPL-2
description expose menus on DBus
-long_description A DBus interface to expose menus on DBus.
+long_description A DBus interface to expose notification area menus on DBus.
homepage https://launchpad.net/libdbusmenu-qt
+
+subport dbusmenu-qt5 {
+ description-append \
+ \; Qt5 version
+ long_description-append \
+ Qt5 version.
+}
+
+if {${subport} eq "${name}"} {
+ PortGroup kde4 1.1
+ version 0.9.2
+ revision 1
+ master_sites ${homepage}/trunk/${version}/+download/
+ use_bzip2 yes
+ checksums rmd160 e50cbffbf57329a26742ddf32d0f54248fe672cc \
+ sha256 ae6c1cb6da3c683aefed39df3e859537a31d80caa04f3023315ff09e5e8919ec
+ configure.args-append \
+ -DUSE_QT4=ON -DUSE_QT5=OFF
+ post-destroot {
+ # CMake is not installing all of the src headers; install them
+ # manually here. Destination directory already exists.
+ foreach header [exec find ${worksrcpath}/src -name "*.h" | \
+ sed -e "s@${worksrcpath}/src/@@g" | \
+ grep -v "_p\.h"] {
+ xinstall -m 644 -W ${worksrcpath}/src ${header} \
+ ${destroot}${prefix}/include/${name}
+ }
+ }
+ test.run yes
+} else {
+ set qt5.prefer_kde 1
+ PortGroup qt5 1.0
+ PortGroup cmake 1.0
+ set cmake.out_of_source \
+ yes
+ fetch.type bzr
+ bzr.url lp:~dbusmenu-team/libdbusmenu-qt/trunk
+ bzr.revision 269
+ version 0.9.3.15.10
+ configure.args-append \
+ -DUSE_QT4=OFF -DUSE_QT5=ON
+ test.run no
+}
+
platforms darwin
-depends_lib-append port:qjson
+# if {${os.platform} ne "linux"} {
+# depends_lib-append port:qjson
+# }
-master_sites ${homepage}/trunk/${version}/+download/
distname lib${name}-${version}
-use_bzip2 yes
-checksums rmd160 e50cbffbf57329a26742ddf32d0f54248fe672cc \
- sha256 ae6c1cb6da3c683aefed39df3e859537a31d80caa04f3023315ff09e5e8919ec
-if {![variant_isset doc]} {
+if {![variant_isset docs]} {
configure.args-append -DWITH_DOC=Off
}
-post-destroot {
- # CMake is not installing all of the src headers; install them
- # manually here. Destination directory already exists.
- foreach header [exec find ${worksrcpath}/src -name "*.h" | \
- sed -e "s@${worksrcpath}/src/@@g" | \
- grep -v "_p\.h"] {
- xinstall -m 644 -W ${worksrcpath}/src ${header} \
- ${destroot}${prefix}/include/${name}
- }
-}
-
livecheck.type regex
livecheck.url ${homepage}
livecheck.regex "Latest version is (.*)"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macports.org/pipermail/macports-changes/attachments/20161005/a406961b/attachment-0002.html>
More information about the macports-changes
mailing list