app-editors/sublime-text: add ebuild

Package-Manager: Portage-2.3.24, Repoman-2.3.6
This commit is contained in:
Anton Schubert 2018-05-14 22:22:14 +02:00
parent 664bcb922e
commit cbb342e577
3 changed files with 75 additions and 0 deletions

View file

@ -0,0 +1,4 @@
DIST sublime_text_3_build_3176_x32.tar.bz2 10352060 BLAKE2B 97d6e7bcc838ecac53ffa68cc3d355b01d06ea1903fd92b9894f27cf402d0506728be69f27d91dccbcba1bab876f94fd619bcf4877a9d935fb5517e91d2be4ac SHA512 640920a92995aac4af711cb4eb58d142d1afe2cbcbc485a111bc407ce464e81b984cd2110074072cc3805ed8656a4a60acce6f1a014f8a3f27f1b340222b0071
DIST sublime_text_3_build_3176_x64.tar.bz2 10314226 BLAKE2B 98b0cda71b8a859614a1a6510afa073ca1aae6b9ac5d4b6db259723e8aa057a8b2bf22a0d26f0b6ccce31f39e047293ed84c4a63b8739a6d08c05af5791967bd SHA512 c37bd0d6d7fbbe2757f4244ae2803086d5fe1e25b32a1dd2de4241dc55f66f7c4588f3f9d56059c9d0ef7fe2ae69e76005f16dad60060f38fe10b92fd8eda969
EBUILD sublime-text-3_p3176.ebuild 1653 BLAKE2B 163c25b87e4207dc087cb911fde79001ecce08e274543546e82a32516701f42e615c4d958447a078b1d711f4fce2f0774ac1a53e6d8789cc47de21611c2cb98f SHA512 f7932e941a48edfceabd790b3316939af5f5381134a3063072753a1f6a6ec080f5e70d79b56d78583cf3992efa105f4a275000c2593ae26090da23cac36704a5
MISC metadata.xml 220 BLAKE2B ad7b5f38e0a564c96f88b6160bc2ababfb685f99c5095859c7bcf64132393ae187d529e4544f2b37268e70f5472486dd981b65e8f42ab47815d40ac07e5aee9f SHA512 8622145db621046f638adf2d9350e22fbb9d7f992791ef92a796eb20dd0622cf16ff4419a274302f7d3076736ed4098101d5437058e37df5b83b744db5f61e2f

View file

@ -0,0 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>ischluff@mailbox.org</email>
</maintainer>
</pkgmetadata>

View file

@ -0,0 +1,64 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils gnome2-utils
# get the major version from PV
MV=${PV:0:1}
MY_PV=${PV#*_p}
DESCRIPTION="Sophisticated text editor for code, markup and prose"
HOMEPAGE="http://www.sublimetext.com"
SRC_URI="
amd64? ( https://download.sublimetext.com/sublime_text_${MV}_build_${MY_PV}_x64.tar.bz2 )
x86? ( https://download.sublimetext.com/sublime_text_${MV}_build_${MY_PV}_x32.tar.bz2 )"
LICENSE="Sublime"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dbus"
RESTRICT="bindist mirror strip"
RDEPEND="
dev-libs/glib:2
x11-libs/gtk+:2
x11-libs/libX11
dbus? ( sys-apps/dbus )"
QA_PREBUILT="*"
S="${WORKDIR}/sublime_text_${MV}"
# Sublime bundles the kitchen sink, which includes python and other assorted
# modules. Do not try to unbundle these because you are guaranteed to fail.
src_install() {
insinto /opt/${PN}${MV}
doins -r Packages Icon
doins changelog.txt sublime_plugin.py sublime.py python3.3.zip
exeinto /opt/${PN}${MV}
doexe crash_reporter plugin_host sublime_text
dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/subl
local size
for size in 32 48 128 256; do
dosym ../../../../../../opt/${PN}${MV}/Icon/${size}x${size}/sublime-text.png \
/usr/share/icons/hicolor/${size}x${size}/apps/subl.png
done
make_desktop_entry "subl" "Sublime Text ${MV}" "subl" \
"TextEditor;IDE;Development" "StartupNotify=true"
# needed to get WM_CLASS lookup right
mv "${ED%/}"/usr/share/applications/subl{-sublime-text,}.desktop || die
}
pkg_postrm() {
gnome2_icon_cache_update
}
pkg_postinst() {
gnome2_icon_cache_update
}