summaryrefslogtreecommitdiff
path: root/packages/dev-util/codelite/codelite.exlib
blob: 6c18f46996145099843a685437d29debb777bb6d (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
# Distributed under the terms of the GNU General Public License v2
# Copyright 2018 Gluzskiy Alexandr <sss@sss.chaoslab.ru>

require github [ user=eranif ] cmake [ api=2 ]

HOMEPAGE="http://www.codelite.org"
SUMMARY="A Free, open source, cross platform C,C++,PHP and Node.js IDE"
DESCRIPTION=""
SLOT="0"
LICENCES="GPL-2"

MYOPTIONS="
    clang [[ description = [ Use clang for codecompletion ]  ]]
    flex [[ description = [ Add support for sys-devel/flex ] ]]
    pch [[ description = [ Use precompilled headers during build (speedup build a lot on single machine, may cause problems with distcc/icecc) ] ]]
    ssh [[ description = [ Support ssh in scm modules via libssh ] ]]
    webview [[ description = [ Use webview in wxGTK ] ]]
"

DEPENDENCIES="
    build+run:
    net-libs/libssh
        dev-db/sqlite:3
        x11-libs/wxGTK:=[>=3]
        clang? ( dev-lang/clang )
        flex? ( sys-devel/flex )
        ssh? ( net-libs/libssh )
        webview? ( x11-libs/wxGTK[webkit] )
    suggestion:
        gnome-desktop/gnome-terminal [[ description = [ terminal for debugger wrapper ] ]]
        kde/konsole [[ description = [ terminal for debugger wrapper ] ]]
        xfce-extra/xfce4-terminal [[ description = [ terminal for debugger wrapper ] ]]
"

DEFAULT_SRC_PREPARE_PATCHES=(
    "${FILES}"/cmake_find_clang.patch
)

CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
    "ssh SFTP"
)

CMAKE_SRC_CONFIGURE_OPTION_USES=(
    "clang CLANG"
)

CMAKE_SRC_CONFIGURE_OPTION_WITHS=(
    "flex FLEX"
    "pch PCH"
    "ssh SFTP"
    "webview WEBVIEW"
)

CMAKE_SRC_CONFIGURE_PARAMS=(
    -DCL_PREFIX=/usr/$(exhost --target)
)