From 92e12370257b6375f0dacc3402a372909b23178b Mon Sep 17 00:00:00 2001 From: Anton Afanasyev Date: Wed, 13 Nov 2019 21:16:02 -0800 Subject: [PATCH] CLion: update to 2019.3.1 --- srcpkgs/CLion/INSTALL.msg | 1 - srcpkgs/CLion/template | 28 ++++++++++++++++++++-------- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/srcpkgs/CLion/INSTALL.msg b/srcpkgs/CLion/INSTALL.msg index 860cb2fb6b..77f335989c 100644 --- a/srcpkgs/CLion/INSTALL.msg +++ b/srcpkgs/CLion/INSTALL.msg @@ -8,4 +8,3 @@ CLion has the following optional dependencies: python: Python 2 programming language support python3: Python 3 programming language support doxygen: Code documentation generation - libdbusmenu-glib: For global menu support diff --git a/srcpkgs/CLion/template b/srcpkgs/CLion/template index aa34774c3b..9697fe8518 100644 --- a/srcpkgs/CLion/template +++ b/srcpkgs/CLion/template @@ -1,20 +1,26 @@ # Template file for 'CLion' pkgname=CLion -version=2019.2.4 +version=2019.3.1 revision=1 archs="i686 x86_64" wrksrc="clion-${version}" -depends="virtual?java-environment giflib libXtst" +depends="jetbrains-jdk-bin giflib libXtst" short_desc="Smart cross-platform IDE for C and C++" maintainer="Anton Afanasyev " license="custom:Commercial" homepage="https://www.jetbrains.com/clion" distfiles="https://download.jetbrains.com/cpp/CLion-${version}.tar.gz" -checksum=2d3b1820eef6d60aab4b9a12c7357280de6606f72cdc1c72d6449e3676f23030 +checksum=1c9bdeb55dda997a6cfce84ce2dbe2951f117709f9d37a3b65cfc2a68a359ecd repository=nonfree restricted=yes nopie=yes +build_options="bundled_cmake bundled_gdb bundled_lldb" +build_options_default="bundled_cmake bundled_gdb bundled_lldb" +desc_option_bundled_cmake="Install bundled CMake" +desc_option_bundled_gdb="Install bundled GDB" +desc_option_bundled_lldb="Install bundled LLDB" + post_extract() { # Remove files for other CPU architectures rm -rf bin/fsnotifier-arm @@ -35,11 +41,15 @@ post_extract() { ;; esac - # Remove JetBrains JDK - rm -rf jre64 - - # TODO: JetBrains' LLDB, GDB, and CMake can be made installable via separate subpackages - # bin/lldb bin/gdb bin/cmake + if [ ! "$build_option_bundled_cmake" ]; then + rm -rf bin/cmake + fi + if [ ! "$build_option_bundled_gdb" ]; then + rm -rf bin/gdb + fi + if [ ! "$build_option_bundled_lldb" ]; then + rm -rf bin/lldb + fi } do_install() { @@ -53,6 +63,8 @@ do_install() { vlicense $i done + mkdir -p /usr/lib/jvm/jbrsdk + ln -sf /usr/lib/jvm/jbrsdk ${DESTDIR}/${TARGET_PATH}/jbr vcopy bin ${TARGET_PATH} vcopy help ${TARGET_PATH} vcopy lib ${TARGET_PATH}