commit:     e6ebfd7ce6514b54c0b48b31261a34b1b9a3f6ab
Author:     Marco Scardovi <marco <AT> scardovi <DOT> com>
AuthorDate: Tue Apr  6 16:55:09 2021 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
CommitDate: Tue Apr  6 20:09:55 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=e6ebfd7c

app-editors/atom: various fixes

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

 app-editors/atom/atom-1.55.0-r1.ebuild | 72 ++++++++++++++++++++++++++++++++++
 app-editors/atom/atom-1.55.0.ebuild    | 37 -----------------
 2 files changed, 72 insertions(+), 37 deletions(-)

diff --git a/app-editors/atom/atom-1.55.0-r1.ebuild 
b/app-editors/atom/atom-1.55.0-r1.ebuild
new file mode 100644
index 000000000..9a12627b1
--- /dev/null
+++ b/app-editors/atom/atom-1.55.0-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit desktop xdg
+
+DESCRIPTION="A hackable text editor for the 21st Century"
+HOMEPAGE="https://atom.io/";
+SRC_URI="https://github.com/atom/atom/releases/download/v1.55.0/${PN}-amd64.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa cups ssl test X"
+RESTRICT="!test? ( test )"
+
+S="${WORKDIR}/${P}-amd64"
+
+RDEPEND="
+       app-accessibility/at-spi2-atk
+       app-accessibility/at-spi2-core
+       app-crypt/libsecret
+       dev-libs/atk
+       dev-libs/nss
+       alsa? ( media-libs/alsa-lib )
+       cups? ( net-print/cups )
+       ssl? ( dev-libs/openssl )
+       X? (
+               x11-libs/cairo
+               x11-libs/gdk-pixbuf
+               x11-libs/gtk+
+               x11-libs/libX11
+               x11-libs/libxcb
+               x11-libs/libXcomposite
+               x11-libs/libXcursor
+               x11-libs/libXdamage
+               x11-libs/libXext
+               x11-libs/libXfixes
+               x11-libs/libXi
+               x11-libs/libxkbfile
+               x11-libs/libXrandr
+               x11-libs/libXrender
+               x11-libs/libXScrnSaver
+               x11-libs/libXtst
+               x11-libs/pango
+       )
+"
+
+QA_PREBUILT="/opt/atom/*"
+
+src_prepare(){
+       default
+
+       # Remove useless license files.
+       rm LICENSE LICENSES.chromium.html version
+}
+
+src_install(){
+       insinto /opt/"${PN}"
+       doins -r "${S}"/*
+       dosym ../../opt/"${PN}"/atom "${EPREFIX}"/usr/bin/atom
+       fperms +x /opt/"${PN}"/atom
+       dosym ../../opt/"${PN}"/resources/app/apm/bin/apm 
"${EPREFIX}"/usr/bin/apm
+       fperms +x /opt/"${PN}"/resources/app/apm/bin/apm
+       dosym ../../opt/"${PN}"/resources/app/apm/bin/node 
"${EPREFIX}"/usr/bin/node
+       fperms +x /opt/"${PN}"/resources/app/apm/bin/node
+       dosym ../../opt/"${PN}"/resources/app/apm/bin/npm 
"${EPREFIX}"/usr/bin/npm
+       fperms +x /opt/"${PN}"/resources/app/apm/bin/npm
+       make_desktop_entry /opt/atom/atom Atom atom Utility
+       doicon atom.png
+}

diff --git a/app-editors/atom/atom-1.55.0.ebuild 
b/app-editors/atom/atom-1.55.0.ebuild
deleted file mode 100644
index 50e2c9233..000000000
--- a/app-editors/atom/atom-1.55.0.ebuild
+++ /dev/null
@@ -1,37 +0,0 @@
-# Copyright 1999-2021 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-DESCRIPTION="A hackable text editor for the 21st Century"
-
-HOMEPAGE="https://atom.io/";
-SRC_URI="https://github.com/atom/atom/releases/download/v1.55.0/${PN}-amd64.tar.gz
 -> ${P}.tar.gz"
-
-LICENSE="MIT"
-SLOT="0"
-KEYWORDS="~amd64"
-
-inherit desktop xdg
-
-S="${WORKDIR}/${P}-amd64"
-
-DEPEND="net-print/cups" # Requested by electron
-
-QA_PREBUILT="/opt/atom/*"
-
-src_prepare(){
-       default
-
-       # Remove useless license files.
-       rm LICENSE LICENSES.chromium.html version
-}
-
-src_install(){
-       insinto /opt/"${PN}"
-       doins -r "${S}"/*
-       dosym ../../opt/"${PN}"/atom "${EPREFIX}"/usr/bin/atom
-       fperms +x /opt/"${PN}"/atom
-       make_desktop_entry /opt/atom/atom Atom atom Utility
-       doicon atom.png
-}

Reply via email to