summaryrefslogtreecommitdiff
path: root/packages/dev-util/codelite/codelite.exlib
blob: 59e807b793aba94ed33c98eb803c7dea32b2104e (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

SCM_REPOSITORY="git://github.com/eranif/codelite.git"
require scm-git

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 ]

export_exlib_phases src_configure src_install

DOWNLOADS=""
MYOPTIONS="
	clang
	flex
	pch
	sftp
	webview
"

DEPENDENCIES="
	build+run:
		x11-libs/wxGTK[>=3]
		net-libs/libssh
		dev-db/sqlite
"

codelite_src_configure() {
	local cmakeparams=()
	cmakeparams+=(
		$(cmake_enable clang CLANG)
		$(cmake_with flex FLEX)
		$(cmake_with pch PCH)
		$(cmake_enable sftp SFTP)
		$(cmake_with webview WEBVIEW)
	)
	ecmake "${cmakeparams[@]}"
}

codelite_src_install() {
	cmake_src_install
	cd "${IMAGE}"/usr
	mkdir $(exhost --target)
	edo mv bin $(exhost --target)/
	edo mv lib $(exhost --target)/
}