Skip to content

Commit 52c0456

Browse files
turbobot-tempyurivict
authored andcommitted
feat(create-turbo): apply official-starter transform
1 parent 7d0be9b commit 52c0456

25 files changed

+93
-355
lines changed

‎devel/RStudio/Makefile‎

Lines changed: 20 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,11 @@
33

44
PORTNAME= RStudio
55
DISTVERSIONPREFIX= v
6-
DISTVERSION= 2022.12.0+353
7-
PORTREVISION= 6
6+
DISTVERSION= 2024.09.0+375
87
CATEGORIES= devel math java
98
MASTER_SITES= https://s3.amazonaws.com/rstudio-buildtools/dictionaries/:dictionaries \
109
https://s3.amazonaws.com/rstudio-buildtools/:buildtools
1110
DISTFILES= core-dictionaries.zip:dictionaries \
12-
gin-${GIN_VERSION}.zip:buildtools \
13-
gwt-${GWT_VERSION}.zip:buildtools \
1411
mathjax-27.zip:buildtools
1512

1613
MAINTAINER= yuri@FreeBSD.org
@@ -48,7 +45,8 @@ GH_PROJECT= ${PORTNAME:tl}
4845
GH_TUPLE= rstudio:r2d3:v0.2.0:r2d3/dependencies/common/r2d3 \
4946
rstudio:rmarkdown:aed26ac:rmarkdown/dependencies/common/rmarkdown \
5047
rstudio:rsconnect:03c379b:rsconnect/dependencies/common/rsconnect \
51-
trestletech:plumber:v0.4.6:plumber/dependencies/common/plumber
48+
trestletech:plumber:v0.4.6:plumber/dependencies/common/plumber \
49+
quarto-dev:quarto:v1.115.0-vsix:quarto/src/gwt/lib/quarto
5250

5351
CMAKE_ARGS= -DFREEBSD_RSTUDIO_VERSION:STRING=${PORTVERSION} \
5452
-DFREEBSD_LIBDIR:STRING=${PREFIX}/lib
@@ -91,40 +89,40 @@ USE_RC_SUBR= ${PORTNAME:tl}-server
9189
OPTIONS_DEFINE= WITH_QUARTO
9290

9391
WITH_QUARTO_DESC= Build with support for Quarto
94-
WITH_QUARTO_CMAKE_BOOL= FREEBSD_QUARTO_ENABLED
92+
WITH_QUARTO_CMAKE_BOOL= QUARTO_ENABLED
9593
WITH_QUARTO_BROKEN= Quarto isn't yet ported
9694

9795
post-extract:
9896
@${MKDIR} ${WRKSRC}/dependencies/dictionaries && ${MV} ${WRKDIR}/en_* ${WRKSRC}/dependencies/dictionaries/
9997
@${MV} ${WRKDIR}/mathjax-* ${WRKSRC}/dependencies/
100-
@${MKDIR} ${WRKSRC}/src/gwt/lib/gwt && ${MV} ${WRKDIR}/gwt-${GWT_VERSION} ${WRKSRC}/src/gwt/lib/gwt/${GWT_VERSION}
101-
@${MKDIR} ${WRKSRC}/src/gwt/lib/gin/${GIN_VERSION} && ${MV} ${WRKDIR}/*.jar ${WRKSRC}/src/gwt/lib/gin/${GIN_VERSION}/
98+
#@${MKDIR} ${WRKSRC}/src/gwt/lib/gwt && ${MV} ${WRKDIR}/gwt-${GWT_VERSION} ${WRKSRC}/src/gwt/lib/gwt/${GWT_VERSION}
99+
#@${MKDIR} ${WRKSRC}/src/gwt/lib/gin/${GIN_VERSION} && ${MV} ${WRKDIR}/*.jar ${WRKSRC}/src/gwt/lib/gin/${GIN_VERSION}/
102100

103101
post-patch:
104-
@${REINPLACE_CMD} -e ' \
105-
s|target_link_libraries(rstudio|target_link_libraries(rstudio procstat|; \
106-
s|get_filename_component|#get_filename_component|; \
107-
s|set(CMAKE_PREFIX_PATH "$${QT_BIN_DIR}//..//lib//cmake")|set(CMAKE_PREFIX_PATH "${LOCALBASE}/lib/cmake")|; \
108-
s|/usr/share/|${PREFIX}/share/|g' \
109-
${WRKSRC}/src/cpp/desktop/CMakeLists.txt
110-
@${REINPLACE_CMD} -e ' \
111-
s|</java>|<jvmarg value="-Duser.home=${WRKDIR}"/></java>|' \
112-
${WRKSRC}/src/gwt/build.xml
102+
#@${REINPLACE_CMD} -e ' \
103+
# s|target_link_libraries(rstudio|target_link_libraries(rstudio procstat|; \
104+
# s|get_filename_component|#get_filename_component|; \
105+
# s|set(CMAKE_PREFIX_PATH "$${QT_BIN_DIR}//..//lib//cmake")|set(CMAKE_PREFIX_PATH "${LOCALBASE}/lib/cmake")|; \
106+
# s|/usr/share/|${PREFIX}/share/|g' \
107+
# ${WRKSRC}/src/cpp/desktop/CMakeLists.txt
108+
#@${REINPLACE_CMD} -e ' \
109+
# s|</java>|<jvmarg value="-Duser.home=${WRKDIR}"/></java>|' \
110+
# ${WRKSRC}/src/gwt/build.xml
113111
@${REINPLACE_CMD} -e ' \
114112
s|rHomePaths.push_back|//rHomePaths.push_back|; \
115113
s|//rHomePaths.push_back(FilePath("/usr/local/lib/|rHomePaths.push_back(FilePath("${PREFIX}/lib/|' \
116114
${WRKSRC}/src/cpp/core/r_util/RVersionsPosix.cpp
117-
@${REINPLACE_CMD} -e ' \
118-
s|<condition property="node.bin" value="../../../$${node.dir}/bin/node">|<condition property="node.bin" value="${LOCALBASE}/bin/node">|' \
119-
${WRKSRC}/src/gwt/build.xml
115+
#@${REINPLACE_CMD} -e ' \
116+
# s|<condition property="node.bin" value="../../../$${node.dir}/bin/node">|<condition property="node.bin" value="${LOCALBASE}/bin/node">|' \
117+
# ${WRKSRC}/src/gwt/build.xml
120118
# add $PREFIX/bin to PATH for the server daemon
121119
.if ${FLAVOR:U} == server
122120
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|' ${WRKSRC}/src/cpp/session/modules/SessionGit.cpp
123121
.endif
124122

125123
pre-build:
126-
@${CP} ${FILESDIR}/global-setenv.h ${WRKSRC}/src/cpp/desktop/
127-
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/cpp/desktop/global-setenv.h
124+
#@${CP} ${FILESDIR}/global-setenv.h ${WRKSRC}/src/cpp/desktop/
125+
#@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/cpp/desktop/global-setenv.h
128126

129127
post-install:
130128
@(echo "#!/bin/sh"; \

‎devel/RStudio/distinfo‎

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,10 @@
1-
TIMESTAMP = 1672353588
1+
TIMESTAMP = 1727743998
22
SHA256 (core-dictionaries.zip) = 4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494
33
SIZE (core-dictionaries.zip) = 876339
4-
SHA256 (gin-2.1.2.zip) = b98e704164f54be596779696a3fcd11be5785c9907a99ec535ff6e9525ad5f9a
5-
SIZE (gin-2.1.2.zip) = 1341053
6-
SHA256 (gwt-2.8.1.zip) = 0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7
7-
SIZE (gwt-2.8.1.zip) = 95650299
84
SHA256 (mathjax-27.zip) = c56cbaa6c4ce03c1fcbaeb2b5ea3c312d2fb7626a360254770cbcb88fb204176
95
SIZE (mathjax-27.zip) = 3285230
10-
SHA256 (RStudio-rstudio-v2022.12.0+353_GH0.tar.gz) = e4f3503e2ad4229301360f56fd5288e5c8e769c490073dae7fe40366237ecce0
11-
SIZE (RStudio-rstudio-v2022.12.0+353_GH0.tar.gz) = 266546261
6+
SHA256 (RStudio-rstudio-v2024.09.0+375_GH0.tar.gz) = 8a29b77c53a3db8379d824a9f4a491843036003d105ed71981cd40fe39d2c8c8
7+
SIZE (RStudio-rstudio-v2024.09.0+375_GH0.tar.gz) = 268564378
128
SHA256 (rstudio-r2d3-v0.2.0_GH0.tar.gz) = 6355a7632134c8c9487056019a9c458db2c98d10388cf66b018d5461d0a947af
139
SIZE (rstudio-r2d3-v0.2.0_GH0.tar.gz) = 21977747
1410
SHA256 (rstudio-rmarkdown-aed26ac_GH0.tar.gz) = b6f6f48dd9930514204739d8957c2737f0b1d110aebf9f89fa31de10598cb29b
@@ -17,3 +13,5 @@ SHA256 (rstudio-rsconnect-03c379b_GH0.tar.gz) = d24b6ee49f32f650f6d10bbfc7b2f61a
1713
SIZE (rstudio-rsconnect-03c379b_GH0.tar.gz) = 220711
1814
SHA256 (trestletech-plumber-v0.4.6_GH0.tar.gz) = 7bcbfdf5a8a2e3a051d2c673ac5ac51a483ed888afe73116cba7741dbb5f63a6
1915
SIZE (trestletech-plumber-v0.4.6_GH0.tar.gz) = 83332
16+
SHA256 (quarto-dev-quarto-v1.115.0-vsix_GH0.tar.gz) = 59a10967d3d4a45f1224180aaa52c96b334a1c82c0e7411dfeac53137bef48ed
17+
SIZE (quarto-dev-quarto-v1.115.0-vsix_GH0.tar.gz) = 5207281

‎devel/RStudio/files/patch-CMakeGlobals.txt‎

Lines changed: 0 additions & 46 deletions
This file was deleted.
Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- CMakeLists.txt.orig 2019-09-19 13:59:21 UTC
1+
--- CMakeLists.txt.orig 2024-09-16 17:02:32 UTC
22
+++ CMakeLists.txt
3-
@@ -31,7 +31,7 @@ endif()
3+
@@ -39,7 +39,7 @@ if (NOT RSTUDIO_SESSION_WIN32)
44
if (NOT RSTUDIO_SESSION_WIN32)
55
# dynamically configure SOURCE with the git revision hash
66
INSTALL(CODE "
@@ -9,11 +9,18 @@
99
WORKING_DIRECTORY \"${CMAKE_CURRENT_SOURCE_DIR}\"
1010
OUTPUT_VARIABLE RSTUDIO_GIT_REVISION_HASH)
1111
configure_file (\"${CMAKE_CURRENT_SOURCE_DIR}/SOURCE.in\"
12-
@@ -40,6 +40,7 @@ if (NOT RSTUDIO_SESSION_WIN32)
12+
@@ -48,6 +48,7 @@ if (NOT RSTUDIO_SESSION_WIN32)
1313

1414
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/VERSION.in
1515
${CMAKE_CURRENT_BINARY_DIR}/VERSION)
1616
+ set(RSTUDIO_VERSION ${FREEBSD_RSTUDIO_VERSION})
1717

1818
# install root docs
19-
include(CMakeInstallDocs.txt)
19+
include(cmake/install-docs.cmake)
20+
@@ -62,5 +63,5 @@ add_subdirectory(src)
21+
add_subdirectory(src)
22+
23+
# packaging
24+
-add_subdirectory(package)
25+
+#add_subdirectory(package)
26+
Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
1-
--- src/cpp/CMakeLists.txt.orig 2022-12-03 07:38:59 UTC
1+
--- src/cpp/CMakeLists.txt.orig 2024-09-16 17:02:32 UTC
22
+++ src/cpp/CMakeLists.txt
3-
@@ -468,9 +468,9 @@ endif()
3+
@@ -479,10 +479,10 @@ if(UNIX)
44
# find SOCI libraries
55
if(UNIX)
66
if(NOT APPLE AND RSTUDIO_USE_SYSTEM_SOCI)
7-
- find_library(SOCI_CORE_LIB NAMES "libsoci_core.a" "soci_core")
8-
- find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.a" "soci_sqlite3")
9-
- find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.a" "soci_postgresql")
10-
+ find_library(SOCI_CORE_LIB NAMES "libsoci_core.so" "soci_core")
11-
+ find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.so" "soci_sqlite3")
12-
+ find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.so" "soci_postgresql")
13-
if(NOT SOCI_CORE_LIB OR NOT SOCI_SQLITE_LIB OR NOT SOCI_POSTGRESQL_LIB)
14-
message(FATAL_ERROR "Some or all SOCI libraries were not found. Ensure the SOCI dependency is installed and try again.")
7+
- find_library(SOCI_CORE_LIB NAMES "libsoci_core.a" "soci_core" REQUIRED)
8+
- find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.a" "soci_sqlite3" REQUIRED)
9+
+ find_library(SOCI_CORE_LIB NAMES "libsoci_core.so" "soci_core" REQUIRED)
10+
+ find_library(SOCI_SQLITE_LIB NAMES "libsoci_sqlite3.so" "soci_sqlite3" REQUIRED)
11+
if(RSTUDIO_PRO_BUILD)
12+
- find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.a" "soci_postgresql" REQUIRED)
13+
+ find_library(SOCI_POSTGRESQL_LIB NAMES "libsoci_postgresql.so" "soci_postgresql" REQUIRED)
1514
endif()
15+
get_filename_component(SOCI_LIBRARY_DIR "${SOCI_CORE_LIB}" DIRECTORY)
16+
else()

‎devel/RStudio/files/patch-src_cpp_core_CMakeLists.txt‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
--- src/cpp/core/CMakeLists.txt.orig 2022-12-03 07:38:59 UTC
1+
--- src/cpp/core/CMakeLists.txt.orig 2024-09-16 17:02:32 UTC
22
+++ src/cpp/core/CMakeLists.txt
3-
@@ -161,12 +161,14 @@ if (UNIX)
3+
@@ -162,12 +162,14 @@ if (UNIX)
44
# platform introspection
55
check_symbol_exists(SA_NOCLDWAIT "signal.h" HAVE_SA_NOCLDWAIT)
66
check_symbol_exists(SO_PEERCRED "sys/socket.h" HAVE_SO_PEERCRED)

‎devel/RStudio/files/patch-src_cpp_core_include_core_Thread.hpp‎

Lines changed: 0 additions & 12 deletions
This file was deleted.

‎devel/RStudio/files/patch-src_cpp_core_system_PosixChildProcess.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
--- src/cpp/core/system/PosixChildProcess.cpp.orig 2022-12-30 20:28:33 UTC
1+
--- src/cpp/core/system/PosixChildProcess.cpp.orig 2024-09-16 17:02:32 UTC
22
+++ src/cpp/core/system/PosixChildProcess.cpp
33
@@ -28,6 +28,11 @@
44
#include <pty.h>
@@ -12,7 +12,7 @@
1212
#endif
1313

1414
#include <sys/wait.h>
15-
@@ -807,7 +812,7 @@ Error ChildProcess::run()
15+
@@ -812,7 +817,7 @@ Error ChildProcess::run()
1616

1717
if (options_.exitWithParent)
1818
{

‎devel/RStudio/files/patch-src_cpp_core_system_PosixSystem.cpp‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
- one of the patches is a workaround for access to /proc/{pid}/fd : https://github.com/rstudio/rstudio/issues/8912
22

3-
--- src/cpp/core/system/PosixSystem.cpp.orig 2022-12-03 07:38:59 UTC
3+
--- src/cpp/core/system/PosixSystem.cpp.orig 2024-06-04 21:19:10 UTC
44
+++ src/cpp/core/system/PosixSystem.cpp
5-
@@ -56,6 +56,11 @@
6-
#include <dirent.h>
5+
@@ -69,6 +69,11 @@
6+
77
#endif
88

99
+#if defined(__FreeBSD__)
@@ -14,23 +14,23 @@
1414
#include <boost/thread.hpp>
1515
#include <boost/format.hpp>
1616
#include <boost/lexical_cast.hpp>
17-
@@ -619,6 +624,7 @@ Error getOpenFds(std::vector<uint32_t>* pFds)
17+
@@ -633,6 +638,7 @@ Error getOpenFds(pid_t pid, std::vector<uint32_t>* pFd
1818
#ifndef __APPLE__
1919
Error getOpenFds(pid_t pid, std::vector<uint32_t>* pFds)
2020
{
2121
+#if !defined(__FreeBSD__)
2222
std::string pidStr = safe_convert::numberToString(pid);
2323
boost::format fmt("/proc/%1%/fd");
2424
FilePath filePath(boost::str(fmt % pidStr));
25-
@@ -645,6 +651,7 @@ Error getOpenFds(pid_t pid, std::vector<uint32_t>* pFd
25+
@@ -659,6 +665,7 @@ Error getOpenFds(pid_t pid, std::vector<uint32_t>* pFd
2626
pFds->push_back(fd.get());
2727
}
2828
}
2929
+#endif
3030

3131
return Success();
3232
}
33-
@@ -970,7 +977,7 @@ Error executablePath(const char * argv0,
33+
@@ -984,7 +991,7 @@ Error executablePath(const char * argv0,
3434

3535
#elif defined(HAVE_PROCSELF)
3636

‎devel/RStudio/files/patch-src_cpp_desktop_DesktopDownloadItemHelper.cpp‎

Lines changed: 0 additions & 15 deletions
This file was deleted.

0 commit comments

Comments
 (0)