2021-01-08 23:09:22 +01:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-04-15 22:35:56 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=7
|
|
|
|
|
2020-09-22 00:09:27 +02:00
|
|
|
inherit desktop pax-utils xdg
|
2020-04-15 22:35:56 +02:00
|
|
|
|
2021-01-08 23:09:22 +01:00
|
|
|
DESCRIPTION="Open Source Software binaries of VSCode"
|
2020-04-15 22:35:56 +02:00
|
|
|
HOMEPAGE="https://github.com/VSCodium/vscodium"
|
2020-04-15 23:51:26 +02:00
|
|
|
SRC_URI="https://github.com/VSCodium/vscodium/releases/download/${PV}/VSCodium-linux-x64-${PV}.tar.gz -> ${P}.tar.gz"
|
2020-04-15 22:35:56 +02:00
|
|
|
|
2021-01-08 23:09:22 +01:00
|
|
|
RESTRICT="bindist mirror strip test"
|
2020-04-15 22:35:56 +02:00
|
|
|
LICENSE="MIT"
|
|
|
|
SLOT="0"
|
2020-04-15 23:51:26 +02:00
|
|
|
KEYWORDS="~amd64"
|
2020-04-15 22:35:56 +02:00
|
|
|
IUSE="libsecret"
|
|
|
|
|
|
|
|
DEPEND="
|
|
|
|
>=media-libs/libpng-1.2.46:0
|
|
|
|
>=x11-libs/gtk+-3.0:3
|
|
|
|
x11-libs/cairo
|
|
|
|
x11-libs/libXtst
|
|
|
|
"
|
|
|
|
RDEPEND="
|
|
|
|
${DEPEND}
|
|
|
|
>=net-print/cups-2.0.0
|
|
|
|
dev-libs/nss
|
2021-01-08 23:09:22 +01:00
|
|
|
sys-apps/ripgrep
|
2020-09-22 00:09:27 +02:00
|
|
|
x11-libs/libXScrnSaver
|
|
|
|
x11-libs/libnotify
|
|
|
|
libsecret? (
|
|
|
|
app-crypt/libsecret[crypt]
|
|
|
|
)
|
2020-04-15 22:35:56 +02:00
|
|
|
"
|
|
|
|
|
|
|
|
S="${WORKDIR}"
|
|
|
|
|
2021-01-08 23:09:22 +01:00
|
|
|
src_prepare() {
|
|
|
|
default
|
|
|
|
|
|
|
|
# Unbundle ripgrep
|
|
|
|
rm "resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg" || die
|
|
|
|
}
|
|
|
|
|
2020-04-15 22:35:56 +02:00
|
|
|
src_install() {
|
|
|
|
pax-mark m code
|
2021-01-08 23:09:22 +01:00
|
|
|
|
2020-04-15 22:35:56 +02:00
|
|
|
insinto "/opt/${PN}"
|
|
|
|
doins -r *
|
2021-01-08 23:09:22 +01:00
|
|
|
|
|
|
|
dosym "../../opt/${PN}/bin/codium" "${EPREFIX}/usr/bin/codium-bin"
|
|
|
|
dosym "../../opt/${PN}/bin/codium" "${EPREFIX}/usr/bin/vscodium-bin"
|
|
|
|
|
2020-04-15 22:35:56 +02:00
|
|
|
make_desktop_entry "codium-bin" "Codium-bin" "codium-bin" "Development;IDE"
|
|
|
|
newicon "resources/app/resources/linux/code.png" codium-bin.png
|
|
|
|
|
2021-01-08 23:09:22 +01:00
|
|
|
fperms +x "/opt/${PN}/bin/codium"
|
|
|
|
fperms +x "/opt/${PN}/chrome-sandbox"
|
|
|
|
fperms +x "/opt/${PN}/codium"
|
2021-01-08 23:58:14 +01:00
|
|
|
fperms +x "/opt/${PN}/resources/app/out/vs/base/node/cpuUsage.sh"
|
|
|
|
fperms +x "/opt/${PN}/resources/app/out/vs/base/node/ps.sh"
|
|
|
|
fperms +x "/opt/${PN}/resources/app/out/vs/base/node/terminateProcess.sh"
|
2020-09-22 00:09:27 +02:00
|
|
|
|
2021-01-08 23:15:39 +01:00
|
|
|
dosym "../../../../../../../usr/bin/rg" "${EPREFIX}/opt/${PN}/resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg"
|
2020-04-15 22:35:56 +02:00
|
|
|
}
|