Index: head/devel/RStudio/Makefile
===================================================================
--- head/devel/RStudio/Makefile (revision 495053)
+++ head/devel/RStudio/Makefile (revision 495054)
@@ -1,98 +1,98 @@
# $FreeBSD$
# This port opens too many files during build, more than the default setting.
# Its build is known to succeed with MAX_FILES_RStudio=2048 in poudriere.conf when ports-mgmt/poudriere-devel is used.
PORTNAME= RStudio
DISTVERSIONPREFIX= v
-DISTVERSION= 1.2.679
-PORTREVISION= 8
+DISTVERSION= 1.2.1320
CATEGORIES= devel math java
MASTER_SITES= https://s3.amazonaws.com/rstudio-dictionaries/:dictionaries \
https://s3.amazonaws.com/rstudio-buildtools/:buildtools
DISTFILES= core-dictionaries.zip:dictionaries \
gin-${GIN_VERSION}.zip:buildtools \
gwt-${GWT_VERSION}.zip:buildtools \
mathjax-26.zip:buildtools
MAINTAINER= yuri@FreeBSD.org
COMMENT= Integrated development environment (IDE) for R
LICENSE= GPLv3
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= ant:devel/apache-ant \
${LOCALBASE}/include/sys/sysinfo.h:devel/libsysinfo \
pandoc:textproc/hs-pandoc
LIB_DEPENDS= libR.so:math/R \
libboost_thread.so:devel/boost-libs \
libinotify.so:devel/libinotify \
libuuid.so:misc/e2fsprogs-libuuid
USES= cmake desktop-file-utils fortran pkgconfig qt:5 shared-mime-info ssl
USE_QT= core dbus declarative gui location network opengl printsupport sensors \
sql svg webchannel webengine webkit widgets xml xmlpatterns buildtools_build qmake_build
USE_JAVA= yes
JAVA_BUILD= yes
USE_GITHUB= yes
GH_PROJECT= ${PORTNAME:tl}
GH_TUPLE= rstudio:r2d3:v0.2.0:r2d3/dependencies/common/r2d3 \
rstudio:rmarkdown:aed26ac:rmarkdown/dependencies/common/rmarkdown \
rstudio:rsconnect:03c379b:rsconnect/dependencies/common/rsconnect \
trestletech:plumber:v0.4.6:plumber/dependencies/common/plumber
CMAKE_ARGS= -DRSTUDIO_TARGET=Desktop \
-DFREEBSD_RSTUDIO_VERSION:STRING=${PORTVERSION} \
-DFREEBSD_LIBDIR:STRING=${PREFIX}/lib
CMAKE_ARGS+= -DRSTUDIO_BOOST_SIGNALS_VERSION=2 # until Boost 1.69 or RStudio 1.3
+CMAKE_ARGS+= -DQT_QMAKE_EXECUTABLE:STRING=${QMAKE}
MAKE_ENV= HOME=${WRKDIR} \
ANT_OPTS="-Duser.home=${WRKDIR}"
GWT_VERSION= 2.8.1
GIN_VERSION= 2.1.2
post-extract:
@${MKDIR} ${WRKSRC}/dependencies/common/dictionaries && ${MV} ${WRKDIR}/en_* ${WRKSRC}/dependencies/common/dictionaries/
@${MV} ${WRKDIR}/mathjax-* ${WRKSRC}/dependencies/common/
@${MKDIR} ${WRKSRC}/src/gwt/lib/gwt && ${MV} ${WRKDIR}/gwt-${GWT_VERSION} ${WRKSRC}/src/gwt/lib/gwt/${GWT_VERSION}
@${MKDIR} ${WRKSRC}/src/gwt/lib/gin/${GIN_VERSION} && ${MV} ${WRKDIR}/*.jar ${WRKDIR}/javadoc ${WRKSRC}/src/gwt/lib/gin/${GIN_VERSION}/
post-patch:
@${REINPLACE_CMD} -e ' \
s|target_link_libraries(rstudio|target_link_libraries(rstudio procstat|; \
s|get_filename_component|#get_filename_component|; \
s|set(CMAKE_PREFIX_PATH "$${QT_BIN_DIR}//..//lib//cmake")|set(CMAKE_PREFIX_PATH "${LOCALBASE}/lib/cmake")|; \
s|/usr/share/|${PREFIX}/share/|g' \
${WRKSRC}/src/cpp/desktop/CMakeLists.txt
@${REINPLACE_CMD} -e ' \
s|||' \
${WRKSRC}/src/gwt/build.xml
@${REINPLACE_CMD} -e '\
s|rHomePaths.push_back|//rHomePaths.push_back|; \
s|//rHomePaths.push_back(FilePath("/usr/local/lib/|rHomePaths.push_back(FilePath("${PREFIX}/lib/|' \
${WRKSRC}/src/cpp/core/r_util/RVersionsPosix.cpp
pre-build:
@${CP} ${FILESDIR}/global-setenv.h ${WRKSRC}/src/cpp/desktop/
@${REINPLACE_CMD} -e 's|%%PREFIX%%|${PREFIX}|g' ${WRKSRC}/src/cpp/desktop/global-setenv.h
post-install:
@(echo "#!/bin/sh"; \
echo ""; \
echo "if ! [ -d /proc/curproc ]; then"; \
echo " echo \"${PORTNAME} needs /proc to be mounted as procfs\" >&2"; \
echo " exit 1"; \
echo "fi"; \
echo ""; \
echo "# workaround for the problem that RStudio passes /lib with LD_LIBRARY_PATH that causes the /lib/libgcc_s.so.1 conflict with gcc"; \
echo "LD_PRELOAD=${PREFIX}/lib/gcc${GCC_DEFAULT}/libgcc_s.so ${PREFIX}/lib/rstudio/bin/rstudio \"$$@\"" \
) > ${STAGEDIR}${PREFIX}/bin/rstudio
@${CHMOD} +x ${STAGEDIR}${PREFIX}/bin/rstudio
@${REINPLACE_CMD} -e 's|^Exec=.*/rstudio|Exec=${PREFIX}/bin/rstudio|' ${STAGEDIR}${PREFIX}/share/applications/rstudio.desktop
# Some functions expect the pandoc symlink.
@${MKDIR} ${STAGEDIR}${PREFIX}/lib/rstudio/bin/pandoc
@cd ${STAGEDIR}${PREFIX}/lib/rstudio/bin/pandoc && ${LN} -s ../../../../bin/pandoc
# There is a variability in .js file names due to the use of random numbers, so we use the automatic plist.
@${SETENV} ${CO_ENV} ${SH} ${SCRIPTSDIR}/check-stagedir.sh makeplist | ${GREP} -v ^\/ | ${SED} -e 's|%%WWWDIR%%|www/rstudio|' > ${TMPPLIST}
.include
Index: head/devel/RStudio/distinfo
===================================================================
--- head/devel/RStudio/distinfo (revision 495053)
+++ head/devel/RStudio/distinfo (revision 495054)
@@ -1,19 +1,19 @@
-TIMESTAMP = 1528355181
+TIMESTAMP = 1552019950
SHA256 (core-dictionaries.zip) = 4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494
SIZE (core-dictionaries.zip) = 876339
SHA256 (gin-2.1.2.zip) = b98e704164f54be596779696a3fcd11be5785c9907a99ec535ff6e9525ad5f9a
SIZE (gin-2.1.2.zip) = 1341053
SHA256 (gwt-2.8.1.zip) = 0b7af89fdadb4ec51cdb400ace94637d6fe9ffa401b168e2c3d372392a00a0a7
SIZE (gwt-2.8.1.zip) = 95650299
SHA256 (mathjax-26.zip) = 939a2d7f37e26287970be942df70f3e8f272bac2eb868ce1de18bb95d3c26c71
SIZE (mathjax-26.zip) = 3061588
-SHA256 (RStudio-rstudio-v1.2.679_GH0.tar.gz) = 23c22afd8451f6ab0f7d74310426f20a478d4f4daeaeeb6d74000b91330682fd
-SIZE (RStudio-rstudio-v1.2.679_GH0.tar.gz) = 20143262
+SHA256 (RStudio-rstudio-v1.2.1320_GH0.tar.gz) = d896c2d89476ce1bed2207b3e218f44d0daedd482789e616fe7b4949117301c0
+SIZE (RStudio-rstudio-v1.2.1320_GH0.tar.gz) = 20439887
SHA256 (rstudio-r2d3-v0.2.0_GH0.tar.gz) = 6355a7632134c8c9487056019a9c458db2c98d10388cf66b018d5461d0a947af
SIZE (rstudio-r2d3-v0.2.0_GH0.tar.gz) = 21977747
SHA256 (rstudio-rmarkdown-aed26ac_GH0.tar.gz) = b6f6f48dd9930514204739d8957c2737f0b1d110aebf9f89fa31de10598cb29b
SIZE (rstudio-rmarkdown-aed26ac_GH0.tar.gz) = 2087615
SHA256 (rstudio-rsconnect-03c379b_GH0.tar.gz) = d24b6ee49f32f650f6d10bbfc7b2f61aee258f2fbf45a43c006f9e0a726bcea6
SIZE (rstudio-rsconnect-03c379b_GH0.tar.gz) = 220711
SHA256 (trestletech-plumber-v0.4.6_GH0.tar.gz) = 7bcbfdf5a8a2e3a051d2c673ac5ac51a483ed888afe73116cba7741dbb5f63a6
SIZE (trestletech-plumber-v0.4.6_GH0.tar.gz) = 83332
Index: head/devel/RStudio/files/patch-boost-1.69
===================================================================
--- head/devel/RStudio/files/patch-boost-1.69 (revision 495053)
+++ head/devel/RStudio/files/patch-boost-1.69 (nonexistent)
@@ -1,892 +0,0 @@
-https://github.com/rstudio/rstudio/commit/a60f97073561f638a9c986aef8d58f5cc4cdc6d6
-https://github.com/rstudio/rstudio/commit/48da00661644c5b17897ffebaf975f7b64c52164
-https://github.com/rstudio/rstudio/commit/667db539c925fa25176fe2b5cc0cab105a2eb071
-
---- src/cpp/CMakeLists.txt.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/CMakeLists.txt
-@@ -157,17 +157,14 @@ if(APPLE OR WIN32 OR RSTUDIO_PACKAGE_BUILD)
- endif()
-
- # default Boost versions
--if (WIN32)
-- set(BOOST_VERSION 1.65.1)
--else()
-- set(BOOST_VERSION 1.63.0)
-+if(NOT RSTUDIO_BOOST_REQUESTED_VERSION)
-+ if (WIN32)
-+ set(RSTUDIO_BOOST_REQUESTED_VERSION 1.65.1)
-+ else()
-+ set(RSTUDIO_BOOST_REQUESTED_VERSION 1.63.0)
-+ endif()
- endif()
-
--# override if necessary
--if (RSTUDIO_BOOST_VERSION)
-- set(BOOST_VERSION "${RSTUDIO_BOOST_VERSION}")
--endif()
--
- # disable Boost Signals deprecation warning
- add_definitions(-DBOOST_SIGNALS_NO_DEPRECATION_WARNING)
-
-@@ -195,21 +192,27 @@ if(UNIX)
- # find headers
- set(Boost_USE_STATIC_LIBS ON)
- set(BOOST_INCLUDEDIR ${RSTUDIO_TOOLS_BOOST}/include)
-- find_package(Boost ${BOOST_VERSION} REQUIRED)
-+ find_package(Boost ${RSTUDIO_BOOST_REQUESTED_VERSION} REQUIRED)
-+ if(NOT Boost_VERSION LESS 106900)
-+ list(REMOVE_ITEM BOOST_LIBS signals)
-+ endif()
-
- # define library list manually (find_package doesn't always pick them up)
- set(BOOST_LIB_DIR ${RSTUDIO_TOOLS_BOOST}/lib)
- foreach(BOOST_LIB ${BOOST_LIBS})
- list(APPEND Boost_LIBRARIES ${BOOST_LIB_DIR}/libboost_${BOOST_LIB}.a)
- endforeach()
-- message(STATUS "Using RStudio-provided Boost ${BOOST_VERSION}")
-+ message(STATUS "Using RStudio-provided Boost ${RSTUDIO_BOOST_REQUESTED_VERSION}")
- else()
- add_definitions(-DRSTUDIO_BOOST_NAMESPACE=boost)
-- find_package(Boost ${BOOST_VERSION} REQUIRED COMPONENTS ${BOOST_LIBS})
-- message(STATUS "Using system Boost ${BOOST_VERSION}")
-+ find_package(Boost ${RSTUDIO_BOOST_REQUESTED_VERSION} REQUIRED)
-+ if(NOT Boost_VERSION LESS 106900)
-+ list(REMOVE_ITEM BOOST_LIBS signals)
-+ endif()
-+ find_package(Boost ${RSTUDIO_BOOST_REQUESTED_VERSION} REQUIRED COMPONENTS ${BOOST_LIBS})
- endif()
-
-- # WIN32 BOOST
-+# WIN32 BOOST
- else()
- # hard-code to our own prebuilt boost libs
- add_definitions(-DRSTUDIO_BOOST_NAMESPACE=rstudio_boost)
-@@ -226,14 +229,26 @@ else()
- set(BOOST_ROOT "${RSTUDIO_WINDOWS_DEPENDENCIES_DIR}/boost-1.65.1-win-msvc14-debug-static/boost${BOOST_ARCH}")
- endif()
- set(BOOST_INCLUDEDIR "${BOOST_ROOT}/include/boost-1_65_1")
-- find_package(Boost ${BOOST_VERSION} REQUIRED)
-+ find_package(Boost ${RSTUDIO_BOOST_REQUESTED_VERSION} REQUIRED)
- set(BOOST_LIBRARYDIR "${BOOST_ROOT}/lib")
- foreach(BOOST_LIB ${BOOST_LIBS})
- list(APPEND Boost_LIBRARIES "${BOOST_LIBRARYDIR}/librstudio_boost_${BOOST_LIB}-${BOOST_SUFFIX}")
- endforeach()
-- message(STATUS "Using RStudio-provided Boost ${BOOST_VERSION}: ${BOOST_ROOT}")
-+ message(STATUS "Using RStudio-provided Boost ${RSTUDIO_BOOST_REQUESTED_VERSION}: ${BOOST_ROOT}")
- endif()
-
-+# allow opt-in to using Boost.Signals2
-+# TODO: remove this in RStudio v1.3 and port to signals2
-+if(NOT RSTUDIO_BOOST_SIGNALS_VERSION)
-+ if (Boost_VERSION LESS 106900)
-+ set(RSTUDIO_BOOST_SIGNALS_VERSION 1)
-+ else()
-+ set(RSTUDIO_BOOST_SIGNALS_VERSION 2)
-+ endif()
-+endif()
-+
-+message(STATUS "Using Boost.Signals version ${RSTUDIO_BOOST_SIGNALS_VERSION}")
-+add_definitions(-DRSTUDIO_BOOST_SIGNALS_VERSION=${RSTUDIO_BOOST_SIGNALS_VERSION})
-
- # add boost as system include directory
- include_directories(SYSTEM ${Boost_INCLUDE_DIRS})
---- src/cpp/core/include/core/BoostSignals.hpp.orig 2018-11-02 10:50:59 UTC
-+++ src/cpp/core/include/core/BoostSignals.hpp
-@@ -0,0 +1,40 @@
-+/*
-+ * BoostSignals.hpp
-+ *
-+ * Copyright (C) 2009-18 by RStudio, Inc.
-+ *
-+ * Unless you have received this program directly from RStudio pursuant
-+ * to the terms of a commercial license agreement with RStudio, then
-+ * this program is licensed to you under the terms of version 3 of the
-+ * GNU Affero General Public License. This program is distributed WITHOUT
-+ * ANY EXPRESS OR IMPLIED WARRANTY, INCLUDING THOSE OF NON-INFRINGEMENT,
-+ * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Please refer to the
-+ * AGPL (http://www.gnu.org/licenses/agpl-3.0.txt) for more details.
-+ *
-+ */
-+
-+#ifndef CORE_RSTUDIO_BOOST_SIGNALS_HPP
-+#define CORE_RSTUDIO_BOOST_SIGNALS_HPP
-+
-+#if RSTUDIO_BOOST_SIGNALS_VERSION == 1
-+
-+# include
-+# define RSTUDIO_BOOST_SIGNAL boost::signal
-+# define RSTUDIO_BOOST_CONNECTION boost::signals::connection
-+# define RSTUDIO_BOOST_SCOPED_CONNECTION boost::signals::scoped_connection
-+# define RSTUDIO_BOOST_LAST_VALUE boost::last_value
-+
-+#elif RSTUDIO_BOOST_SIGNALS_VERSION == 2
-+
-+# include
-+# define RSTUDIO_BOOST_SIGNAL boost::signals2::signal
-+# define RSTUDIO_BOOST_CONNECTION boost::signals2::connection
-+# define RSTUDIO_BOOST_SCOPED_CONNECTION boost::signals2::scoped_connection
-+# define RSTUDIO_BOOST_LAST_VALUE boost::signals2::last_value
-+
-+#else
-+# error "Unrecognized RSTUDIO_BOOST_SIGNALS_VERSION"
-+#endif
-+
-+#endif // CORE_RSTUDIO_BOOST_SIGNALS_HPP
-+
---- src/cpp/core/include/core/r_util/RFunctionInformation.hpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/core/include/core/r_util/RFunctionInformation.hpp
-@@ -75,9 +75,9 @@ class FormalInformation (public)
- const std::string& name() const { return name_; }
- const boost::optional& defaultValue() const { return defaultValue_; }
- boost::tribool hasDefault() const { return hasDefault_; }
-- bool isUsed() const { return isUsed_; }
-+ bool isUsed() const { return bool(isUsed_); }
- void setIsUsed(bool value) { isUsed_ = value; }
-- bool isMissingnessHandled() const { return isMissingnessHandled_; }
-+ bool isMissingnessHandled() const { return bool(isMissingnessHandled_); }
- void setMissingnessHandled(bool value) { isMissingnessHandled_ = value; }
-
- private:
-@@ -130,7 +130,7 @@ class FunctionInformation (public)
-
- bool isPrimitive()
- {
-- return isPrimitive_ == true;
-+ return bool(isPrimitive_);
- }
-
- void setIsPrimitive(bool isPrimitive)
---- src/cpp/r/include/r/session/RConsoleHistory.hpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/r/include/r/session/RConsoleHistory.hpp
-@@ -20,8 +20,8 @@
-
- #include
- #include
--#include
-
-+#include
- #include
-
- namespace rstudio {
-@@ -44,7 +44,7 @@ class ConsoleHistory : boost::noncopyable
- public:
- typedef boost::circular_buffer::value_type value_type;
- typedef boost::circular_buffer::const_iterator const_iterator;
-- typedef boost::signal AddSignal;
-+ typedef RSTUDIO_BOOST_SIGNAL AddSignal;
-
- private:
- ConsoleHistory();
-@@ -86,8 +86,7 @@ class ConsoleHistory : boost::noncopyable
- core::Error loadFromFile(const core::FilePath& filePath, bool verifyFile);
- core::Error saveToFile(const core::FilePath& filePath) const;
-
-- boost::signals::connection connectOnAdd(
-- const AddSignal::slot_function_type& slot)
-+ RSTUDIO_BOOST_CONNECTION connectOnAdd(const AddSignal::slot_function_type& slot)
- {
- return onAdd_.connect(slot);
- }
---- src/cpp/r/include/r/session/RGraphics.hpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/r/include/r/session/RGraphics.hpp
-@@ -19,6 +19,8 @@
- #include
- #include
-
-+#include
-+
- namespace rstudio {
- namespace r {
- namespace session {
-@@ -56,8 +58,8 @@ struct is_error_code_enum
-
- #include
--#include
-
-+#include
- #include
- #include
-
-@@ -162,7 +164,7 @@ class Display (public)
- virtual void clear() = 0;
-
- // subscribe to showManipulator event
-- virtual boost::signal& onShowManipulator() = 0;
-+ virtual RSTUDIO_BOOST_SIGNAL& onShowManipulator() = 0;
-
- // set manipulator values
- virtual void setPlotManipulatorValues(const core::json::Object& values) = 0;
---- src/cpp/r/session/graphics/RGraphicsPlotManager.cpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/r/session/graphics/RGraphicsPlotManager.cpp
-@@ -540,7 +540,7 @@ void PlotManager::clear()
-
-
-
--boost::signal& PlotManager::onShowManipulator()
-+RSTUDIO_BOOST_SIGNAL& PlotManager::onShowManipulator()
- {
- return plotManipulatorManager().onShowManipulator();
- }
---- src/cpp/r/session/graphics/RGraphicsPlotManager.hpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/r/session/graphics/RGraphicsPlotManager.hpp
-@@ -22,10 +22,10 @@
- #include
- #include
- #include
--#include
- #include
- #include
-
-+#include
- #include
- #include
-
-@@ -45,10 +45,10 @@ PlotManager& plotManager();
-
- struct GraphicsDeviceEvents
- {
-- boost::signal onNewPage;
-- boost::signal onDrawing;
-- boost::signal onResized;
-- boost::signal onClosed;
-+ RSTUDIO_BOOST_SIGNAL onNewPage;
-+ RSTUDIO_BOOST_SIGNAL onDrawing;
-+ RSTUDIO_BOOST_SIGNAL onResized;
-+ RSTUDIO_BOOST_SIGNAL onClosed;
- };
-
- class PlotManipulatorManager;
-@@ -110,7 +110,7 @@ class PlotManager : boost::noncopyable, public r::sess
-
- virtual void clear();
-
-- virtual boost::signal& onShowManipulator() ;
-+ virtual RSTUDIO_BOOST_SIGNAL& onShowManipulator() ;
- virtual void setPlotManipulatorValues(const core::json::Object& values);
- virtual void manipulatorPlotClicked(int x, int y);
-
---- src/cpp/r/session/graphics/RGraphicsPlotManipulatorManager.cpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/r/session/graphics/RGraphicsPlotManipulatorManager.cpp
-@@ -184,7 +184,7 @@ Error PlotManipulatorManager::initialize(
- }
-
-
--boost::signal& PlotManipulatorManager::onShowManipulator()
-+RSTUDIO_BOOST_SIGNAL& PlotManipulatorManager::onShowManipulator()
- {
- return onShowManipulator_;
- }
---- src/cpp/r/session/graphics/RGraphicsPlotManipulatorManager.hpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/r/session/graphics/RGraphicsPlotManipulatorManager.hpp
-@@ -16,8 +16,7 @@
- #ifndef R_SESSION_GRAPHICS_PLOT_MANIPULATOR_MANAGER_HPP
- #define R_SESSION_GRAPHICS_PLOT_MANIPULATOR_MANAGER_HPP
-
--#include
--
-+#include
- #include
- #include
-
-@@ -53,7 +52,7 @@ class PlotManipulatorManager : boost::noncopyable (pub
- public:
- core::Error initialize(const UnitConversionFunctions& convert);
-
-- boost::signal& onShowManipulator() ;
-+ RSTUDIO_BOOST_SIGNAL& onShowManipulator() ;
- void setPlotManipulatorValues(const core::json::Object& values);
- void manipulatorPlotClicked(int x, int y);
-
-@@ -85,7 +84,7 @@ class PlotManipulatorManager : boost::noncopyable (pub
- bool replayingManipulator_;
-
- // manipulator event hook
-- boost::signal onShowManipulator_;
-+ RSTUDIO_BOOST_SIGNAL onShowManipulator_;
-
- // unit conversion function
- UnitConversionFunctions convert_;
---- src/cpp/server/include/server/ServerSessionManager.hpp.orig 2018-05-31 21:11:21 UTC
-+++ src/cpp/server/include/server/ServerSessionManager.hpp
-@@ -20,9 +20,9 @@
- #include
- #include