source: trunk/dports/devel/dbusmenu-qt/Portfile

Last change on this file was 153652, checked in by mk@…, 12 months ago

dbusmenu-qt5: remove duplicated Id line

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.7 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153652 2016-10-06 19:41:12Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                dbusmenu-qt
7categories          devel kde4 kde
8maintainers         gmail.com:rjvbertin mk
9license             GPL-2
10description         expose menus on DBus
11long_description    A DBus interface to expose notification area menus on DBus.
12
13homepage            https://launchpad.net/libdbusmenu-qt
14
15subport dbusmenu-qt5 {
16    description-append \
17                    \; Qt5 version
18    long_description-append \
19                    Qt5 version.
20}
21
22if {${subport} eq "${name}"} {
23    PortGroup       kde4 1.1
24    version         0.9.2
25    revision        1
26    master_sites    ${homepage}/trunk/${version}/+download/
27    use_bzip2       yes
28    checksums       rmd160  e50cbffbf57329a26742ddf32d0f54248fe672cc \
29                    sha256  ae6c1cb6da3c683aefed39df3e859537a31d80caa04f3023315ff09e5e8919ec
30    configure.args-append \
31                    -DUSE_QT4=ON -DUSE_QT5=OFF
32    post-destroot {
33        # CMake is not installing all of the src headers; install them
34        # manually here.  Destination directory already exists.
35        foreach header [exec find ${worksrcpath}/src -name "*.h" | \
36                            sed -e "s@${worksrcpath}/src/@@g" | \
37                            grep -v "_p\.h"] {
38            xinstall -m 644 -W ${worksrcpath}/src ${header} \
39                ${destroot}${prefix}/include/${name}
40        }
41    }
42    test.run        yes
43} else {
44    # this port is mostly used by KF5 ports so we indicate
45    # that we'd prefer to use port:qt5-kde if it's available
46    # (iow, installed, or installable because port:qt5 isn't).
47    set qt5.prefer_kde 1
48    platform darwin {
49        PortGroup   cxx11 1.0
50    }
51    PortGroup       qt5 1.0
52    PortGroup       cmake 1.0
53    set cmake.out_of_source \
54                    yes
55    fetch.type      bzr
56    bzr.url         lp:~dbusmenu-team/libdbusmenu-qt/trunk
57    bzr.revision    271
58    version         0.9.3.16.04
59    distname        ldbusmenu-qt-0.9.3
60    worksrcdir      ldbusmenu-qt-0.9.3
61
62    # libdbusmenu-qt5 use QtCore, QtWidgets and QtDBus all of which
63    # are provided by port:qt5-qtbase if port:qt5-kde isn't being used.
64    # (port:qt5-qtbase is pulled in by default in that case).
65    configure.args-append \
66                    -DUSE_QT4=OFF -DUSE_QT5=ON
67    test.run        no
68}
69
70platforms           darwin
71
72# if {${os.platform} ne "linux"} {
73#     depends_lib-append  port:qjson
74# }
75
76distname            lib${name}-${version}
77
78if {![variant_isset docs]} {
79    configure.args-append   -DWITH_DOC=Off
80}
81
82livecheck.type      regex
83livecheck.url       ${homepage}
84livecheck.regex     "Latest version is (.*)"
Note: See TracBrowser for help on using the repository browser.