From 0ed4dc7b374fbd73188bd45174ef10b183ffc9e4 Mon Sep 17 00:00:00 2001 From: Marco Scardovi Date: Wed, 14 Apr 2021 17:16:33 +0200 Subject: [PATCH 1/2] app-editors/atom-bin: initial support for atom-beautify Added beautify USE flag in order to enable atom-beautify, which is a code beautifier for lots of languages Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Marco Scardovi --- ...1.56.0.ebuild => atom-bin-1.56.0-r1.ebuild} | 18 +++++++++++++++--- app-editors/atom-bin/metadata.xml | 3 +++ 2 files changed, 18 insertions(+), 3 deletions(-) rename app-editors/atom-bin/{atom-bin-1.56.0.ebuild => atom-bin-1.56.0-r1.ebuild} (78%) diff --git a/app-editors/atom-bin/atom-bin-1.56.0.ebuild b/app-editors/atom-bin/atom-bin-1.56.0-r1.ebuild similarity index 78% rename from app-editors/atom-bin/atom-bin-1.56.0.ebuild rename to app-editors/atom-bin/atom-bin-1.56.0-r1.ebuild index c8b51001de..7569cec586 100644 --- a/app-editors/atom-bin/atom-bin-1.56.0.ebuild +++ b/app-editors/atom-bin/atom-bin-1.56.0-r1.ebuild @@ -12,7 +12,11 @@ SRC_URI="https://github.com/atom/atom/releases/download/v${PV}/atom-amd64.tar.gz LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="alsa cups ssl test X" + +# beautify contains packages used by atom-beautify. +# If you want other plugins to be working please file +# a bug on bugs.gentoo.org under GURU section. +IUSE="alsa beautify cups ssl test X" RESTRICT="!test? ( test )" S="${WORKDIR}/atom-${PV}-amd64" @@ -25,6 +29,12 @@ RDEPEND=" dev-libs/nss dev-vcs/git alsa? ( media-libs/alsa-lib ) + beautify? ( + dev-python/autopep8 + dev-python/black + dev-util/beautysh + dev-util/uncrustify + ) cups? ( net-print/cups ) ssl? ( dev-libs/openssl @@ -52,10 +62,11 @@ RDEPEND=" ) " -QA_PREBUILT="/opt/atom-bin/*" -QA_PRESTRIPPED="/opt/atom-bin/resources/*" # Files are already stripped +QA_PREBUILT="/opt/${PN}/*" +QA_PRESTRIPPED="/opt/${PN}/resources/*" # Files are already stripped DOCS=( resources/LICENSE.md ) + src_prepare(){ default } @@ -67,6 +78,7 @@ src_install(){ fperms +x /opt/"${PN}"/atom # 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 diff --git a/app-editors/atom-bin/metadata.xml b/app-editors/atom-bin/metadata.xml index a0b29038e0..6d00888860 100644 --- a/app-editors/atom-bin/metadata.xml +++ b/app-editors/atom-bin/metadata.xml @@ -8,4 +8,7 @@ atom/atom + + Install packages for atom-beautify + From b514e50a8f8b2cb299c1c922392ded5e7eef2679 Mon Sep 17 00:00:00 2001 From: Marco Scardovi Date: Wed, 14 Apr 2021 17:18:02 +0200 Subject: [PATCH 2/2] dev-util/beautysh: remove test Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Marco Scardovi --- dev-util/beautysh/beautysh-6.0.1.ebuild | 4 ---- 1 file changed, 4 deletions(-) diff --git a/dev-util/beautysh/beautysh-6.0.1.ebuild b/dev-util/beautysh/beautysh-6.0.1.ebuild index 3223019492..87782cefd6 100644 --- a/dev-util/beautysh/beautysh-6.0.1.ebuild +++ b/dev-util/beautysh/beautysh-6.0.1.ebuild @@ -15,7 +15,3 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solar LICENSE="GPL-2" SLOT="0" -IUSE="test" -RESTRICT="!test? ( test )" - -DEPEND="test? ( ${PYTHON_DEPS} )"