1 |
commit: 79db57d9916a0e25f4c0486041e9ad8f228dfe66 |
2 |
Author: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 27 08:33:29 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu May 27 08:34:28 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79db57d9 |
7 |
|
8 |
app-editors/vscode: fix S to WORKDIR |
9 |
|
10 |
- don't set it in pkg_setup, as that's wrong by the PMS. |
11 |
|
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
app-editors/vscode/vscode-1.56.2.ebuild | 14 ++++++-------- |
15 |
1 file changed, 6 insertions(+), 8 deletions(-) |
16 |
|
17 |
diff --git a/app-editors/vscode/vscode-1.56.2.ebuild b/app-editors/vscode/vscode-1.56.2.ebuild |
18 |
index 9f849c2af23..044c01c3300 100644 |
19 |
--- a/app-editors/vscode/vscode-1.56.2.ebuild |
20 |
+++ b/app-editors/vscode/vscode-1.56.2.ebuild |
21 |
@@ -12,6 +12,7 @@ SRC_URI=" |
22 |
arm? ( https://update.code.visualstudio.com/${PV}/linux-armhf/stable -> ${P}-arm.tar.gz ) |
23 |
arm64? ( https://update.code.visualstudio.com/${PV}/linux-arm64/stable -> ${P}-arm64.tar.gz ) |
24 |
" |
25 |
+S="${WORKDIR}" |
26 |
|
27 |
RESTRICT="mirror strip bindist" |
28 |
|
29 |
@@ -36,7 +37,6 @@ LICENSE=" |
30 |
" |
31 |
SLOT="0" |
32 |
KEYWORDS="-* ~amd64 ~arm ~arm64" |
33 |
-IUSE="" |
34 |
|
35 |
RDEPEND=" |
36 |
app-accessibility/at-spi2-atk |
37 |
@@ -68,21 +68,19 @@ QA_PREBUILT=" |
38 |
/opt/vscode/resources/app/node_modules.asar.unpacked/* |
39 |
" |
40 |
|
41 |
-pkg_setup() { |
42 |
+src_install() { |
43 |
if use amd64; then |
44 |
- S="${WORKDIR}/VSCode-linux-x64" |
45 |
+ cd "${WORKDIR}/VSCode-linux-x64" || die |
46 |
elif use arm; then |
47 |
- S="${WORKDIR}/VSCode-linux-armhf" |
48 |
+ cd "${WORKDIR}/VSCode-linux-armhf" || die |
49 |
elif use arm64; then |
50 |
- S="${WORKDIR}/VSCode-linux-arm64" |
51 |
+ cd "${WORKDIR}/VSCode-linux-arm64" || die |
52 |
else |
53 |
die "Visual Studio Code only supports amd64, arm and arm64" |
54 |
fi |
55 |
-} |
56 |
|
57 |
-src_install() { |
58 |
# Cleanup |
59 |
- rm -r "${S}/resources/app/LICENSES.chromium.html" "${S}/resources/app/LICENSE.rtf" "${S}/resources/app/licenses" || die |
60 |
+ rm -r ./resources/app/LICENSES.chromium.html ./resources/app/LICENSE.rtf ./resources/app/licenses || die |
61 |
|
62 |
# Install |
63 |
pax-mark m code |