From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A949B1382C5 for ; Thu, 19 Apr 2018 15:41:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 903FEE09E7; Thu, 19 Apr 2018 15:41:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 6A93AE09E9 for ; Thu, 19 Apr 2018 15:41:34 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 8F2CB335C79 for ; Thu, 19 Apr 2018 15:41:33 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C2E6F25D for ; Thu, 19 Apr 2018 15:41:30 +0000 (UTC) From: "Mikhail Pukhlikov" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mikhail Pukhlikov" Message-ID: <1523497493.5e0e3ca5b24062e19e92070af0376f9229d1852e.cynede@gentoo> Subject: [gentoo-commits] proj/dotnet:master commit in: app-editors/visual-studio-code/ X-VCS-Repository: proj/dotnet X-VCS-Files: app-editors/visual-studio-code/visual-studio-code-1.22.1.ebuild X-VCS-Directories: app-editors/visual-studio-code/ X-VCS-Committer: cynede X-VCS-Committer-Name: Mikhail Pukhlikov X-VCS-Revision: 5e0e3ca5b24062e19e92070af0376f9229d1852e X-VCS-Branch: master Date: Thu, 19 Apr 2018 15:41:30 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 3563fa14-7641-4cf1-8d02-b2afa005d35a X-Archives-Hash: fb302340721ca9035aa28a6a7a364bfe commit: 5e0e3ca5b24062e19e92070af0376f9229d1852e Author: Asgeir Bjarni Ingvarsson fundinn org> AuthorDate: Thu Apr 12 01:44:53 2018 +0000 Commit: Mikhail Pukhlikov gentoo org> CommitDate: Thu Apr 12 01:44:53 2018 +0000 URL: https://gitweb.gentoo.org/proj/dotnet.git/commit/?id=5e0e3ca5 app-editors/visual-studio-code: Add version 1.22.1 Package-Manager: Portage-2.3.24, Repoman-2.3.6 .../visual-studio-code-1.22.1.ebuild | 57 ++++++++++++++++++++++ 1 file changed, 57 insertions(+) diff --git a/app-editors/visual-studio-code/visual-studio-code-1.22.1.ebuild b/app-editors/visual-studio-code/visual-studio-code-1.22.1.ebuild new file mode 100644 index 0000000..2a4b385 --- /dev/null +++ b/app-editors/visual-studio-code/visual-studio-code-1.22.1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils + +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" +HOMEPAGE="https://code.visualstudio.com" +BASE_URI="https://vscode-update.azurewebsites.net/${PV}" +SRC_URI="amd64? ( ${BASE_URI}/linux-x64/stable -> ${P}-amd64.tar.gz ) + x86? ( ${BASE_URI}/linux-ia32/stable -> ${P}-x86.tar.gz )" +RESTRICT="mirror strip bindist" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~x86 ~amd64" +IUSE="" + +DEPEND=">=gnome-base/gconf-3.2.6-r4:2 +>=media-libs/libpng-1.2.46:0 +>=x11-libs/cairo-1.14.12:0 +>=x11-libs/gtk+-2.24.31-r1:2 +>=x11-libs/libXtst-1.2.3:0" + +RDEPEND="${DEPEND} +>=app-crypt/libsecret-0.18.5:0[crypt] +>=net-print/cups-2.1.4:0 +>=x11-libs/libnotify-0.7.7:0 +>=x11-libs/libXScrnSaver-1.2.2-r1:0" + +QA_PRESTRIPPED="opt/${PN}/code" +QA_PREBUILT="opt/${PN}/code" + +pkg_setup() { + if use amd64; then + S="${WORKDIR}/VSCode-linux-x64" + elif use x86; then + S="${WORKDIR}/VSCode-linux-ia32" + else + # shouldn't be possible with -* special keyword + die + fi +} + +src_install() { + insinto "/opt/${PN}" + doins -r * + dosym "${EPREFIX}/opt/${PN}/bin/code" "/usr/bin/${PN}" + make_desktop_entry "${PN}" "Visual Studio Code" "${PN}" "Development;IDE" + doicon "${S}/resources/app/resources/linux/code.png" + fperms +x "/opt/${PN}/code" + fperms +x "/opt/${PN}/bin/code" + fperms +x "/opt/${PN}/libnode.so" + insinto "/usr/share/licenses/${PN}" + newins "resources/app/LICENSE.txt" "LICENSE" +}