-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
rstudio: clean up patches, build panmirror, remove rsconnect
- Loading branch information
Showing
6 changed files
with
109 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
pkgs/applications/editors/rstudio/dont-assume-pandoc-in-quarto.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
diff --git a/src/cpp/session/CMakeLists.txt b/src/cpp/session/CMakeLists.txt | ||
index 0202e84..596b9f8 100644 | ||
--- a/src/cpp/session/CMakeLists.txt | ||
+++ b/src/cpp/session/CMakeLists.txt | ||
@@ -59,11 +59,7 @@ endif() | ||
|
||
|
||
# install pandoc | ||
-# - by default, we use quarto + quarto's bundled pandoc | ||
-# - if quarto is not enabled, use pandoc fallback | ||
-if(QUARTO_ENABLED) | ||
- set(RSTUDIO_DEPENDENCIES_PANDOC_DIR "${RSTUDIO_DEPENDENCIES_QUARTO_DIR}/bin/tools") | ||
-elseif(EXISTS "${RSTUDIO_TOOLS_ROOT}/pandoc/${PANDOC_VERSION}") | ||
+if(EXISTS "${RSTUDIO_TOOLS_ROOT}/pandoc/${PANDOC_VERSION}") | ||
set(RSTUDIO_DEPENDENCIES_PANDOC_DIR "${RSTUDIO_TOOLS_ROOT}/pandoc/${PANDOC_VERSION}") | ||
else() | ||
set(RSTUDIO_DEPENDENCIES_PANDOC_DIR "${RSTUDIO_DEPENDENCIES_DIR}/pandoc/${PANDOC_VERSION}") | ||
@@ -733,11 +729,10 @@ if(NOT RSTUDIO_SESSION_WIN32 AND NOT RSESSION_ALTERNATE_BUILD) | ||
PATTERN ".gitignore" | ||
EXCLUDE) | ||
endif() | ||
- else() | ||
- install(DIRECTORY "${RSTUDIO_DEPENDENCIES_PANDOC_DIR}/" | ||
- DESTINATION "${RSTUDIO_INSTALL_BIN}/pandoc" | ||
- USE_SOURCE_PERMISSIONS) | ||
endif() | ||
+ install(DIRECTORY "${RSTUDIO_DEPENDENCIES_PANDOC_DIR}/" | ||
+ DESTINATION "${RSTUDIO_INSTALL_BIN}/pandoc" | ||
+ USE_SOURCE_PERMISSIONS) | ||
|
||
# install embedded packages | ||
foreach(PKG ${RSTUDIO_EMBEDDED_PACKAGES}) | ||
diff --git a/src/cpp/session/include/session/SessionConstants.hpp b/src/cpp/session/include/session/SessionConstants.hpp | ||
index e6aef22..57491ec 100644 | ||
--- a/src/cpp/session/include/session/SessionConstants.hpp | ||
+++ b/src/cpp/session/include/session/SessionConstants.hpp | ||
@@ -147,11 +147,7 @@ | ||
#define kSessionTmpDirEnvVar "RS_SESSION_TMP_DIR" | ||
#define kSessionTmpDir "rstudio-rsession" | ||
|
||
-#ifdef QUARTO_ENABLED | ||
-# define kDefaultPandocPath "bin/quarto/bin/tools" | ||
-#else | ||
# define kDefaultPandocPath "bin/pandoc" | ||
-#endif | ||
|
||
#define kDefaultNodePath "bin/node" | ||
#define kDefaultQuartoPath "bin/quarto" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
diff --git a/src/gwt/build.xml b/src/gwt/build.xml | ||
index 27ffe33..4218678 100644 | ||
--- a/src/gwt/build.xml | ||
+++ b/src/gwt/build.xml | ||
@@ -139,11 +139,6 @@ | ||
<echo message="panmirror minify: ${panmirror.minify}"/> | ||
|
||
<mkdir dir="${panmirror.build.dir}"/> | ||
- <exec executable="${yarn.bin}" dir="${panmirror.dir}" resolveexecutable="true" failonerror="true"> | ||
- <arg value="install"/> | ||
- <arg value="--network-timeout"/> | ||
- <arg value="240000"/> | ||
- </exec> | ||
<exec executable="${yarn.bin}" dir="${panmirror.dir}" resolveexecutable="true" failonerror="true"> | ||
<arg value="build"/> | ||
<arg value="--minify"/> |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.