From 8dad6e6c8c996939b55d543ebf10629ee9ab7f9a Mon Sep 17 00:00:00 2001 From: KronoZed Date: Thu, 31 Mar 2016 07:55:49 +0300 Subject: [PATCH] Create atom-bin-1.6.1.ebuild --- app-editors/atom-bin/atom-bin-1.6.1.ebuild | 82 ++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 app-editors/atom-bin/atom-bin-1.6.1.ebuild diff --git a/app-editors/atom-bin/atom-bin-1.6.1.ebuild b/app-editors/atom-bin/atom-bin-1.6.1.ebuild new file mode 100644 index 0000000..e090c8c --- /dev/null +++ b/app-editors/atom-bin/atom-bin-1.6.1.ebuild @@ -0,0 +1,82 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +PYTHON_COMPAT=( python2_7 ) +inherit flag-o-matic python-any-r1 eutils unpacker + +DESCRIPTION="A hackable text editor for the 21st Century. - Binary package" +HOMEPAGE="https://atom.io" +SRC_URI="https://github.com/atom/atom/releases/download/v${PV}/atom-amd64.deb -> atom-amd64-${PV}.deb" + +RESTRICT="mirror" + +KEYWORDS="~amd64" +SLOT="0" +LICENSE="MIT" + +IUSE="" + +MY_PN="atom" + +DEPEND="${PYTHON_DEPS} + media-fonts/inconsolata + !!dev-util/atom-shell + !app-editors/atom" + +RDEPEND="${DEPEND} + x11-libs/gtk+:2 + x11-libs/libnotify + gnome-base/libgnome-keyring + dev-libs/nss + dev-libs/nspr + gnome-base/gconf + media-libs/alsa-lib + net-print/cups + sys-libs/libcap + x11-libs/libXtst + x11-libs/pango" + +QA_PRESTRIPPED=" + /usr/share/atom/atom + /usr/share/atom/chromedriver/chromedriver + /usr/share/atom/libffmpegsumo.so + /usr/share/atom/libnotify.so.4 + /usr/share/atom/libchromiumcontent.so + /usr/share/atom/libgcrypt.so.11 + /usr/share/atom/resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-linux" + +pkg_setup() { + python-any-r1_pkg_setup +} + +src_unpack() { + unpacker_src_unpack + mkdir -p "${S}" + mv "${WORKDIR}/usr" "${S}" +} + +src_prepare() { + rm -r "${S}/usr/share/applications" +} + +src_install() { + into / + insinto / + doins -r . + + # Fixes permissions + fperms +x /usr/bin/atom + fperms +x /usr/share/atom/${MY_PN} + fperms +x /usr/share/atom/resources/app/atom.sh + fperms +x /usr/share/atom/resources/app/apm/bin/apm + fperms +x /usr/share/atom/resources/app/apm/bin/node + fperms +x /usr/share/atom/resources/app/apm/node_modules/npm/bin/node-gyp-bin/node-gyp + fperms +x /usr/share/atom/resources/app.asar.unpacked/node_modules/symbols-view/vendor/ctags-linux + + make_desktop_entry "/usr/bin/atom %U" "Atom" "atom" \ + "GNOME;GTK;Utility;TextEditor;Development;" \ + "GenericName=Text Editor\nMimeType=text/plain;\nStartupNotify=true\nStartupWMClass=Atom" +}