36 lines
935 B
Bash
36 lines
935 B
Bash
# Copyright 1999-2017 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Id$
|
|
|
|
EAPI=6
|
|
|
|
inherit eutils
|
|
|
|
DESCRIPTION="Sublime Text is a sophisticated text editor for code, html and prose"
|
|
HOMEPAGE="http://www.sublimetext.com"
|
|
SRC_URI="amd64? ( https://download.sublimetext.com/sublime_text_3_build_${PV}_x64.tar.bz2 -> ${P}-amd64.tar.bz2 )
|
|
x86? ( https://download.sublimetext.com/sublime_text_3_build_${PV}_x32.tar.bz2 -> ${P}-x86.tar.bz2 )"
|
|
|
|
LICENSE="Sublime"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE=""
|
|
RESTRICT="mirror"
|
|
|
|
QA_PRESTRIPPED="/opt/${PN}/sublime_text"
|
|
DEPEND=""
|
|
RDEPEND="media-libs/libpng
|
|
>=x11-libs/gtk+-2.24.8-r1:2"
|
|
|
|
S="${WORKDIR}/sublime_text_3"
|
|
|
|
src_install() {
|
|
local dir="/opt/${PN}"
|
|
insinto "${dir}"
|
|
doins -r *
|
|
fperms 755 "${dir}/sublime_text"
|
|
dosym "/opt/${PN}/sublime_text" /usr/bin/sublime
|
|
make_desktop_entry "sublime" "Sublime Text 3 Beta" "sublime-text" "Development"
|
|
}
|
|
|
|
|