diff options
Diffstat (limited to 'app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild')
-rw-r--r-- | app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild | 46 |
1 files changed, 46 insertions, 0 deletions
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 new file mode 100644 index 0000000..2b61d37 --- /dev/null +++ b/app-editors/sublime-text/sublime-text-2.0.2-r1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +# needed by make_desktop_entry +inherit eutils + +MY_SLOT=${PV: 1} +MY_PN="Sublime%20Text" +MY_P="${MY_PN}%20${PV}" +S="${WORKDIR}/Sublime Text 2" + +DESCRIPTION="Sublime Text is a sophisticated text editor for code, html and prose" +HOMEPAGE="http://www.sublimetext.com" +COMMON_URI="http://c758482.r82.cf2.rackcdn.com" +SRC_URI="amd64? ( ${COMMON_URI}/${MY_P}%20x64.tar.bz2 ) + x86? ( ${COMMON_URI}/${MY_P}.tar.bz2 )" +LICENSE="Sublime" +SLOT="2" +KEYWORDS="~amd64 ~x86" +IUSE="" +RESTRICT="mirror" + +RDEPEND="media-libs/libpng + >=x11-libs/gtk+-2.24.8-r1:2" + +src_install() { + insinto /opt/${PN}-${MY_SLOT} + into /opt/${PN}-${MY_SLOT} + exeinto /opt/${PN}-${MY_SLOT} + doins -r "lib" + doins -r "Pristine Packages" + doins "sublime_plugin.py" + doins "PackageSetup.py" + doexe "sublime_text" + dosym "/opt/${PN}-${MY_SLOT}/sublime_text" /usr/bin/subl${MY_SLOT} + # 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${MY_SLOT} %U" "Sublime Text Editor ${MY_SLOT}" "accessories-text-editor" "Application;TextEditor;Development" "MimeType=text/plain;" +} |