commit: 79db57d9916a0e25f4c0486041e9ad8f228dfe66
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Thu May 27 08:33:29 2021 +0000
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Thu May 27 08:34:28 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79db57d9
app-editors/vscode: fix S to WORKDIR
- don't set it in pkg_setup, as that's wrong by the PMS.
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>
app-editors/vscode/vscode-1.56.2.ebuild | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/app-editors/vscode/vscode-1.56.2.ebuild
b/app-editors/vscode/vscode-1.56.2.ebuild
index 9f849c2af23..044c01c3300 100644
--- a/app-editors/vscode/vscode-1.56.2.ebuild
+++ b/app-editors/vscode/vscode-1.56.2.ebuild
@@ -12,6 +12,7 @@ SRC_URI="
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}"
RESTRICT="mirror strip bindist"
@@ -36,7 +37,6 @@ LICENSE="
"
SLOT="0"
KEYWORDS="-* ~amd64 ~arm ~arm64"
-IUSE=""
RDEPEND="
app-accessibility/at-spi2-atk
@@ -68,21 +68,19 @@ QA_PREBUILT="
/opt/vscode/resources/app/node_modules.asar.unpacked/*
"
-pkg_setup() {
+src_install() {
if use amd64; then
- S="${WORKDIR}/VSCode-linux-x64"
+ cd "${WORKDIR}/VSCode-linux-x64" || die
elif use arm; then
- S="${WORKDIR}/VSCode-linux-armhf"
+ cd "${WORKDIR}/VSCode-linux-armhf" || die
elif use arm64; then
- S="${WORKDIR}/VSCode-linux-arm64"
+ cd "${WORKDIR}/VSCode-linux-arm64" || die
else
die "Visual Studio Code only supports amd64, arm and arm64"
fi
-}
-src_install() {
# Cleanup
- rm -r "${S}/resources/app/LICENSES.chromium.html"
"${S}/resources/app/LICENSE.rtf" "${S}/resources/app/licenses" || die
+ rm -r ./resources/app/LICENSES.chromium.html
./resources/app/LICENSE.rtf ./resources/app/licenses || die
# Install
pax-mark m code