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@scardovi.com>
This commit is contained in:
scardracs
2021-03-23 15:01:24 +01:00
parent 11778b48b5
commit ba2cb4bb35
3 changed files with 47 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST atom-1.55.0.tar.gz 193419030 BLAKE2B 7c6dcb95947d10e024daa8bf160744ddb5c9885083dbfe3e9506810002a33d14599da3f27b776e185efc315cca312bc83b73c5c835361e8d1b545d050bbbaf6a SHA512 be8e80fa6f71735c05203cb95711614dd77fadf030a13c453a3921060f359c6ce2b1971c3be9c93db8accbc5151685f91b7dc77a074dbfc77f7d576a1158b211

View File

@@ -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
}

View File

@@ -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>marco@scardovi.com</email>
<name>Marco Scardovi</name>
</maintainer>
<upstream>
<remote-id type="github">atom/atom</remote-id>
</upstream>
</pkgmetadata>