commit:     ba2cb4bb35a3edcf3099c1524e1f7ed353a01ab3
Author:     scardracs <marco <AT> scardovi <DOT> com>
AuthorDate: Tue Mar 23 14:01:24 2021 +0000
Commit:     Marco Scardovi <marco <AT> scardovi <DOT> com>
CommitDate: Tue Mar 23 14:01:59 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ba2cb4bb

app-editors/atom: new package

Atom is an hackable text editor relased by GitHub.
It is based on electron and contains lots of features like
git and github integrations and lots of useful installable add-ons.

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

 app-editors/atom/Manifest           |  1 +
 app-editors/atom/atom-1.55.0.ebuild | 35 +++++++++++++++++++++++++++++++++++
 app-editors/atom/metadata.xml       | 11 +++++++++++
 3 files changed, 47 insertions(+)

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

diff --git a/app-editors/atom/atom-1.55.0.ebuild 
b/app-editors/atom/atom-1.55.0.ebuild
new file mode 100644
index 000000000..178c282b3
--- /dev/null
+++ b/app-editors/atom/atom-1.55.0.ebuild
@@ -0,0 +1,35 @@
+# 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-utils
+
+S="${WORKDIR}/${P}-amd64"
+
+DEPEND="net-print/cups" # Requested by electron
+
+src_prepare(){
+       default
+
+       # Remove useless license files.
+       rm LICENSE.electron.txt LICENSES.electron.html
+}
+
+src_install(){
+       insinto /opt/"${PN}"
+       doins -r "${S}"/*
+       dosym "${EPREFIX}"/opt/"${PN}"/atom "${EPREFIX}"/usr/bin/atom
+       fperms +x /opt/"${PN}"/atom
+       make_desktop_entry /opt/atom/atom atom
+       doicon atom.png
+}

diff --git a/app-editors/atom/metadata.xml b/app-editors/atom/metadata.xml
new file mode 100644
index 000000000..a0b29038e
--- /dev/null
+++ b/app-editors/atom/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