summaryrefslogtreecommitdiff
path: root/dev-util/codelite/codelite-scm.ebuild
blob: 9007d628b2d5c289aff2d390240a6b2902dfdbaf (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
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI="6"

WX_GTK_VER="3.0"

inherit cmake-utils git-r3 wxwidgets

DESCRIPTION="A Free, open source, cross platform C,C++,PHP and Node.js IDE"
HOMEPAGE="http://www.codelite.org"
EGIT_REPO_URI="git://github.com/eranif/${PN}.git"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="clang flex mysql pch sftp webview"

DEPEND="
	dev-db/sqlite:*
	net-libs/libssh
	x11-libs/wxGTK:3.0
	mysql? ( virtual/mysql )
"

RDEPEND="${DEPEND}"

PATCHES=(
	"${FILESDIR}/c++11.patch"
)

#src_prepare() {
#	epatch "${FILESDIR}/codelite_dont_strip.patch"
#}

src_configure() {
	local mycmakeargs=(
		-DENABLE_CLANG="$(usex clang)
		-DWITH_FLEX="$(usex flex)
		-DWITH_MYSQL="$(usex mysql)
		-DWITH_PCH="$(usex pch)
		-DENABLE_SFTP="$(usex sftp)
		-DWITH_WEBVIEW="$(usex webview)
	)

	cmake-utils_src_configure
}