summaryrefslogtreecommitdiff
path: root/packages/dev-util/codelite/codelite.exlib
diff options
context:
space:
mode:
Diffstat (limited to 'packages/dev-util/codelite/codelite.exlib')
-rw-r--r--packages/dev-util/codelite/codelite.exlib50
1 files changed, 50 insertions, 0 deletions
diff --git a/packages/dev-util/codelite/codelite.exlib b/packages/dev-util/codelite/codelite.exlib
new file mode 100644
index 0000000..59e807b
--- /dev/null
+++ b/packages/dev-util/codelite/codelite.exlib
@@ -0,0 +1,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)/
+}