dev-util/idea-community:
authorMike Pagano <mpagano@gentoo.org>
Fri, 27 Mar 2020 19:36:18 +0000 (15:36 -0400)
committerMike Pagano <mpagano@gentoo.org>
Fri, 27 Mar 2020 19:36:18 +0000 (15:36 -0400)
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Mike Pagano <mpagano@gentoo.org>
dev-util/idea-community/idea-community-2019.3.3.193.6494.35.ebuild

index 31255cb34380e4a6cf7ca77bc672dfea98bee49c..fbfcbabe739d5e600ea96d66589d4f822dee7ab4 100644 (file)
@@ -61,9 +61,6 @@ QA_PREBUILT="opt/${PN}-${MY_PV}/*"
 
 # jbr11 binary doesn't unpack nicely into a single folder
 src_unpack() {
-       echo "S is ${S}"
-       echo "SRC_URI is ${SRC_URI}"
-       echo "unpack ${MY_PN}IC-${PV_STRING}.tar.gz"
        if use !jbr11 ; then
                default_src_unpack
        else
@@ -80,19 +77,25 @@ src_prepare() {
        else
                JRE_DIR=jre
        fi
+
        if use jbr8; then
                mv "${WORKDIR}/jre" ./"${JRE_DIR}"
+               PLUGIN_DIR="${S}/${JRE_DIR}/lib/${ARCH}"
+       else
+               PLUGIN_DIR="${S}/${JRE_DIR}/lib/"
        fi
 
-       rm -vf "${S}"/"${JRE_DIR}"/lib/*/libavplugin* || die
-       rm -vf "${S}"/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi* || die
-       rm -vrf "${S}"/lib/pty4j-native/linux/ppc64le || die
-       rm -vf "${S}"/bin/libdbm64* || die
+       rm -vf ${PLUGIN_DIR}/libavplugin*
+       rm -vf ${S}/plugins/maven/lib/maven3/lib/jansi-native/*/libjansi*
+       rm -vrf ${S}/lib/pty4j-native/linux/ppc64le
+       rm -vf ${S}/bin/libdbm64*
 
        if [[ -d "${S}"/"${JRE_DIR}" ]]; then
-               for file in "${S}"/"${JRE_DIR}"/lib/amd64/{libfxplugins.so,libjfxmedia.so}
+               for file in "${PLUGIN_DIR}"/{libfxplugins.so,libjfxmedia.so}
                do
-                       patchelf --set-rpath '$ORIGIN' $file || die
+                       if [[ -f "$file" ]]; then
+                         patchelf --set-rpath '$ORIGIN' $file || die
+                       fi
                done
        fi