2019-04-27 18:44:26 +02:00
|
|
|
# Copyright 2019 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
|
|
|
DESCRIPTION="Visual Studio Code https://code.visualstudio.com"
|
|
|
|
HOMEPAGE="https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run"
|
|
|
|
SRC_URI="https://github.com/Microsoft/${PN}/archive/${PV}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64 ~x86"
|
|
|
|
IUSE=""
|
|
|
|
|
2019-04-27 19:41:56 +02:00
|
|
|
DEPEND="=net-libs/nodejs-10.15.3[npm]
|
2019-04-27 19:05:31 +02:00
|
|
|
=dev-lang/python-2.7.16"
|
2019-04-27 18:44:26 +02:00
|
|
|
RDEPEND="${DEPEND}"
|
2019-04-27 18:56:17 +02:00
|
|
|
BDEPEND=">=sys-apps/yarn-1.15.2"
|
2019-04-27 18:44:26 +02:00
|
|
|
|
2019-04-27 22:15:04 +02:00
|
|
|
PATCHES=(
|
2019-04-28 00:49:38 +02:00
|
|
|
"${FILESDIR}/${PN}-desktop.patch"
|
|
|
|
"${FILESDIR}/${PN}-extensions.patch"
|
2019-04-27 22:15:04 +02:00
|
|
|
)
|
|
|
|
|
2019-04-27 18:44:26 +02:00
|
|
|
src_compile() {
|
2019-04-27 23:13:28 +02:00
|
|
|
yarn install
|
2019-04-27 18:44:26 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
2019-04-28 00:49:38 +02:00
|
|
|
insinto /usr/share/vscode
|
2019-04-27 18:44:26 +02:00
|
|
|
doins -r .
|
|
|
|
insinto /usr/share/applications
|
2019-04-28 00:49:38 +02:00
|
|
|
doins resources/linux/vscode.desktop
|
|
|
|
exeinto /usr/bin
|
|
|
|
doexe "${FILESDIR}/${PN}"
|
2019-04-27 18:44:26 +02:00
|
|
|
}
|