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

app-editors/atom-bin: rename atom in atom-bin

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

 app-editors/atom-bin/Manifest                  |  1 +
 app-editors/atom-bin/atom-bin-1.55.0-r1.ebuild | 72 ++++++++++++++++++++++++++
 app-editors/atom-bin/metadata.xml              | 11 ++++
 3 files changed, 84 insertions(+)

diff --git a/app-editors/atom-bin/Manifest b/app-editors/atom-bin/Manifest
new file mode 100644
index 000000000..bf5b2e9bb
--- /dev/null
+++ b/app-editors/atom-bin/Manifest
@@ -0,0 +1 @@
+DIST atom-bin-1.55.0.tar.gz 193419030 BLAKE2B 
7c6dcb95947d10e024daa8bf160744ddb5c9885083dbfe3e9506810002a33d14599da3f27b776e185efc315cca312bc83b73c5c835361e8d1b545d050bbbaf6a
 SHA512 
be8e80fa6f71735c05203cb95711614dd77fadf030a13c453a3921060f359c6ce2b1971c3be9c93db8accbc5151685f91b7dc77a074dbfc77f7d576a1158b211

diff --git a/app-editors/atom-bin/atom-bin-1.55.0-r1.ebuild 
b/app-editors/atom-bin/atom-bin-1.55.0-r1.ebuild
new file mode 100644
index 000000000..b0478f02f
--- /dev/null
+++ b/app-editors/atom-bin/atom-bin-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/v${PV}/atom-amd64.tar.gz
 -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="alsa cups ssl test X"
+RESTRICT="!test? ( test )"
+
+S="${WORKDIR}/atom-${PV}-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-bin/metadata.xml 
b/app-editors/atom-bin/metadata.xml
new file mode 100644
index 000000000..a0b29038e
--- /dev/null
+++ b/app-editors/atom-bin/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <maintainer type="person">
+               <email>[email protected]</email>
+               <name>Marco Scardovi</name>
+       </maintainer>
+       <upstream>
+               <remote-id type="github">atom/atom</remote-id>
+       </upstream>
+</pkgmetadata>

Reply via email to