Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update to Sublime v3211 #40

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions app-editors/sublime-text/Manifest
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ DIST sublime_text_3_build_3200_x32.tar.bz2 13798686 BLAKE2B bed2ec4cfaccaba6a044
DIST sublime_text_3_build_3200_x64.tar.bz2 13657959 BLAKE2B 88d38014977ce92503583e626a59a57ccf0f5ff243cbc1487478d65ab065fccbe28af65f91db7e63a46a90614c1f5161ce24558c6c2ea4d0c6f7cfffd8bd153e SHA512 9a8c739fe0899286f8026bdebcd69ee80ac8a9194cec4695efffda8340438537a03e203f944c94e35478fb2cda3a28971067eabd7152a3247122937e094361d2
DIST sublime_text_3_build_3207_x32.tar.bz2 13801015 BLAKE2B 5d2c76b4f0894ad2c171cf7e3726e3684057fb4f7c6fa5bd35b9bc9d0e32781884340cb5c2d2bae15128b41b888337d88a7d917e1841b939607507da9c888d93 SHA512 28859fedb76c6074cbf7724ba5822bce8e1e89393bf3f61c4b277847a8568bb3e92345628754deb73e96c10fe748b0c43000d6e15e59422b20904e042a3d1e61
DIST sublime_text_3_build_3207_x64.tar.bz2 13672413 BLAKE2B e9e98fe0d6d8f059ec9af2593414cf6c35bce3b70193999922f6ea8fccad5348af549a374f57a2410ed10fd74bf58d6bf895da667af67c454d8ad678b52e52a0 SHA512 48510da4714bddfc129d89d68b277c2a3e9badfd0bd276c746e0dc0e5f14efb091dc7c2b3a1228095ebf70be8f73f4a5004f6f8903fb18d7bcc70366150e6251
DIST sublime_text_3_build_3211_x32.tar.bz2 13806489 BLAKE2B 1e07df2fc9fb9fb60a6fbfe27a3d657ff80ef46ae91967fa384cfc84bfdc2b5952aea8dbfd9ff015f669b148c1a302cbe01521a72b584abccd51efdab51ac0d8 SHA512 4d19947459046407316382d187ea6fa4cff9b7d3e7ae3c46667d691b6ca425a1f1dfc8599a26cf61b970290a58924a3b605e111ff2802ed124683872c1802803
DIST sublime_text_3_build_3211_x64.tar.bz2 13677324 BLAKE2B e2ac54c1e8ab90c0fcefb4baf225b02d13a3405e846f08163773ed52c6278f8e89a7b13c15e6c2d6241139d58be9c2c5a1201abb04a3cd68efdffc723075c5af SHA512 a6a068119eff95c5360e9ccbe1d845e7a93e4ad13b3659073752a7bd0e87f4691555820185514875649e677a4e8702e2338f74f5584fc80f69c16b323685d6f1
EBUILD sublime-text-2.0.1.ebuild 2068 BLAKE2B cf7d66dc7252a4f263040212b68ae58da946b22efd538c24388ff90d18535778bd1594079023f4d101c5d1822b4520d85cfbbf2e24a0b52c4ab1d16154e9166e SHA512 4c7a15683638a87034e2161c55d3b81a625a4048539862d9f023600e33a20b10ba94759c18662e8bfdcb4a2261b67f14bbcf2eef9a1d931511977e55aa325839
EBUILD sublime-text-2.0.2.ebuild 2068 BLAKE2B cf7d66dc7252a4f263040212b68ae58da946b22efd538c24388ff90d18535778bd1594079023f4d101c5d1822b4520d85cfbbf2e24a0b52c4ab1d16154e9166e SHA512 4c7a15683638a87034e2161c55d3b81a625a4048539862d9f023600e33a20b10ba94759c18662e8bfdcb4a2261b67f14bbcf2eef9a1d931511977e55aa325839
EBUILD sublime-text-3033.ebuild 2080 BLAKE2B 930b59895e3b5a035f9bf725f57be443edf272d92a0da80d28cd686ff36a28acccf6f5a7da3d3e81d1d20e1f0e49aa64a67e197c5ab56ad28c9d9d835746099e SHA512 fb0510ad133785cd21719f1e0b5aa92ed350bfe82f481421f405bec0f435110aa67ce97212af369a97cdfe8de825f7bfec6d09aa52e3cee7ce10a00383347972
Expand All @@ -50,4 +52,5 @@ EBUILD sublime-text-3176.ebuild 2082 BLAKE2B bb372ab60319a8af78b303ae15c0c311701
EBUILD sublime-text-3200-r1.ebuild 2071 BLAKE2B 84d9294a813b9e5a6c957ac4b356668e29a1090882ee55a68a32686e4c19a6363a83e48126ffe0fb00022c61912f449ea52604ea14abcea845d464d77670f29d SHA512 0c22df2586cb81a4ea5f689ec16ea2c93e7b36ae34f5de8ffba9bdd7264c811bdcc2f55d6d056be4dacc04f3aaa0ceb1881b4d9ac4c5d72fa088389161708e3d
EBUILD sublime-text-3200.ebuild 2083 BLAKE2B 18c0477add85b25b99b00af7184a0abad4a318e4dcbf8ce521dfc3066af3001c98d93a721adc5d32ed01e21a40a30ac5c4b1a86612116b4ddefbf89cddfa7093 SHA512 bc077c3b9f4cc6d2125e6be51ce7cfc2966565965e95c16726d8deaf2ffc6b7520b106ab3714dcee844dcabb59f1d22a21455a03a5139f0aeff9a76e1b865588
EBUILD sublime-text-3207.ebuild 2071 BLAKE2B 84d9294a813b9e5a6c957ac4b356668e29a1090882ee55a68a32686e4c19a6363a83e48126ffe0fb00022c61912f449ea52604ea14abcea845d464d77670f29d SHA512 0c22df2586cb81a4ea5f689ec16ea2c93e7b36ae34f5de8ffba9bdd7264c811bdcc2f55d6d056be4dacc04f3aaa0ceb1881b4d9ac4c5d72fa088389161708e3d
EBUILD sublime-text-3211.ebuild 2071 BLAKE2B 84d9294a813b9e5a6c957ac4b356668e29a1090882ee55a68a32686e4c19a6363a83e48126ffe0fb00022c61912f449ea52604ea14abcea845d464d77670f29d SHA512 0c22df2586cb81a4ea5f689ec16ea2c93e7b36ae34f5de8ffba9bdd7264c811bdcc2f55d6d056be4dacc04f3aaa0ceb1881b4d9ac4c5d72fa088389161708e3d
MISC metadata.xml 591 BLAKE2B 5276dcf3cc54e34e2e3212f5e07bbbffcc84e07c46bf798ece39c77dfc90ec024b0b7bbfbe177d151c4da0f4197548d228af72e591d4e9eee220f8c8590a8125 SHA512 3c34a2e27c8465d82370669fbe5c0a2ebafe3fa76a193e01de0d9ff5bdba6760ae79a9380c865b2f84577eab3c0fec63ed5c0d624ec6b9db418890501f5dd104
90 changes: 90 additions & 0 deletions app-editors/sublime-text/sublime-text-3211.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI=5
inherit eutils gnome2-utils

# get the major version from PV
MV="${PV:0:1}"

MY_PN="sublime_text_${MV}"
MY_P="Sublime%20Text"
S="${WORKDIR}/${MY_PN}"

DESCRIPTION="Sophisticated text editor for code, markup and prose"
HOMEPAGE="http://www.sublimetext.com"

BASE_URI="https://download.sublimetext.com"
SRC_URI="amd64? ( ${BASE_URI}/${MY_PN}_build_${PV}_x64.tar.bz2 )
x86? ( ${BASE_URI}/${MY_PN}_build_${PV}_x32.tar.bz2 )"
LICENSE="Sublime"
SLOT="${MV}"
KEYWORDS="~amd64 ~x86"
IUSE="multislot dbus"
RESTRICT="bindist mirror strip"

DEPEND=">=media-libs/libpng-1.2.46:*
x11-libs/gtk+:3
multislot? ( app-eselect/eselect-sublime )
dbus? ( sys-apps/dbus )"
RDEPEND="${DEPEND}"

QA_PREBUILT="*"

pkg_nofetch() {
eerror "Sublime Text official site seems to be unresponsive."
}

src_install() {
local targetdir="/opt/${MY_PN}"

insinto "$targetdir"
into "$targetdir"
exeinto "$targetdir"
doins -r "Icon"
doins -r "Packages"
doins "python3.3.zip"
doins "sublime.py"
doins "sublime_plugin.py"
doexe "sublime_text"
doexe "plugin_host"
dosym "$targetdir/sublime_text" /usr/bin/subl${MV}

local size
for size in 16 32 48 128 256 ; do
insinto /usr/share/icons/hicolor/${size}x${size}/apps
newins "Icon/${size}x${size}/sublime-text.png" sublime_text.png
done

make_desktop_entry "subl${MV} %F" "Sublime Text ${MV}" sublime_text "Development;TextEditor" "StartupNotify=true"
}

pkg_preinst() {
gnome2_icon_savelist
}

pkg_postinst() {
gnome2_icon_cache_update
if use multislot; then
eselect_sublime_update
else
local bindir="/usr/bin"
einfo "using major version ${MV} as default"
dosym $bindir/subl${MV} /usr/bin/subl
fi
}

pkg_postrm() {
gnome2_icon_cache_update
}

eselect_sublime_update() {
einfo
elog "Updating Sublime Text to the latest installed version"
elog "you can select the version you want to use just using"
elog
elog "eselect sublime set sublime_text_2"
einfo
eselect sublime set sublime_text_${MV} --use-old
}