summaryrefslogtreecommitdiff
path: root/packages/sys-devel/qconf/qconf-scm.exheres-0
blob: 380b03b2f27be7c0b82a21e8cb74be4ccead30c1 (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
DOWNLOADS=""
SLOT="0"
PLATFORMS="~amd64 ~x86"
SUMMARY="./configure like generator for qmake-based projects"
HOMEPAGE="https://github.com/psi-plus/qconf"

SCM_REPOSITORY="https://github.com/psi-plus/qconf.git"

require qmake [ slot=5 ]
require scm-git

MYOPTIONS="
    (
        qt4
        qt5
    )
    [[ number-selected = exactly-one ]]
"

DEPENDENCIES="
    build+run:
        qt4? ( x11-libs/qt:4 )
        qt5? ( x11-libs/qtbase:5 )
"

src_configure() {
    option qt4 && QTVERSION=4
    option qt5 && QTVERSION=5
    econf \
        --qtselect="${QTVERSION}" \
        --extraconf=QMAKE_STRIP= \
        --verbose || die
    # this currently works only for qt5
    eqmake
}

src_install() {
    default
}