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

require github [ user=eranif force_git_clone=true ]

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"

require cmake [ api=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:
        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] )
"

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

CMAKE_SRC_CONFIGURE_OPTION_ENABLES=(
    "clang CLANG"
    "ssh SFTP"
)

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

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