From cc48798f0688e6dea518c1f6f22750fd54bb913f Mon Sep 17 00:00:00 2001 From: Mike Pagano Date: Fri, 3 Jan 2020 19:12:51 -0500 Subject: [PATCH] dev-util/idea-community: Prevent automatic updates Append a setting to the properties file which will prevent automatic updates and show the user from within the application that Gentoo is controlling that. Closes: https://bugs.gentoo.org/704494 Package-Manager: Portage-2.3.79, Repoman-2.3.16 Signed-off-by: Mike Pagano --- ...a-community-2019.3.193.5233.102-r1.ebuild} | 28 +++++++++++++------ 1 file changed, 19 insertions(+), 9 deletions(-) rename dev-util/idea-community/{idea-community-2019.3.193.5233.102.ebuild => idea-community-2019.3.193.5233.102-r1.ebuild} (84%) diff --git a/dev-util/idea-community/idea-community-2019.3.193.5233.102.ebuild b/dev-util/idea-community/idea-community-2019.3.193.5233.102-r1.ebuild similarity index 84% rename from dev-util/idea-community/idea-community-2019.3.193.5233.102.ebuild rename to dev-util/idea-community/idea-community-2019.3.193.5233.102-r1.ebuild index c869f99be759..bf5c5606c6a9 100644 --- a/dev-util/idea-community/idea-community-2019.3.193.5233.102.ebuild +++ b/dev-util/idea-community/idea-community-2019.3.193.5233.102-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 @@ -57,15 +57,16 @@ QA_PREBUILT="opt/${PN}-${MY_PV}/*" # jbr11 binary doesn't unpack nicely into a single folder src_unpack() { -if use !jbr11 ; then -default_src_unpack -else -cd "${WORKDIR}" -unpack ${MY_PN}IC-${PV_STRING}.tar.gz -cd "${S}" -mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz -fi + if use !jbr11 ; then + default_src_unpack + else + cd "${WORKDIR}" + unpack ${MY_PN}IC-${PV_STRING}.tar.gz + cd "${S}" + mkdir jre64 && cd jre64 && unpack jbr-${JRE11_BASE}-linux-x64-b${JRE11_VER}.tar.gz + fi } + src_prepare() { if use amd64; then JRE_DIR=jre64 @@ -75,6 +76,15 @@ src_prepare() { if use jbr8; then mv "${WORKDIR}/jre" ./"${JRE_DIR}" fi + + sed -i \ + -e "\$a\\\\" \ + -e "\$a#-----------------------------------------------------------------------" \ + -e "\$a# Disable automatic updates as these are handled through Gentoo's" \ + -e "\$a# package manager. See bug #704494" \ + -e "\$a#-----------------------------------------------------------------------" \ + -e "\$aide.no.platform.update=Gentoo" bin/idea.properties + eapply_user } -- 2.26.2