summaryrefslogtreecommitdiff
path: root/packages/x11-themes/qtcurve/qtcurve-scm.exheres-0
blob: 344289422fbe5a6ef925d852d98a67f1d30563c9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
# Copyright 2014 David Heidelberger <david.heidelberger@ixit.cz>
# Distributed under the terms of the GNU General Public License v2

SCM_REPOSITORY="git://anongit.kde.org/qtcurve"
DOWNLOADS=""
PLATFORMS="~amd64"
require scm-git

require cmake [ api=2 ]

SUMMARY="QtCurve - Qt5/Qt4/GTK+2 widget styles"
DESCRIPTION="This is a set of widget styles for Qt5/Qt4 and Gtk2 based apps."

LICENCES="LGPL-2.1"
SLOT="0"
MYOPTIONS="
    gtk2 [[ requires = X ]]
    qt4 [[ requires = X ]]
    qt5
    X
"

DEPENDENCIES="
    build:
        sys-devel/gettext
        gtk2? (
            virtual/pkg-config
        )
        X? (
            virtual/pkg-config
            x11-proto/xcb-proto
        )
    build+run:
        x11-libs/libxcb
        kde-frameworks/frameworkintegration
        kde-frameworks/kdelibs4support
        gtk2? (
            x11-libs/gtk+:2
        )
        qt4? (
            x11-libs/qt:4
        )
        qt5? (
            x11-libs/qtbase:5
            x11-libs/qtsvg:5
            x11-libs/qtx11extras:5
        )
        X? (
            x11-libs/libX11
        )
"
CMAKE_SRC_CONFIGURE_PARAMS+=(
    -DQTC_LOCALE_DIR:PATH=/usr/share/locale
    # We don't ship kde-workspace:4 anymore
    -DQTC_QT4_ENABLE_KDE:BOOL=FALSE
    # Disabled by default upstream
    -DQTC_QT5_ENABLE_QTQUICK2:BOOL=FALSE
)
CMAKE_SRC_CONFIGURE_OPTIONS+=(
    'X QTC_ENABLE_X11'
)
CMAKE_SRC_CONFIGURE_OPTION_ENABLES+=(
    GTK2
    QT4
    QT5
)
CMAKE_SRC_CONFIGURE_TESTS+=( '-DENABLE_TEST:BOOL=TRUE -DENABLE_TEST:BOOL=FALSE' )