From 6ee17dd82a3bcd0e90af4ebfbb3e411d342761be Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 9 Oct 2024 04:26:33 +0100 Subject: gentoo auto-resync : 09:10:2024 - 04:26:32 --- app-editors/Manifest.gz | Bin 14124 -> 14124 bytes app-editors/vscode/Manifest | 8 +- app-editors/vscode/vscode-1.94.0.ebuild | 131 ---------------------- app-editors/vscode/vscode-1.94.1.ebuild | 131 ++++++++++++++++++++++ app-editors/vscodium/Manifest | 4 + app-editors/vscodium/vscodium-1.94.0.24281.ebuild | 128 +++++++++++++++++++++ 6 files changed, 267 insertions(+), 135 deletions(-) delete mode 100644 app-editors/vscode/vscode-1.94.0.ebuild create mode 100644 app-editors/vscode/vscode-1.94.1.ebuild create mode 100644 app-editors/vscodium/vscodium-1.94.0.24281.ebuild (limited to 'app-editors') diff --git a/app-editors/Manifest.gz b/app-editors/Manifest.gz index ab2ff89dfde5..d8d881fe99e4 100644 Binary files a/app-editors/Manifest.gz and b/app-editors/Manifest.gz differ diff --git a/app-editors/vscode/Manifest b/app-editors/vscode/Manifest index d611ed6c0a33..52d75ecc4830 100644 --- a/app-editors/vscode/Manifest +++ b/app-editors/vscode/Manifest @@ -9,11 +9,11 @@ DIST vscode-1.93.0-arm64.tar.gz 142237085 BLAKE2B 517d4cc79cab13e6feed478c65b0fe DIST vscode-1.93.1-amd64.tar.gz 145338512 BLAKE2B 695efd4382aeab3c9aded7954146b35f9340ce17f9410f215461b9bb42ed0d1e82d32352f01a6d48d94876504d3ba559d8ded021fb24980da60750dd3eb956df SHA512 1fb697549f685c820154375426320addd716921a6bae859263dfec9aeabdd74f74826f300c65d78c99fec1a110cebfe031bf439811a56f16ec41fda3fdc98611 DIST vscode-1.93.1-arm.tar.gz 130274818 BLAKE2B 781d9a7784dd936a81f9407189dd1608b6778baec0c691f2337e3c3f1605578d09335a437de3b5d423b0df86b5f8256bb922ab5b7496df53b47e53788ccf9881 SHA512 e909d8126ee0013dc21c2eb97cca2cae3f4e823ff7b6342b544669d2c7b66a407ac3b56e68015130f6a807e64187bab88010e16037eb13dd27354069c2abffa9 DIST vscode-1.93.1-arm64.tar.gz 142212394 BLAKE2B 41c749fcfff253dcf9295429129c9487cc95b12f9c58f85c2864e5fbd65efd1b1818a438c9eb4132f6413ae83bca4ea27036510845eed446123a1e071fba4d39 SHA512 069339d4623a64d3de39241b9490b8ecda581728c78e343bff4749d06ec22311cb952243d485ea1c91aa16a46f74c66c06e7a8425b1063a9436b9161401812a3 -DIST vscode-1.94.0-amd64.tar.gz 144889379 BLAKE2B 17fbd71f998cdc9b88ace561189da209e519184a2f8e59eb030b3b4b1c92eebb1ac8b66e5eb523a158f889d8e5762a7b94b66241768e389a794b453a3d6e3322 SHA512 f9cc1d72a08d3368db102b30e54c7301ebd0cbc1e94ecc15473ba74e426ce87ff3a8b3d896d200be1a1cac892b546b684dc70afa85994a6d7a341a8bff8f8232 -DIST vscode-1.94.0-arm.tar.gz 129429788 BLAKE2B 0101dd7fa96054436150c1920e52fe79242c2d8c3fcfe636928ce1e235394a76ed473edaf687af4f1fe8707fae652ab7504279bcaca0362db151add22e9d2ec2 SHA512 822b5a72dfc48c7fe76c81aabc22da30a341680038bca0c56295b62941ff46fb8ffa61f6aacaf73aa92c103fcf204ed3c029a3074a0841064dbb6610b82da2d9 -DIST vscode-1.94.0-arm64.tar.gz 141176632 BLAKE2B 24983ff03439f74597375abf763ea194337abf7e68a43b74748ed22b47a873483cf63b73159554530278fdcefc6dbac949e3b8450dba1502784568a25f87f15b SHA512 00b98be5070e0d03f418fe18fa3e7fbceb6afc12d2c5cd90956131b23773681f1fe99b7e11c096ce238d4b29c2669047081f7112298d7965ea11f853e4b5ad6b +DIST vscode-1.94.1-amd64.tar.gz 145170000 BLAKE2B a791bdc8a4b89651349795bd3a44dd09cecefa9b6435810ee8f8760c8c25dc7cf3ceda75cf9432008e1404c0eec71d06f539ea0118a3bb1a7ad8c8fe16b680a6 SHA512 fe4cc2ee3bf936d992d9b8335bf3fdbe98a639a0f4b8b5d1bf7d88443d360d16298aa30dadd8f1be4b4200613e1dfa46d97187f58eba20c505dc317aeae9392c +DIST vscode-1.94.1-arm.tar.gz 129608752 BLAKE2B 72303ecff00985cf02c918c04dc59cad8f0834e5172b4c53b3db0e9973e8adf3e1f324faa95c17674d94161db64577797e6f78119eb75703a190c17d1f56c3a8 SHA512 fceaa5846a057da722cca123e11c54f87534679f7bc26d5d9c0ddf099bbd7e4c97d795a49fc8db6fbad66bde216676e8751a4424661762e38d9d9978ec12d133 +DIST vscode-1.94.1-arm64.tar.gz 141301103 BLAKE2B 08f85077f6951a6d16db80d506b41fa7d9f615c599e159adde849e2bb94667aa344c953191d2911fd486c305453890aa4019d476579665d67c6b38e7a84bef13 SHA512 90616ba81470d029c5644f114a1918fcd1379cf1622a0474e9ff91928a7da1a6dfab204663b8d603b2c1e130ec6f6c7083493d3fcfdb131f0191a6de54e38d0d EBUILD vscode-1.92.2.ebuild 2982 BLAKE2B 175a5d79855fe951a3163721e93c1d1191bff705bae0d91470c9a6dde57707d93b76b91f7d9abc0361c60078f28e2474c1fba5c5d822f63e9ef14e7ed70a46dd SHA512 04a2899ee7c793346c0c0d6802e5b8134efcfbc41041c0f7d8cceb6d312351f9a6bea0a24c5954542b37a2b388448417e431eb603afc2edc87ed330a5d65ab76 EBUILD vscode-1.93.0.ebuild 2982 BLAKE2B 175a5d79855fe951a3163721e93c1d1191bff705bae0d91470c9a6dde57707d93b76b91f7d9abc0361c60078f28e2474c1fba5c5d822f63e9ef14e7ed70a46dd SHA512 04a2899ee7c793346c0c0d6802e5b8134efcfbc41041c0f7d8cceb6d312351f9a6bea0a24c5954542b37a2b388448417e431eb603afc2edc87ed330a5d65ab76 EBUILD vscode-1.93.1.ebuild 2983 BLAKE2B e53625a2ad075ce53eecea1e1eaa4ec9719b6267c02484d82396248e4c618fc80e6b9c6e4ffd7bc785c18933f6a8af8ac2669a25156f0e2d802f0b10ce4e54e4 SHA512 1e135c7d868bcbd0f52b588451fc8877e7b6eec3ef04424de6bee3e41deeb61cd000e68829b988b55a8c6bfe889f65bdba0831dc0c6e6dcb615484edf08e4363 -EBUILD vscode-1.94.0.ebuild 2968 BLAKE2B 9a43a2d1a227a0e666b3b4136c4f40b2ce0ee9dd5a8d65d0d61dc08764143e56e630e496a4e3a779811c4b805ba92d6202c0c1ef82a745fa192d1eb82c1b51db SHA512 1686fe5957b62af1cb8fc2f85970ae191b795d6e7caee8f8f5c8fd853a0ee91e7a000bd621dc198d635153e23fc9f2ed5b203934bacf249c113d2836eed85cf5 +EBUILD vscode-1.94.1.ebuild 2968 BLAKE2B 9a43a2d1a227a0e666b3b4136c4f40b2ce0ee9dd5a8d65d0d61dc08764143e56e630e496a4e3a779811c4b805ba92d6202c0c1ef82a745fa192d1eb82c1b51db SHA512 1686fe5957b62af1cb8fc2f85970ae191b795d6e7caee8f8f5c8fd853a0ee91e7a000bd621dc198d635153e23fc9f2ed5b203934bacf249c113d2836eed85cf5 MISC metadata.xml 1319 BLAKE2B 02076564e7b3b37433125cdcada4445311f03699bc7adb00f60af4f73f2fa9ebb90b805885198bd7cbdc54b779fa259d56c3142b30d595eaed278130081d8ca7 SHA512 d0922226274b1686ea14c8ca4e5835f6b30399bd71372bde4ac7e4eee4301ccca7fc32472d6ac0bd598b0459ebc33a59d346a21f5fa2d39cac4ed197682354e0 diff --git a/app-editors/vscode/vscode-1.94.0.ebuild b/app-editors/vscode/vscode-1.94.0.ebuild deleted file mode 100644 index 7757235fed73..000000000000 --- a/app-editors/vscode/vscode-1.94.0.ebuild +++ /dev/null @@ -1,131 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit desktop pax-utils xdg optfeature - -DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" -HOMEPAGE="https://code.visualstudio.com" -SRC_URI=" - amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz ) - arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) - arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) -" -S="${WORKDIR}" - -LICENSE=" - Apache-2.0 - BSD - BSD-1 - BSD-2 - BSD-4 - CC-BY-4.0 - ISC - LGPL-2.1+ - Microsoft-vscode - MIT - MPL-2.0 - openssl - PYTHON - TextMate-bundle - Unlicense - UoI-NCSA - W3C -" -SLOT="0" -KEYWORDS="-* amd64 ~arm ~arm64" -IUSE="egl kerberos wayland" -RESTRICT="mirror strip bindist" - -RDEPEND=" - >=app-accessibility/at-spi2-core-2.46.0:2 - app-crypt/libsecret[crypt] - app-misc/ca-certificates - dev-libs/expat - dev-libs/glib:2 - dev-libs/nspr - dev-libs/nss - media-libs/alsa-lib - media-libs/libglvnd - media-libs/mesa - net-misc/curl - sys-apps/dbus - sys-libs/zlib - sys-process/lsof - x11-libs/cairo - x11-libs/gtk+:3 - x11-libs/libdrm - x11-libs/libX11 - x11-libs/libxcb - x11-libs/libXcomposite - x11-libs/libXdamage - x11-libs/libXext - x11-libs/libXfixes - x11-libs/libxkbcommon - x11-libs/libxkbfile - x11-libs/libXrandr - x11-libs/libXScrnSaver - x11-libs/pango - x11-misc/xdg-utils - kerberos? ( app-crypt/mit-krb5 ) -" - -QA_PREBUILT="*" - -src_install() { - if use amd64; then - cd "${WORKDIR}/VSCode-linux-x64" || die - elif use arm; then - cd "${WORKDIR}/VSCode-linux-armhf" || die - elif use arm64; then - cd "${WORKDIR}/VSCode-linux-arm64" || die - else - die "Visual Studio Code only supports amd64, arm and arm64" - fi - - # Cleanup - rm -r ./resources/app/ThirdPartyNotices.txt || die - - # Disable update server - sed -e "/updateUrl/d" -i ./resources/app/product.json || die - - if ! use kerberos; then - rm -r ./resources/app/node_modules/kerberos || die - fi - - # Install - pax-mark m code - mkdir -p "${ED}/opt/${PN}" || die - cp -r . "${ED}/opt/${PN}" || die - fperms 4711 /opt/${PN}/chrome-sandbox - - dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode" - dosym -r "/opt/${PN}/bin/code" "usr/bin/code" - - local EXEC_EXTRA_FLAGS=() - if use wayland; then - EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" ) - fi - if use egl; then - EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) - fi - - sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ - "${FILESDIR}/code-url-handler.desktop" \ - > "${T}/code-url-handler.desktop" || die - - sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ - "${FILESDIR}/code.desktop" \ - > "${T}/code.desktop" || die - - domenu "${T}/code.desktop" - domenu "${T}/code-url-handler.desktop" - newicon "resources/app/resources/linux/code.png" "vscode.png" -} - -pkg_postinst() { - xdg_pkg_postinst - optfeature "desktop notifications" x11-libs/libnotify - optfeature "keyring support inside vscode" "virtual/secret-service" -} diff --git a/app-editors/vscode/vscode-1.94.1.ebuild b/app-editors/vscode/vscode-1.94.1.ebuild new file mode 100644 index 000000000000..7757235fed73 --- /dev/null +++ b/app-editors/vscode/vscode-1.94.1.ebuild @@ -0,0 +1,131 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils xdg optfeature + +DESCRIPTION="Multiplatform Visual Studio Code from Microsoft" +HOMEPAGE="https://code.visualstudio.com" +SRC_URI=" + amd64? ( https://update.code.visualstudio.com/${PV}/linux-x64/stable -> ${P}-amd64.tar.gz ) + arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) + arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) +" +S="${WORKDIR}" + +LICENSE=" + Apache-2.0 + BSD + BSD-1 + BSD-2 + BSD-4 + CC-BY-4.0 + ISC + LGPL-2.1+ + Microsoft-vscode + MIT + MPL-2.0 + openssl + PYTHON + TextMate-bundle + Unlicense + UoI-NCSA + W3C +" +SLOT="0" +KEYWORDS="-* amd64 ~arm ~arm64" +IUSE="egl kerberos wayland" +RESTRICT="mirror strip bindist" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/libglvnd + media-libs/mesa + net-misc/curl + sys-apps/dbus + sys-libs/zlib + sys-process/lsof + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXrandr + x11-libs/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +src_install() { + if use amd64; then + cd "${WORKDIR}/VSCode-linux-x64" || die + elif use arm; then + cd "${WORKDIR}/VSCode-linux-armhf" || die + elif use arm64; then + cd "${WORKDIR}/VSCode-linux-arm64" || die + else + die "Visual Studio Code only supports amd64, arm and arm64" + fi + + # Cleanup + rm -r ./resources/app/ThirdPartyNotices.txt || die + + # Disable update server + sed -e "/updateUrl/d" -i ./resources/app/product.json || die + + if ! use kerberos; then + rm -r ./resources/app/node_modules/kerberos || die + fi + + # Install + pax-mark m code + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/code" "usr/bin/vscode" + dosym -r "/opt/${PN}/bin/code" "usr/bin/code" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" "--enable-wayland-ime" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code-url-handler.desktop" \ + > "${T}/code-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/code.desktop" \ + > "${T}/code.desktop" || die + + domenu "${T}/code.desktop" + domenu "${T}/code-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscode.png" +} + +pkg_postinst() { + xdg_pkg_postinst + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +} diff --git a/app-editors/vscodium/Manifest b/app-editors/vscodium/Manifest index fefb71ca3f43..6ed12c7ef5ce 100644 --- a/app-editors/vscodium/Manifest +++ b/app-editors/vscodium/Manifest @@ -6,6 +6,10 @@ DIST vscodium-1.92.2.24228-arm64.tar.gz 130895581 BLAKE2B a6b205ba449a34c7ba695a DIST vscodium-1.93.1.24256-amd64.tar.gz 131547349 BLAKE2B a1061b739e51e55c6570171f85982cadab7474e44ef797ea77f4fb7278d2b5360446369e4342969aae55840766978afbdbb4c73c2794a8a470242c4254b7c916 SHA512 5a7bc33613e5dc1f53c91b907a15544af6d57897bcf9a9493ed477496e8a30eea587f36c65403ded809b866ec2853014b9fb3cb3ed0ab51736390e008f00fbb5 DIST vscodium-1.93.1.24256-arm.tar.gz 119891939 BLAKE2B fde94eb14c87a52079866aaf8b0d9326417f59706ef6ce1e2ebace42952d9773a87b0c1ab8fded9936401ec5d6547027f25c21a47c8beb83b8bf050965944170 SHA512 55c642834551f88be9a6c50e5f98e206043670725ad166fb9f5f9ca11559b01cdd6e0433d72c66c2ec5b10b5390ff2d7d17a68369c2d53d022f6673e7ecb4893 DIST vscodium-1.93.1.24256-arm64.tar.gz 131494186 BLAKE2B 62715b6aa8f42dd76b8d3daad7a2bbb0d61612a631e0f34e1db309d4cdad41c4dcbe3dc2eb429a12bcebeb0dc71e437dd566910c3e10d536abadc9522b2e48e8 SHA512 468815c0e5c27ad397da5c6c99aa1a37a22ec3072d35fbd3e0d67a79233688a01104f43db69833f88bf8124b1532766eaac2cee61ffd70450780d5641206de87 +DIST vscodium-1.94.0.24281-amd64.tar.gz 130452164 BLAKE2B 7ce5a04313b00f9dd71e44b5ef73d1607964652569476540012114a1a6151ce5d01f89ed034f272f1ad43e5db554e102af55b301d43d160523ebcb6a4fc9a192 SHA512 4bdb44ea95c3332b2c3b566574353afd9526db09e34a6deef6e6c1af4daa99415ca996967e59099b978b8a2d016edcb447ea26993ccbe71d6d6d535d5c1c8f4d +DIST vscodium-1.94.0.24281-arm.tar.gz 118802288 BLAKE2B be3b5920ef79dae480872e64ac31e41feea33e70562750dfd4313f8edfa18106380ee12b4b1f04dbaef68011c5e25b09bc41a25969d5ab6a9a2b4d12aff02919 SHA512 d5f18667053b2f2812a2648d17c5fafd9f41f577e263d6b8e16561fa898bf6b90dbd89405c847db52cef328ff7018465338515ca64d8dd331a801361ecdcc035 +DIST vscodium-1.94.0.24281-arm64.tar.gz 130387346 BLAKE2B a1bc80624a0b6535dc1fceda94de361a1c1bcfc930c1d2874fd2eb82677b4ed0093b1f9e81ae70992d316b93e6ff6148369f2cde5b3c7d5103e8086c6c01b5ce SHA512 e6178563d723d83d45b07200508095b85bc633ef5e0ed3eb502e0b1ccb38e1674d65eb6a26cfdf04fb8073de284c8bb878fc3a13cb6c131ecbb6d6b6c4de6b65 EBUILD vscodium-1.92.2.24228.ebuild 2877 BLAKE2B 0c9533a063f5ad61d06a64663e4007f7b29994a0680e2a33a2b169f53a5e7b0e90e3f4f70199ae80357376d40bca36ee25fd3a8bb967f93b63fab1107ce7e774 SHA512 3c0744ffbdd21e9ceaa4e56a70908639818ef490de80ec9c3fef9f6bf74314445408779912fc89361cfc641ab8da6fc428c186adf01532d64d16c59537728632 EBUILD vscodium-1.93.1.24256.ebuild 2877 BLAKE2B 0c9533a063f5ad61d06a64663e4007f7b29994a0680e2a33a2b169f53a5e7b0e90e3f4f70199ae80357376d40bca36ee25fd3a8bb967f93b63fab1107ce7e774 SHA512 3c0744ffbdd21e9ceaa4e56a70908639818ef490de80ec9c3fef9f6bf74314445408779912fc89361cfc641ab8da6fc428c186adf01532d64d16c59537728632 +EBUILD vscodium-1.94.0.24281.ebuild 2877 BLAKE2B 0c9533a063f5ad61d06a64663e4007f7b29994a0680e2a33a2b169f53a5e7b0e90e3f4f70199ae80357376d40bca36ee25fd3a8bb967f93b63fab1107ce7e774 SHA512 3c0744ffbdd21e9ceaa4e56a70908639818ef490de80ec9c3fef9f6bf74314445408779912fc89361cfc641ab8da6fc428c186adf01532d64d16c59537728632 MISC metadata.xml 1563 BLAKE2B 63d5132bcea2c419facf49b2d644bf1f58f44da333adb8270aedaaa289563ff5d116a0700df1306bdf1e7d2628f72959b8f18540486d3ce56bfe67adb925d8fe SHA512 ea75764cc70ac6a9452600a106de3784baaa9f84fa5b1021cea2be073636fb0fc8c6904a7db2a560ccb2bba491d76125e5996e0aac28ea11cd039ae16972e595 diff --git a/app-editors/vscodium/vscodium-1.94.0.24281.ebuild b/app-editors/vscodium/vscodium-1.94.0.24281.ebuild new file mode 100644 index 000000000000..4bf914823a45 --- /dev/null +++ b/app-editors/vscodium/vscodium-1.94.0.24281.ebuild @@ -0,0 +1,128 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit desktop pax-utils xdg optfeature + +# Usage: arch_src_uri +arch_src_uri() { + echo "${1}? ( + https://github.com/VSCodium/${PN}/releases/download/${PV}/VSCodium-linux-${2}-${PV}.tar.gz + -> ${P}-${1}.tar.gz + )" +} + +DESCRIPTION="A community-driven, freely-licensed binary distribution of Microsoft's VSCode" +HOMEPAGE="https://vscodium.com/" +SRC_URI=" + $(arch_src_uri amd64 x64) + $(arch_src_uri arm armhf) + $(arch_src_uri arm64 arm64) +" +S="${WORKDIR}" + +LICENSE=" + Apache-2.0 + BSD + BSD-1 + BSD-2 + BSD-4 + CC-BY-4.0 + ISC + LGPL-2.1+ + MIT + MPL-2.0 + openssl + PYTHON + TextMate-bundle + Unlicense + UoI-NCSA + W3C +" +SLOT="0" +KEYWORDS="-* amd64 ~arm ~arm64" +IUSE="egl kerberos wayland" +RESTRICT="strip bindist" + +RDEPEND=" + >=app-accessibility/at-spi2-core-2.46.0:2 + app-crypt/libsecret[crypt] + app-misc/ca-certificates + dev-libs/expat + dev-libs/glib:2 + dev-libs/nspr + dev-libs/nss + media-libs/alsa-lib + media-libs/libglvnd + media-libs/mesa + net-misc/curl + net-print/cups + sys-apps/dbus + sys-libs/zlib + sys-process/lsof + x11-libs/cairo + x11-libs/gtk+:3 + x11-libs/libdrm + x11-libs/libX11 + x11-libs/libxcb + x11-libs/libXcomposite + x11-libs/libXdamage + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libxkbcommon + x11-libs/libxkbfile + x11-libs/libXrandr + x11-libs/libXScrnSaver + x11-libs/pango + x11-misc/xdg-utils + kerberos? ( app-crypt/mit-krb5 ) +" + +QA_PREBUILT="*" + +src_install() { + # Cleanup license file - it exists only in amd64 tarball + rm -f "${S}/resources/app/LICENSE.txt" || die + + if ! use kerberos; then + rm -rf "${S}/resources/app/node_modules.asar.unpacked/kerberos" || die + fi + + # Install + pax-mark m codium + mkdir -p "${ED}/opt/${PN}" || die + cp -r . "${ED}/opt/${PN}" || die + fperms 4711 /opt/${PN}/chrome-sandbox + + dosym -r "/opt/${PN}/bin/codium" "usr/bin/vscodium" + dosym -r "/opt/${PN}/bin/codium" "usr/bin/codium" + + local EXEC_EXTRA_FLAGS=() + if use wayland; then + EXEC_EXTRA_FLAGS+=( "--ozone-platform-hint=auto" ) + fi + if use egl; then + EXEC_EXTRA_FLAGS+=( "--use-gl=egl" ) + fi + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscodium-url-handler.desktop" \ + > "${T}/vscodium-url-handler.desktop" || die + + sed "s|@exec_extra_flags@|${EXEC_EXTRA_FLAGS[*]}|g" \ + "${FILESDIR}/vscodium.desktop" \ + > "${T}/vscodium.desktop" || die + + domenu "${T}/vscodium.desktop" + domenu "${T}/vscodium-url-handler.desktop" + newicon "resources/app/resources/linux/code.png" "vscodium.png" +} + +pkg_postinst() { + xdg_pkg_postinst + elog "When compared to the regular VSCode, VSCodium has a few quirks" + elog "More information at: https://github.com/VSCodium/vscodium/blob/master/docs/index.md" + optfeature "desktop notifications" x11-libs/libnotify + optfeature "keyring support inside vscode" "virtual/secret-service" +} -- cgit v1.2.3