public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Maciej Barć" <xgqt@protonmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-editors/vscodium-bin/
Date: Mon, 18 Jan 2021 18:03:34 +0000 (UTC)	[thread overview]
Message-ID: <1610992933.479416efd5e6e2098e0ef0788b45a3dcab60bb8e.xgqt@gentoo> (raw)

commit:     479416efd5e6e2098e0ef0788b45a3dcab60bb8e
Author:     Maciej Barć <xgqt <AT> protonmail <DOT> com>
AuthorDate: Mon Jan 18 17:55:49 2021 +0000
Commit:     Maciej Barć <xgqt <AT> protonmail <DOT> com>
CommitDate: Mon Jan 18 18:02:13 2021 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=479416ef

app-editors/vscodium-bin: add myself to maintainers; unbundle ripgrep

Also fix permissions of installed scripts to /opt/vscodium/resources/app/out/vs/base/node,
remove ARM32 support because ripgrep is not available on the "arm" profile,
add conditional libsecret USE flag,
restrict test,
add description from "https://vscodium.com",
add upstream,

Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Maciej Barć <xgqt <AT> protonmail.com>

 app-editors/vscodium-bin/Manifest                  |  1 -
 app-editors/vscodium-bin/metadata.xml              | 22 ++++++++--
 .../vscodium-bin/vscodium-bin-1.52.1.ebuild        | 50 ++++++++++++----------
 3 files changed, 46 insertions(+), 27 deletions(-)

diff --git a/app-editors/vscodium-bin/Manifest b/app-editors/vscodium-bin/Manifest
index cbf5b35c..5d1f6190 100644
--- a/app-editors/vscodium-bin/Manifest
+++ b/app-editors/vscodium-bin/Manifest
@@ -1,3 +1,2 @@
 DIST VSCodium-linux-arm64-1.52.1.tar.gz 99006948 BLAKE2B 933e5b283e011873b7da60a838e7778d8ff1cf69006e5bf370fdeba7aa6709c2b8ea427936d353c75c0331d1a78defb7c0983d73d59c71163cde6ca32cf1ac32 SHA512 e96c79b1176a07f6cbd1a1d30d4a4d0d66d519d854bc0aa0e24e9baa4b0f6fe959e12b4888330188210957763febc644601f958b635deaa7e900f55f0eb5550f
-DIST VSCodium-linux-armhf-1.52.1.tar.gz 85288104 BLAKE2B 3df56d4708f44e5029a9cfed05185957951ead696885f16e8d3da8587f812f9e088e37e2b355157989a0e272661f367a1bd2d70cfbc7953a1f07f166b7b8292d SHA512 ffd5b2b476896d4aed67ed0bd157ca14819f493534c9e15eba247998becb06042c6c0caa88ee2db7e76529da252dac57c43c86371430b57a5819ce392cdcdcb5
 DIST VSCodium-linux-x64-1.52.1.tar.gz 96026417 BLAKE2B 0d06ddef0de3af3d22de4757bd5b81742cdfb6605192c61374857fdacfd8df374adf180aaa1f31f0397ead97e7f668320125ef1f806c71689348ac4a3c8bab8d SHA512 9a60f6821e7a796eaca842817fd3853c8099d74418ccabeacabed01c4f7b46b49c52bb11a032c317c27e3cef7ef2c49d2cf967ca2d2d79013790994a6aa9159f

diff --git a/app-editors/vscodium-bin/metadata.xml b/app-editors/vscodium-bin/metadata.xml
index 2a0f0b7f..dfc5f239 100644
--- a/app-editors/vscodium-bin/metadata.xml
+++ b/app-editors/vscodium-bin/metadata.xml
@@ -5,9 +5,23 @@
 		<email>rossbridger.cc@gmail.com</email>
 		<name>Ross Charles Campbell</name>
 	</maintainer>
-	<longdescription>
-This is not a fork. This is a repository of scripts to automatically
-build Microsoft's vscode repository into freely-licensed binaries with
-a community-driven default configuration.
+	<maintainer type="person">
+		<email>xgqt@protonmail.com</email>
+		<name>Maciej Barć</name>
+	</maintainer>
+	<use>
+		<flag name="libsecret">Enable libsecret support</flag>
+	</use>
+	<upstream>
+		<remote-id type="github">VSCodium/vscodium</remote-id>
+	</upstream>
+	<longdescription lang="en">
+		Microsoft’s vscode source code is open source (MIT-licensed),
+		but the product available for download (Visual Studio Code)
+		is licensed under this not-FLOSS license
+		and contains telemetry/tracking.
+		The VSCodium project exists so that you don’t have to download+build
+		from source. These binaries are licensed under the MIT license.
+		Telemetry is disabled.
 	</longdescription>
 </pkgmetadata>

diff --git a/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild b/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild
index c18d9b7b..e05dd8ce 100644
--- a/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild
+++ b/app-editors/vscodium-bin/vscodium-bin-1.52.1.ebuild
@@ -9,52 +9,58 @@ MY_PN="${PN/-bin}"
 
 DESCRIPTION="Free/Libre Open Source Software Binaries of VSCode"
 HOMEPAGE="https://vscodium.com"
-
 SRC_URI="
-	amd64? ( https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz )
-	arm? ( https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-armhf-${PV}.tar.gz )
-	arm64? ( https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz )"
-
-RESTRICT="strip bindist"
+	amd64? (
+		https://github.com/VSCodium/${MY_PN}/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz
+	)
+	arm64? (
+		https://github.com/VSCodium/${MY_PN}/releases/download/${PV}/VSCodium-linux-arm64-${PV}.tar.gz
+	)
+"
 
+RESTRICT="bindist strip test"
 LICENSE="MIT"
 SLOT="0"
-KEYWORDS="-* ~amd64 ~arm ~arm64"
+KEYWORDS="-* ~amd64 ~arm64"
+IUSE="libsecret"
 
 RDEPEND="
 	app-accessibility/at-spi2-atk
-	app-crypt/libsecret[crypt]
 	dev-libs/nss
 	media-libs/libpng:0/16
+	sys-apps/ripgrep
 	x11-libs/cairo
 	x11-libs/gtk+:3
-	x11-libs/libnotify
 	x11-libs/libXScrnSaver
 	x11-libs/libXtst
-	x11-libs/pango"
+	x11-libs/libnotify
+	x11-libs/pango
+	libsecret? ( app-crypt/libsecret[crypt]	)
+"
 
-QA_PRESTRIPPED="*"
+S="${WORKDIR}"
 
-QA_PREBUILT="
-	opt/${MY_PN}/codium
-	opt/${MY_PN}/libEGL.so
-	opt/${MY_PN}/libffmpeg.so
-	opt/${MY_PN}/libGLESv2.so
-	opt/${MY_PN}/libvk_swiftshader.so
-	opt/${MY_PN}/libvulkan.so
-	opt/${MY_PN}/swiftshader/libEGL.so
-	opt/${MY_PN}/swiftshader/libGLESv2.so"
+src_prepare() {
+	default
 
-S="${WORKDIR}"
+	# Unbundle ripgrep
+	rm "resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg" || die
+}
 
 src_install() {
 	pax-mark m codium
 	insinto "/opt/${MY_PN}"
 	doins -r *
-	fperms +x /opt/${MY_PN}/{,bin/}codium
 	dosym "../../opt/${MY_PN}/bin/codium" "usr/bin/codium"
+
 	domenu "${FILESDIR}/codium.desktop"
 	domenu "${FILESDIR}/codium-url-handler.desktop"
+
+	fperms +x /opt/${MY_PN}/{,bin/}codium
+	fperms +x /opt/${MY_PN}/chrome-sandbox
+	fperms -R +x /opt/${MY_PN}/resources/app/out/vs/base/node
+
+	dosym "../../../../../../../usr/bin/rg" "${EPREFIX}/opt/${MY_PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg"
 	dodoc resources/app/LICENSE.txt resources/app/ThirdPartyNotices.txt
 	newicon resources/app/resources/linux/code.png ${MY_PN}.png
 }


             reply	other threads:[~2021-01-18 18:03 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-01-18 18:03 Maciej Barć [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-01-19 17:32 [gentoo-commits] repo/proj/guru:dev commit in: app-editors/vscodium-bin/ Maciej Barć
2021-02-07 22:19 Maciej Barć
2021-02-12 17:00 Maciej Barć
2021-02-16 21:10 [gentoo-commits] repo/proj/guru:master " Theo Anderson
2021-02-16  7:13 ` [gentoo-commits] repo/proj/guru:dev " Theo Anderson
2021-03-13  0:44 Maciej Barć
2021-03-13  0:45 Maciej Barć
2021-03-20  0:34 Maciej Barć
2021-03-20  0:36 Maciej Barć
2021-03-26  7:10 Maciej Barć
2021-03-26  7:50 Maciej Barć
2021-04-07 11:32 Maciej Barć
2021-04-15 15:25 Maciej Barć
2021-04-15 15:25 Maciej Barć
2021-05-15 15:22 Maciej Barć
2021-05-15 15:22 Maciej Barć
2021-05-18 18:39 Marcin Woźniak
2021-05-21 18:17 Maciej Barć

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1610992933.479416efd5e6e2098e0ef0788b45a3dcab60bb8e.xgqt@gentoo \
    --to=xgqt@protonmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox