summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGert <pellingert@gmail.com>2016-03-04 23:00:06 +0100
committerPatrice Clement <monsieurp@gentoo.org>2016-03-09 09:35:06 +0000
commite27b5dd99def04681a7e50a27d005eeac00b8295 (patch)
tree1410058c446e7ed83216cc6bcaf138c510daebc7 /dev-util/clion
parentapp-admin/cgmanager: Removed old. (diff)
downloadgentoo-e27b5dd99def04681a7e50a27d005eeac00b8295.tar.gz
gentoo-e27b5dd99def04681a7e50a27d005eeac00b8295.tar.bz2
gentoo-e27b5dd99def04681a7e50a27d005eeac00b8295.zip
dev-util/clion: new package
Pull-Request: https://github.com/gentoo/gentoo/pull/978 Acked-by: Patrice Clement <monsieurp@gentoo.org> Signed-off-by: Patrice Clement <monsieurp@gentoo.org>
Diffstat (limited to 'dev-util/clion')
-rw-r--r--dev-util/clion/Manifest1
-rw-r--r--dev-util/clion/clion-1.2.4.143.1186.ebuild66
-rw-r--r--dev-util/clion/metadata.xml16
3 files changed, 83 insertions, 0 deletions
diff --git a/dev-util/clion/Manifest b/dev-util/clion/Manifest
new file mode 100644
index 000000000000..09ef9985b616
--- /dev/null
+++ b/dev-util/clion/Manifest
@@ -0,0 +1 @@
+DIST clion-143.1186.tar.gz 220702330 SHA256 a2d6960afbfae77f59481c5ad30bc7c5afe9451bdf9d12cd9435f605b57b522b SHA512 d4ea1bad5f3da3bab569380114011798c29e633009867c8020363c9af72326ebaa3232dff9c931a67dd0a0195bf4903647e250963c7aeebe9ad83340c988cbad WHIRLPOOL 2a0855b6a32a5e23a1c7266d7a3dc00ad3ba905c5a8fa6d1e9959d6d4f67c73d35c94bfbe0837fde0d1736bd48dcb9212a219cfa81732cb169abdb1fb5dc4dd7
diff --git a/dev-util/clion/clion-1.2.4.143.1186.ebuild b/dev-util/clion/clion-1.2.4.143.1186.ebuild
new file mode 100644
index 000000000000..7c4ad6683a08
--- /dev/null
+++ b/dev-util/clion/clion-1.2.4.143.1186.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit eutils versionator
+
+SLOT="0"
+PV_STRING="$(get_version_component_range 4-6)"
+MY_PV="$(get_version_component_range 1-3)"
+
+KEYWORDS="~amd64 ~x86"
+SRC_URI="http://download.jetbrains.com/cpp/${PN}-${MY_PV}.tar.gz -> ${PN}-${PV_STRING}.tar.gz"
+DESCRIPTION="A complete toolset for C and C++ development"
+HOMEPAGE="http://www.jetbrains.com/clion"
+
+LICENSE="IDEA
+ || ( IDEA_Academic IDEA_Classroom IDEA_OpenSource IDEA_Personal )"
+IUSE=""
+
+RDEPEND="${DEPEND}
+ sys-devel/gdb
+ dev-util/cmake"
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+QA_PREBUILT="opt/${PN}-${MY_PV}/*"
+
+src_prepare() {
+ if ! use amd64; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86_64 || die
+ fi
+ if ! use arm; then
+ rm bin/fsnotifier-arm || die
+ rm -r plugins/tfsIntegration/lib/native/linux/arm || die
+ fi
+ if ! use ppc; then
+ rm -r plugins/tfsIntegration/lib/native/linux/ppc || die
+ fi
+ if ! use x86; then
+ rm -r plugins/tfsIntegration/lib/native/linux/x86 || die
+ fi
+
+ rm -r bin/cmake || die
+ rm license/CMake* || die
+ rm -r bin/gdb || die
+ rm license/GDB* || die
+
+ rm -r plugins/tfsIntegration/lib/native/solaris || die
+ rm -r plugins/tfsIntegration/lib/native/hpux || die
+}
+
+src_install() {
+ local dir="/opt/${PN}-${MY_PV}"
+
+ insinto "${dir}"
+ doins -r *
+ fperms 755 "${dir}"/bin/{clion.sh,fsnotifier{,64}}
+
+ make_wrapper "${PN}" "${dir}/bin/${PN}.sh"
+ newicon "bin/${PN}.svg" "${PN}.svg"
+ make_desktop_entry "${PN}" "clion" "${PN}" "Development;IDE;"
+
+ # recommended by: https://confluence.jetbrains.com/display/IDEADEV/Inotify+Watches+Limit
+ mkdir -p "${D}/etc/sysctl.d/" || die
+ echo "fs.inotify.max_user_watches = 524288" > "${D}/etc/sysctl.d/30-idea-inotify-watches.conf" || die
+}
diff --git a/dev-util/clion/metadata.xml b/dev-util/clion/metadata.xml
new file mode 100644
index 000000000000..026c6118e9de
--- /dev/null
+++ b/dev-util/clion/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer type="person">
+ <email>gert@pellin.be</email>
+ <name>Gert Pellin</name>
+ <description>Proxy maintainer. Assign bugs to him.</description>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+<longdescription lang="en">
+ Fully Integrated C/C++ Development Environment.
+</longdescription>
+</pkgmetadata>