summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoonas Niilola <juippis@gentoo.org>2021-05-27 11:33:29 +0300
committerJoonas Niilola <juippis@gentoo.org>2021-05-27 11:34:28 +0300
commit79db57d9916a0e25f4c0486041e9ad8f228dfe66 (patch)
tree4eac93e8a086c3bb00990e2836978cbaa7b71683 /app-editors
parentdev-util/vulkan-tools: keyword 1.2.179 for ~ppc64 (diff)
downloadgentoo-79db57d9916a0e25f4c0486041e9ad8f228dfe66.tar.gz
gentoo-79db57d9916a0e25f4c0486041e9ad8f228dfe66.tar.bz2
gentoo-79db57d9916a0e25f4c0486041e9ad8f228dfe66.zip
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@gentoo.org>
Diffstat (limited to 'app-editors')
-rw-r--r--app-editors/vscode/vscode-1.56.2.ebuild14
1 files 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 9f849c2af23c..044c01c33002 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