forked from tastytea/overlay
added sublime-text-3170 (3.1)
This commit is contained in:
parent
252f775f51
commit
0fbfcc62c7
|
@ -1,6 +1,6 @@
|
|||
DIST sublime_text_3_build_3154_x32.tar.bz2 10149216 SHA256 fd522d96301e70be01de6edbc689637561245a47cec9c3ed596dec7cd8df7828 SHA512 f47e50fbc97134cab8bdaed8a7354abd9bebc6f54c080892721b096bad88a5d6958533fd9e6d3ed456f2dd9dafdb7fb7e2659098b95a95acaf25f477bbf64055 WHIRLPOOL bc27c829421e046f868e512e24c1c43f47b35a5cb67212e3fdcae25a9011c96ee7766db3c733d6c5136f8f14c3b2e5c0469a508cce5dfc6159e97f198a9d0bb0
|
||||
DIST sublime_text_3_build_3154_x64.tar.bz2 10116769 SHA256 ab193bc1de801e8caf73a8c652c871aee2aa3d11b8e3c968a50da41589beb285 SHA512 cd0cb66862ebca11668cc745a91637d28b132df85bd213baad477b9e4899a3587ee4a00ebd452b5166a3af9ef6db4f1ce76d28fd9406a4c4372ca218044039be WHIRLPOOL b7ff52983781f8d7cafe65f0e9bb43a9fd8fd1204ceca53e33df6b4148feff1c5aa447f188fb7c023748cb6d262983f8053a9e610be71947ab54a1aaf4b301b9
|
||||
DIST sublime_text_3_build_3157_x32.tar.bz2 10168054 SHA256 53f0760404042f6fc080c545600fac2f2ceda8a69256feb0c9ae00dea34b95c6 SHA512 4e91c4436ff519a29dcf3ec85811ced160fdfa43ec989bbec0792ef27b4ff9bc8e7261722d393ae9663a3be55e36f69ee21daf9c1e6e8b956ad25b451fb5a029 WHIRLPOOL a0bc949e4bd57817d49cdb3d505d03ab574512884bf3553e71d1aa0dceac25f4dfdb333cf887b3f7eec69192108e787d62689597ed1d2aa36fdc2662a2a9404b
|
||||
DIST sublime_text_3_build_3157_x64.tar.bz2 10170807 SHA256 7cefdcd350360b88f56929bd6e8fa0b46ea047f7d5d9344ee72ea31f5e110200 SHA512 ddf75b61e74422908b245441f1c08994179514d215c45d66a7a303ed8d2a294ef6bf019c1ff9e45b19ebaa3f7e8bb707b7c4cf043fc9ce3a8146e7d23b90bdfa WHIRLPOOL aeafa3dcafa300e2df64b06287e0086dd49f3a2a8490ea5146eb4696cc77ee8dfc368272cc14db7e5b76c8ffd1a7cdf0e8ad9b29dbe174ee1df0f12ce82a2a37
|
||||
EBUILD sublime-text-3154.ebuild 2082 SHA256 b2b3363285d250a65cbfacee95d80f741f67852f430cb9cde2ad515f033efe4e SHA512 0e0cf0fd50f6aea22a36f12d4ec27d36b6c34c8678434eb3cea95b8b44f3eacac9019278abc24b9aff4b3e10c8251791b13d93fff1b76671f98b9784546c9684 WHIRLPOOL 6317d79765f9bf12e88cf33db1da1007c0ad16f3f5a75783ebd06a6ae9aef278b50b1e3e596a5b620fb4eb4ad537dfb07eab26f5e5190933606bdc681d625410
|
||||
EBUILD sublime-text-3157.ebuild 2082 SHA256 b2b3363285d250a65cbfacee95d80f741f67852f430cb9cde2ad515f033efe4e SHA512 0e0cf0fd50f6aea22a36f12d4ec27d36b6c34c8678434eb3cea95b8b44f3eacac9019278abc24b9aff4b3e10c8251791b13d93fff1b76671f98b9784546c9684 WHIRLPOOL 6317d79765f9bf12e88cf33db1da1007c0ad16f3f5a75783ebd06a6ae9aef278b50b1e3e596a5b620fb4eb4ad537dfb07eab26f5e5190933606bdc681d625410
|
||||
DIST sublime_text_3_build_3154_x32.tar.bz2 10149216 BLAKE2B 8a474167a03b89a35bdf933bb8a4cbf967f376bac6335cf7ff3d56ea2d33623bda5826b52c0721cee492ecb6907781a34cf9b7ca174dcdb7070659c7a64d1d75 SHA512 f47e50fbc97134cab8bdaed8a7354abd9bebc6f54c080892721b096bad88a5d6958533fd9e6d3ed456f2dd9dafdb7fb7e2659098b95a95acaf25f477bbf64055
|
||||
DIST sublime_text_3_build_3154_x64.tar.bz2 10116769 BLAKE2B 5069dee452426d276f918fd3e22a89d43bb2caca80a767b273f9901e5d991e43ee29681d784988121ff74de98875c00d16710a19a9deebd653c2a18ab8970a76 SHA512 cd0cb66862ebca11668cc745a91637d28b132df85bd213baad477b9e4899a3587ee4a00ebd452b5166a3af9ef6db4f1ce76d28fd9406a4c4372ca218044039be
|
||||
DIST sublime_text_3_build_3157_x32.tar.bz2 10168054 BLAKE2B 5ecd00061ea658b1da1e9070a8ae8bea48a6c6fd42dd8aa15e3ce89f69de6cf2968dc1a2baa65c87a57d0e717312ff6be14a0e6edd7d19df43135f7c890aac00 SHA512 4e91c4436ff519a29dcf3ec85811ced160fdfa43ec989bbec0792ef27b4ff9bc8e7261722d393ae9663a3be55e36f69ee21daf9c1e6e8b956ad25b451fb5a029
|
||||
DIST sublime_text_3_build_3157_x64.tar.bz2 10170807 BLAKE2B a63e23dd871fb3fa4702f7ee256a5c1fd1ee5edb3e11ec1a629ca19daa99c6abbe540b4c9af4a5444fe1c83fa2743c64f1d9cda6138400171bea0b429783a594 SHA512 ddf75b61e74422908b245441f1c08994179514d215c45d66a7a303ed8d2a294ef6bf019c1ff9e45b19ebaa3f7e8bb707b7c4cf043fc9ce3a8146e7d23b90bdfa
|
||||
DIST sublime_text_3_build_3170_x32.tar.bz2 10347173 BLAKE2B 29afa04806831f1fc42400e2bb06ba1380c95f3e04193676291bbf04185d1c31c4552879c10a465a6c4eff2636b0658f9103b9c3e173a7c8bfc0a784b64dd571 SHA512 8efa45d0cfe74789ceadec26e9902846126c84eed69e932a07ca6dd04dd42426a3e0fc50ac19c13f6ab9cd6b79307e6ca650140d8ef56ba1475a23b836033913
|
||||
DIST sublime_text_3_build_3170_x64.tar.bz2 10311203 BLAKE2B effbeebb98fba56da0a648db5f8ea4399f555d6599c307a8e62a695cb6b89b1b22d30004e5b79819cadb86dea6fd63fbc365c2f7c0519f3a0f96a8a3bbfa13a0 SHA512 1ab008b0d358590c7cfaf888a90f29a3594e290d70df0d20573961c93a7f4bacf95bbe35ffe71164f086292bbc2e794db41290f12be9c8f8e1acbc025d9f02bf
|
||||
|
|
89
app-editors/sublime-text/sublime-text-3170.ebuild
Normal file
89
app-editors/sublime-text/sublime-text-3170.ebuild
Normal file
|
@ -0,0 +1,89 @@
|
|||
# Copyright 1999-2017 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+-2.24.8-r1:2
|
||||
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
|
||||
}
|
Loading…
Reference in New Issue
Block a user