diff --git a/devel/dbusmenu-qt/Portfile b/devel/dbusmenu-qt/Portfile
index 55e3a24..c58b3ce 100644
a
|
b
|
|
2 | 2 | # $Id: Portfile 140960 2015-10-06 20:13:45Z michaelld@macports.org $ |
3 | 3 | |
4 | 4 | PortSystem 1.0 |
5 | | PortGroup kde4 1.1 |
6 | 5 | |
7 | 6 | name dbusmenu-qt |
8 | 7 | version 0.9.2 |
9 | | revision 1 |
10 | 8 | categories devel kde4 kde |
11 | 9 | maintainers nomaintainer |
12 | 10 | license GPL-2 |
13 | 11 | description expose menus on DBus |
14 | | long_description A DBus interface to expose menus on DBus. |
| 12 | long_description A DBus interface to expose notification area menus on DBus. |
15 | 13 | |
16 | 14 | homepage https://launchpad.net/libdbusmenu-qt |
| 15 | |
| 16 | subport dbusmenu-qt5 { |
| 17 | description-append \ |
| 18 | \; Qt5 version |
| 19 | long_description-append \ |
| 20 | Qt5 version. |
| 21 | } |
| 22 | |
| 23 | if {${subport} eq "${name}"} { |
| 24 | PortGroup kde4 1.1 |
| 25 | master_sites ${homepage}/trunk/${version}/+download/ |
| 26 | use_bzip2 yes |
| 27 | checksums rmd160 e50cbffbf57329a26742ddf32d0f54248fe672cc \ |
| 28 | sha256 ae6c1cb6da3c683aefed39df3e859537a31d80caa04f3023315ff09e5e8919ec |
| 29 | revision 1 |
| 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 | set qt5.prefer_kde 1 |
| 45 | PortGroup qt5 1.0 |
| 46 | PortGroup cmake 1.0 |
| 47 | set cmake.out_of_source \ |
| 48 | yes |
| 49 | fetch.type bzr |
| 50 | bzr.url lp:~dbusmenu-team/libdbusmenu-qt/trunk |
| 51 | bzr.revision 269 |
| 52 | version 0.9.3.15.10 |
| 53 | configure.args-append \ |
| 54 | -DUSE_QT4=OFF -DUSE_QT5=ON |
| 55 | test.run no |
| 56 | } |
| 57 | |
17 | 58 | platforms darwin |
18 | 59 | |
19 | 60 | depends_lib-append port:qjson |
20 | 61 | |
21 | | master_sites ${homepage}/trunk/${version}/+download/ |
22 | 62 | distname lib${name}-${version} |
23 | | use_bzip2 yes |
24 | | checksums rmd160 e50cbffbf57329a26742ddf32d0f54248fe672cc \ |
25 | | sha256 ae6c1cb6da3c683aefed39df3e859537a31d80caa04f3023315ff09e5e8919ec |
26 | 63 | |
27 | | if {![variant_isset doc]} { |
| 64 | if {![variant_isset docs]} { |
28 | 65 | configure.args-append -DWITH_DOC=Off |
29 | 66 | } |
30 | 67 | |
31 | | post-destroot { |
32 | | # CMake is not installing all of the src headers; install them |
33 | | # manually here. Destination directory already exists. |
34 | | foreach header [exec find ${worksrcpath}/src -name "*.h" | \ |
35 | | sed -e "s@${worksrcpath}/src/@@g" | \ |
36 | | grep -v "_p\.h"] { |
37 | | xinstall -m 644 -W ${worksrcpath}/src ${header} \ |
38 | | ${destroot}${prefix}/include/${name} |
39 | | } |
40 | | } |
41 | | |
42 | 68 | livecheck.type regex |
43 | 69 | livecheck.url ${homepage} |
44 | 70 | livecheck.regex "Latest version is (.*)" |
… |
… |
PortSystem 1.0 |
6 | 6 | name dbusmenu-qt |
7 | 7 | version 0.9.2 |
8 | 8 | categories devel kde4 kde |
9 | | maintainers nomaintainer |
| 9 | maintainers gmail.com:rjvbertin nomaintainer |
10 | 10 | license GPL-2 |
11 | 11 | description expose menus on DBus |
12 | 12 | long_description A DBus interface to expose notification area menus on DBus. |