1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile Thu Jun 5 12:10:38 UTC 2014 rjvbertin@gmail.com $ |
---|
3 | # kde/libkgapi/Portfile |
---|
4 | |
---|
5 | PortSystem 1.0 |
---|
6 | PortGroup kde4 1.1 |
---|
7 | |
---|
8 | name QtCurve |
---|
9 | version 1.8.14 |
---|
10 | |
---|
11 | categories kde kde4 |
---|
12 | |
---|
13 | description A set of widget styles for Qt4/KDE4 based apps. |
---|
14 | |
---|
15 | platforms darwin |
---|
16 | license LGPL-2+ |
---|
17 | maintainers gmail.com:rjvbertin |
---|
18 | |
---|
19 | homepage http://kde-look.org/content/show.php?content=40492 |
---|
20 | master_sites http://craigd.wikispaces.com/file/view/ |
---|
21 | distname ${name}-KDE4-${version} |
---|
22 | |
---|
23 | livecheck.type regex |
---|
24 | livecheck.url http://kde-look.org/content/show.php?content=40492 |
---|
25 | livecheck.regex "Source.*KDE 4 - (1\\.\\d+?(\\.\\d+))" |
---|
26 | |
---|
27 | use_bzip2 yes |
---|
28 | |
---|
29 | checksums rmd160 88a7b4eba945078d394cf465e555ee2ff8aab6fc \ |
---|
30 | sha256 ff2f4731a0fd3c0a246a4c9099ac8a117bba463fd7cc00490acb6525ea463404 |
---|
31 | |
---|
32 | depends_lib-append port:kdelibs4 \ |
---|
33 | port:qt4-mac |
---|
34 | |
---|
35 | configure.args-append -DQTC_STYLE_SUPPORT:BOOL=ON |
---|
36 | |
---|
37 | variant devel description {Prevent stripping of binaries} {} |
---|
38 | if { [variant_isset devel] } { |
---|
39 | configure.args-delete -DCMAKE_BUILD_TYPE=Release |
---|
40 | configure.args-append -DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo -DCMAKE_STRIP:FILEPATH=/bin/echo |
---|
41 | } |
---|
42 | |
---|
43 | variant qtonly description {Build only Qt style support, for installations without KDE} {} |
---|
44 | if { [variant_isset qtonly] } { |
---|
45 | depends_lib-delete port:kdelibs4 |
---|
46 | configure.args-append -DQTC_QT_ONLY:BOOL=ON |
---|
47 | } else { |
---|
48 | post-destroot { |
---|
49 | xinstall -m 644 ${filespath}/qtc_qtcurve-rjvb.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/ |
---|
50 | xinstall -m 644 ${filespath}/qtc_qtcurve-osx.themerc ${destroot}/${prefix}/share/apps/kstyle/themes/ |
---|
51 | xinstall -m 644 ${filespath}/QtCurveOSX.colors ${destroot}/${prefix}/share/apps/color-schemes/ |
---|
52 | xinstall -d -m 755 ${destroot}${prefix}/share/qt4/plugins |
---|
53 | system "ln -s ${prefix}/lib/kde4/plugins/styles ${destroot}${prefix}/share/qt4/plugins" |
---|
54 | } |
---|
55 | } |
---|
56 | |
---|
57 | notes-append "To access QtCurve and other KDE styles from pure Qt4 applications, execute |
---|
58 | ln -s ${prefix}/lib/kde4/plugins/styles ${prefix}/share/qt4/plugins |
---|
59 | with the appropriate privileges" |
---|