Skip to content

Commit

Permalink
app-editors/vscode: export
Browse files Browse the repository at this point in the history
  • Loading branch information
PF4Public committed Jun 11, 2023
1 parent c3465a2 commit e80a226
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions app-editors/vscode/vscode-9999.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,9 @@ RDEPEND="${COMMON_DEPEND}
DEPEND="${COMMON_DEPEND}
"

# net-libs/nodejs
BDEPEND="
${PYTHON_DEPS}
net-libs/nodejs
sys-apps/yarn
"

Expand Down Expand Up @@ -218,6 +218,7 @@ src_configure() {
else
die "Failed to determine target arch, got '$myarch'."
fi
export VSCODE_ARCH

#TODO: should work starting with electron-22
if use electron-20 || use electron-21 || use electron-23 || use electron-24; then
Expand Down Expand Up @@ -303,7 +304,7 @@ src_compile() {
export PATH

# Real nodejs needed (/usr/bin/node). See https://github.com/microsoft/vscode-l10n/issues/104
node --max_old_space_size=8192 node_modules/gulp/bin/gulp.js vscode-linux-${VSCODE_ARCH}-min || die
/usr/bin/node --max_old_space_size=8192 node_modules/gulp/bin/gulp.js vscode-linux-${VSCODE_ARCH}-min || die

export PATH=${OLD_PATH}
}
Expand All @@ -316,7 +317,7 @@ src_install() {
export PATH

# Real nodejs needed (/usr/bin/node). See https://github.com/microsoft/vscode-l10n/issues/104
YARN_CACHE_FOLDER="${T}/.yarn-cache" node node_modules/gulp/bin/gulp.js vscode-linux-${VSCODE_ARCH}-prepare-deb || die
YARN_CACHE_FOLDER="${T}/.yarn-cache" /usr/bin/node node_modules/gulp/bin/gulp.js vscode-linux-${VSCODE_ARCH}-prepare-deb || die
local VSCODE_HOME="/usr/$(get_libdir)/vscode"

exeinto "${VSCODE_HOME}"
Expand Down

0 comments on commit e80a226

Please sign in to comment.