dev-util/idea-community: Prevent automatic updates
authorMike Pagano <mpagano@gentoo.org>
Sat, 4 Jan 2020 00:12:51 +0000 (19:12 -0500)
committerMike Pagano <mpagano@gentoo.org>
Sat, 4 Jan 2020 00:12:51 +0000 (19:12 -0500)
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 <mpagano@gentoo.org>
dev-util/idea-community/idea-community-2019.3.193.5233.102-r1.ebuild [moved from dev-util/idea-community/idea-community-2019.3.193.5233.102.ebuild with 84% similarity]

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 c869f99be759c47c10e42813b9c4c069609f421b..bf5c5606c6a98506fa604fc4de57e11e79d97c42 100644 (file)
@@ -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
 }