commit:     7edd4eb40b87c4d4c026067334813ce75e409585
Author:     Marco Scardovi <marco <AT> scardovi <DOT> com>
AuthorDate: Sat Jan  1 09:27:05 2022 +0000
Commit:     Marco Scardovi <marco <AT> scardovi <DOT> com>
CommitDate: Sun Jan 23 13:27:49 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=7edd4eb4

app-editors/atom-bin: time to make the ebuild smaller

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: Marco Scardovi <marco <AT> scardovi.com>

 ...atom-bin-1.58.0.ebuild => atom-bin-1.58.0-r1.ebuild} | 17 ++++++++---------
 1 file changed, 8 insertions(+), 9 deletions(-)

diff --git a/app-editors/atom-bin/atom-bin-1.58.0.ebuild 
b/app-editors/atom-bin/atom-bin-1.58.0-r1.ebuild
similarity index 83%
rename from app-editors/atom-bin/atom-bin-1.58.0.ebuild
rename to app-editors/atom-bin/atom-bin-1.58.0-r1.ebuild
index e25951752..977c92e6b 100644
--- a/app-editors/atom-bin/atom-bin-1.58.0.ebuild
+++ b/app-editors/atom-bin/atom-bin-1.58.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2022 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -11,7 +11,8 @@ 
SRC_URI="https://github.com/atom/atom/releases/download/v${PV}/atom-amd64.tar.gz
 
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="~amd64"
+# Atom works only on amd64
+KEYWORDS="-* ~amd64"
 RESTRICT="test"
 
 S="${WORKDIR}/atom-${PV}-amd64"
@@ -50,10 +51,11 @@ RDEPEND="
 QA_PREBUILT="/opt/${PN}/*"
 QA_PRESTRIPPED="/opt/${PN}/resources/*"  # Files are already stripped
 
-DOCS=( resources/LICENSE.md )
-
 src_prepare(){
        default
+
+       # We do not install licenses
+       rm resources/LICENSE.md || die "Failed to remove LICENSE"
 }
 
 src_install(){
@@ -64,13 +66,10 @@ src_install(){
 
        # I will use only npm provided with package itself
        # as nodejs is not required to make it working (and it is really big).
-       fperms +x /opt/"${PN}"/resources/app/apm/bin/apm
-       fperms +x /opt/"${PN}"/resources/app/apm/bin/node
-       fperms +x /opt/"${PN}"/resources/app/apm/bin/npm
+       fperms +x /opt/"${PN}"/resources/app/apm/bin/{apm,node,npm}
 
        # Bug 798459
-       fperms +x 
/opt/"${PN}"/resources/app.asar.unpacked/node_modules/vscode-ripgrep/bin/rg
-       fperms +x 
/opt/"${PN}"/resources/app.asar.unpacked/node_modules/dugite/git/bin/git
+       fperms +x 
/opt/"${PN}"/resources/app.asar.unpacked/node_modules/{vscode-ripgrep/bin/rg,dugite/git/bin/git}
 
        doicon atom.png
        make_desktop_entry "/opt/atom-bin/atom %U" "Atom" "atom" \

Reply via email to