summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-editors/sublime-text/sublime-text-2.0.1.ebuild')
-rw-r--r--app-editors/sublime-text/sublime-text-2.0.1.ebuild24
1 files changed, 15 insertions, 9 deletions
diff --git a/app-editors/sublime-text/sublime-text-2.0.1.ebuild b/app-editors/sublime-text/sublime-text-2.0.1.ebuild
index 05fa03e..f55087c 100644
--- a/app-editors/sublime-text/sublime-text-2.0.1.ebuild
+++ b/app-editors/sublime-text/sublime-text-2.0.1.ebuild
@@ -2,8 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
# $Header: $
-EAPI="3"
+EAPI="4"
+# needed by make_desktop_entry
inherit eutils
MY_PN="Sublime%20Text"
@@ -18,21 +19,26 @@ LICENSE="Sublime"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
+RESTRICT="mirror"
-RDEPEND="media-libs/libpng:0
- media-libs/libpng:1.2
+RDEPEND="media-libs/libpng
>=x11-libs/gtk+-2.24.8-r1:2"
-DEPEND="${RDEPEND}"
src_install() {
insinto /opt/${PN}
into /opt/${PN}
exeinto /opt/${PN}
- doins -r "Sublime Text 2/lib"
- doins -r "Sublime Text 2/Pristine Packages"
- doins "Sublime Text 2/sublime_plugin.py"
- doins "Sublime Text 2/PackageSetup.py"
- doexe "Sublime Text 2/sublime_text"
+ doins -r "lib"
+ doins -r "Pristine Packages"
+ doins "sublime_plugin.py"
+ doins "PackageSetup.py"
+ doexe "sublime_text"
dosym "/opt/${PN}/sublime_text" /usr/bin/subl
+ # Icon and .desktop for sublime-text
+ for icon in $(find Icon -name '*.png') ; do
+ insinto /usr/share/`dirname $icon | sed 's/Icon/icons\/hicolor/'`/apps
+ doins $icon
+ done
+ dosym ../icons/hicolor/48x48/apps/sublime_text.png usr/share/pixmaps/sublime_text.png
make_desktop_entry "subl %U" "Sublime Text Editor" "accessories-text-editor" "Application;TextEditor" "MimeType=text/plain;"
}