From b218b0c2a6ec34770eceb9e19c897af2dde279bf Mon Sep 17 00:00:00 2001 From: David Seifert Date: Sat, 8 Jul 2017 12:49:30 -0700 Subject: app-editors/sublime-text: Make taskbar icons work Package-Manager: Portage-2.3.6, Repoman-2.3.2 --- .../sublime-text/sublime-text-2.0.2-r1.ebuild | 52 ------------------ .../sublime-text/sublime-text-2.0.2-r2.ebuild | 62 +++++++++++++++++++++ .../sublime-text/sublime-text-3_pre3126-r1.ebuild | 53 ------------------ .../sublime-text/sublime-text-3_pre3126-r2.ebuild | 63 ++++++++++++++++++++++ 4 files changed, 125 insertions(+), 105 deletions(-) delete mode 100644 app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild create mode 100644 app-editors/sublime-text/sublime-text-2.0.2-r2.ebuild delete mode 100644 app-editors/sublime-text/sublime-text-3_pre3126-r1.ebuild create mode 100644 app-editors/sublime-text/sublime-text-3_pre3126-r2.ebuild diff --git a/app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild b/app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild deleted file mode 100644 index 856015667d3a..000000000000 --- a/app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild +++ /dev/null @@ -1,52 +0,0 @@ -# Copyright 1999-2017 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} - -DESCRIPTION="Sophisticated text editor for code, markup and prose" -HOMEPAGE="http://www.sublimetext.com" -SRC_URI=" - amd64? ( https://download.sublimetext.com/Sublime%20Text%20${PV}%20x64.tar.bz2 -> ${P}_x64.tar.bz2 ) - x86? ( https://download.sublimetext.com/Sublime%20Text%20${PV}.tar.bz2 -> ${P}_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 "Pristine Packages" lib - doins sublime_plugin.py PackageSetup.py - - exeinto /opt/${PN}${MV} - doexe sublime_text - dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/subl - - local size - for size in 16 32 48 128 256; do - newicon -s ${size} Icon/${size}x${size}/sublime_text.png sublime-text.png - done - - make_desktop_entry "subl" "Sublime Text ${MV}" \ - /usr/share/icons/hicolor/48x48/apps/sublime-text.png \ - "TextEditor;IDE;Development" "StartupNotify=true" -} diff --git a/app-editors/sublime-text/sublime-text-2.0.2-r2.ebuild b/app-editors/sublime-text/sublime-text-2.0.2-r2.ebuild new file mode 100644 index 000000000000..b482c88d899a --- /dev/null +++ b/app-editors/sublime-text/sublime-text-2.0.2-r2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2017 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} + +DESCRIPTION="Sophisticated text editor for code, markup and prose" +HOMEPAGE="http://www.sublimetext.com" +SRC_URI=" + amd64? ( https://download.sublimetext.com/Sublime%20Text%20${PV}%20x64.tar.bz2 -> ${P}_x64.tar.bz2 ) + x86? ( https://download.sublimetext.com/Sublime%20Text%20${PV}.tar.bz2 -> ${P}_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 "Pristine Packages" lib + doins sublime_plugin.py PackageSetup.py + + exeinto /opt/${PN}${MV} + doexe sublime_text + dosym ../../opt/${PN}${MV}/sublime_text /usr/bin/subl + + local size + for size in 16 32 48 128 256; do + newicon -s ${size} Icon/${size}x${size}/sublime_text.png 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 +} diff --git a/app-editors/sublime-text/sublime-text-3_pre3126-r1.ebuild b/app-editors/sublime-text/sublime-text-3_pre3126-r1.ebuild deleted file mode 100644 index dd797888dc41..000000000000 --- a/app-editors/sublime-text/sublime-text-3_pre3126-r1.ebuild +++ /dev/null @@ -1,53 +0,0 @@ -# Copyright 1999-2017 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#*_pre} - -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 - 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 - newicon -s ${size} Icon/${size}x${size}/sublime-text.png sublime-text.png - done - - make_desktop_entry "subl" "Sublime Text ${MV}" \ - /usr/share/icons/hicolor/48x48/apps/sublime-text.png \ - "TextEditor;IDE;Development" "StartupNotify=true" -} diff --git a/app-editors/sublime-text/sublime-text-3_pre3126-r2.ebuild b/app-editors/sublime-text/sublime-text-3_pre3126-r2.ebuild new file mode 100644 index 000000000000..d81372b98397 --- /dev/null +++ b/app-editors/sublime-text/sublime-text-3_pre3126-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 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#*_pre} + +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 + 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 + newicon -s ${size} Icon/${size}x${size}/sublime-text.png 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 +} -- cgit v1.2.3