# This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # devel/rstudio/ # devel/rstudio/Makefile # devel/rstudio/distinfo # devel/rstudio/pkg-descr # devel/rstudio/files # devel/rstudio/files/patch-src__cpp__server__CMakeLists.txt # devel/rstudio/files/patch-src__cpp__core__include__core__r_util__RTokenizer.hpp # devel/rstudio/files/patch-src__cpp__core__system__PosixChildProcess.cpp # devel/rstudio/files/patch-src__cpp__core__system__PosixSystem.cpp # devel/rstudio/files/patch-src__cpp__core__CMakeLists.txt # devel/rstudio/files/patch-CMakeGlobals.txt # echo c - devel/rstudio/ mkdir -p devel/rstudio/ > /dev/null 2>&1 echo x - devel/rstudio/Makefile sed 's/^X//' >devel/rstudio/Makefile << '251ca172736335180074e3003013e5c0' X# Created by: Ryan Steinmetz X# $FreeBSD$ X XPORTNAME= rstudio XDISTVERSION= v0.98.490 XCATEGORIES= devel java XMASTER_SITES+= https://s3.amazonaws.com/rstudio-dictionaries/:dictionaries \ X https://s3.amazonaws.com/rstudio-buildtools/:buildtools \ X http://mirrors.rit.edu/zi/:DEFAULT,dictionaries,buildtools XDISTFILES+= ${DISTVERSION}.tar.gz \ X mathjax-${JAXVER}.zip:buildtools \ X gwt-${GWTVER}.zip:buildtools \ X gin-${GINVER}.zip:buildtools \ X core-dictionaries.zip:dictionaries XDIST_SUBDIR= ${PORTNAME} XEXTRACT_ONLY= ${DISTVERSION}.tar.gz gwt-${GWTVER}.zip X XMAINTAINER= zi@FreeBSD.org XCOMMENT= The premier integrated development environment for R X XLICENSE= AGPLv3 X XEXTRACT_DEPENDS=unzip>0:${PORTSDIR}/archivers/unzip XRUN_DEPENDS= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R XBUILD_DEPENDS= ${LOCALBASE}/bin/R:${PORTSDIR}/math/R \ X ant:${PORTSDIR}/devel/apache-ant XLIB_DEPENDS= libboost_system.so:${PORTSDIR}/devel/boost-libs \ X libuuid.so:${PORTSDIR}/misc/e2fsprogs-libuuid \ X libinotify.so:${PORTSDIR}/devel/libinotify X XUSE_GITHUB= yes XGH_ACCOUNT= rstudio XGH_PROJECT= ${PORTNAME} XGH_TAGNAME= ${DISTVERSION} XGH_COMMIT= 79af91e X XGINVER= 1.5 XGWTVER= 2.5.1 XJAXVER= 20 X XUSE_GCC= yes XUSE_FORTRAN= yes XUSE_JAVA= yes XJAVA_BUILD= yes XUSES= cmake:outsource XCMAKE_ARGS+= -DRSTUDIO_TARGET=Server -DCMAKE_BUILD_TYPE=Release \ X -DRSTUDIO_INSTALL_SUPPORTING=${PREFIX}/lib \ X -DRSTUDIO_INSTALL_BIN=${PREFIX}/sbin XNO_STAGE= yes X XGINFILES= LICENSE README aopalliance.jar gin-${GINVER}-post-gwt-2.2.jar \ X gin-${GINVER}-pre-gwt-2.2.jar guice-assistedinject-snapshot.jar \ X guice-snapshot.jar javadoc javax.inject.jar XDICTIONARIES= en_AU.aff en_AU.dic en_AU.dic_delta en_CA.aff en_CA.dic \ X en_CA.dic_delta en_GB.aff en_GB.dic en_GB.dic_delta \ X en_US.aff en_US.dic en_US.dic_delta X Xpost-extract: X @${MKDIR} ${WRKSRC}/src/gwt/lib/gin ${WRKSRC}/src/gwt/lib/gwt X @${LN} -sf ${WRKDIR}/gwt-${GWTVER} ${WRKSRC}/src/gwt/lib/gwt/${GWTVER} X @${UNZIP_CMD} -qo -d ${WRKSRC}/dependencies/common \ X ${_DISTDIR}/mathjax-${JAXVER}.zip X @${UNZIP_CMD} -qo -d ${WRKSRC}/dependencies/common/dictionaries \ X ${_DISTDIR}/core-dictionaries.zip X @${UNZIP_CMD} -qo -d ${WRKSRC}/src/gwt/lib/gin/${GINVER} \ X ${_DISTDIR}/gin-${GINVER}.zip X X.include 251ca172736335180074e3003013e5c0 echo x - devel/rstudio/distinfo sed 's/^X//' >devel/rstudio/distinfo << 'ca81feb1cde858e67fe1ecc0d727bf30' XSHA256 (rstudio/v0.98.490.tar.gz) = d0ed05390c44f29f688477b709cec5510fba217fef79afd996458735defef1cc XSIZE (rstudio/v0.98.490.tar.gz) = 14989635 XSHA256 (rstudio/mathjax-20.zip) = 547d823d0c9cce41012009b96889905261ae9a1b85a1ed04cc4e6705a11b6fc6 XSIZE (rstudio/mathjax-20.zip) = 1649461 XSHA256 (rstudio/gwt-2.5.1.zip) = c457df45a3eed582452c5784ed11746685df494c0ffe4a8ae4de52945916593a XSIZE (rstudio/gwt-2.5.1.zip) = 111070580 XSHA256 (rstudio/gin-1.5.zip) = f561f4eb5d5fe1cff95c881e6aed53a86e9f0de8a52863295a8600375f96ab94 XSIZE (rstudio/gin-1.5.zip) = 1055663 XSHA256 (rstudio/core-dictionaries.zip) = 4341a9630efb9dcf7f215c324136407f3b3d6003e1c96f2e5e1f9f14d5787494 XSIZE (rstudio/core-dictionaries.zip) = 876339 ca81feb1cde858e67fe1ecc0d727bf30 echo x - devel/rstudio/pkg-descr sed 's/^X//' >devel/rstudio/pkg-descr << '4e068c43cf189f5da40ffa31d3d9cf01' XRStudio is the premier integrated development environment for R. X XWWW: http://www.rstudio.com/ide/ 4e068c43cf189f5da40ffa31d3d9cf01 echo c - devel/rstudio/files mkdir -p devel/rstudio/files > /dev/null 2>&1 echo x - devel/rstudio/files/patch-src__cpp__server__CMakeLists.txt sed 's/^X//' >devel/rstudio/files/patch-src__cpp__server__CMakeLists.txt << '2414d3ed83a5563541cac7b8b129272d' X--- ./src/cpp/server/CMakeLists.txt.orig 2013-12-13 18:38:16.000000000 -0500 X+++ ./src/cpp/server/CMakeLists.txt 2013-12-13 18:38:42.000000000 -0500 X@@ -130,7 +130,7 @@ X # install binary X install(TARGETS rserver DESTINATION ${RSTUDIO_INSTALL_BIN}) X X-if (UNIX AND NOT APPLE) X+if (UNIX AND NOT APPLE AND NOT (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")) X X # install configured admin script X set(RSERVER_ADMIN_SCRIPT "extras/admin/rstudio-server") 2414d3ed83a5563541cac7b8b129272d echo x - devel/rstudio/files/patch-src__cpp__core__include__core__r_util__RTokenizer.hpp sed 's/^X//' >devel/rstudio/files/patch-src__cpp__core__include__core__r_util__RTokenizer.hpp << '6f7312c077e976ecef3a3ca96bd71d2f' X--- ./src/cpp/core/include/core/r_util/RTokenizer.hpp.orig 2013-12-13 11:17:24.000000000 -0500 X+++ ./src/cpp/core/include/core/r_util/RTokenizer.hpp 2013-12-13 11:17:41.000000000 -0500 X@@ -25,7 +25,7 @@ X #include X X // On Linux confirm that wchar_t is Unicode X-#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__STDC_ISO_10646__) X+#if !defined(_WIN32) && !defined(__APPLE__) && !defined(__FreeBSD__) && !defined(__STDC_ISO_10646__) X #error "wchar_t is not Unicode" X #endif X 6f7312c077e976ecef3a3ca96bd71d2f echo x - devel/rstudio/files/patch-src__cpp__core__system__PosixChildProcess.cpp sed 's/^X//' >devel/rstudio/files/patch-src__cpp__core__system__PosixChildProcess.cpp << 'b33d144792907fd3cdef1ffbcec137ac' X--- ./src/cpp/core/system/PosixChildProcess.cpp.orig 2013-12-13 11:18:24.000000000 -0500 X+++ ./src/cpp/core/system/PosixChildProcess.cpp 2013-12-13 11:19:09.000000000 -0500 X@@ -23,6 +23,11 @@ X #include X #include X #include X+#elif defined __FreeBSD__ X+#include X+#include X+#include X+#include X #else X #include X #include b33d144792907fd3cdef1ffbcec137ac echo x - devel/rstudio/files/patch-src__cpp__core__system__PosixSystem.cpp sed 's/^X//' >devel/rstudio/files/patch-src__cpp__core__system__PosixSystem.cpp << '4c05efb2577cfc0d371c1a8787dc6ff7' X--- ./src/cpp/core/system/PosixSystem.cpp.orig 2013-12-13 11:20:43.000000000 -0500 X+++ ./src/cpp/core/system/PosixSystem.cpp 2013-12-13 11:23:44.000000000 -0500 X@@ -38,6 +38,11 @@ X #include X #endif X X+#ifdef __FreeBSD__ X+#include X+#include X+#endif X+ X #include X #include X #include X@@ -638,6 +643,20 @@ X // set it X executablePath = std::string(&(buffer[0])); X X+#elif defined(__FreeBSD__) X+ // use the KERN_PROC_PATHNAME sysctl mib to get path to current executable X+ int mib[4]; X+ mib[0] = CTL_KERN; X+ mib[1] = KERN_PROC; X+ mib[2] = KERN_PROC_PATHNAME; X+ mib[3] = -1; X+ X+ size_t bufSize = 2048; X+ char buffer[bufSize]; X+ sysctl(mib, 4, buffer, &bufSize, NULL, 0); X+ X+ // set it X+ executablePath = std::string(&(buffer[0])); X X #elif defined(HAVE_PROCSELF) X 4c05efb2577cfc0d371c1a8787dc6ff7 echo x - devel/rstudio/files/patch-src__cpp__core__CMakeLists.txt sed 's/^X//' >devel/rstudio/files/patch-src__cpp__core__CMakeLists.txt << '9c73f82cda775e68d0f72f5989048c33' X--- ./src/cpp/core/CMakeLists.txt.orig 2013-12-13 14:50:22.000000000 -0500 X+++ ./src/cpp/core/CMakeLists.txt 2013-12-13 14:52:22.000000000 -0500 X@@ -123,6 +123,12 @@ X check_symbol_exists(SA_NOCLDWAIT "signal.h" HAVE_SA_NOCLDWAIT) X check_symbol_exists(SO_PEERCRED "sys/socket.h" HAVE_SO_PEERCRED) X check_function_exists(inotify_init1 HAVE_INOTIFY_INIT1) X+ # FreeBSD has an inotify-compatible interface to kqueue X+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") X+ find_library(INOTIFY_LIBRARIES NAMES inotify HINTS /usr/local/lib) X+ else() X+ check_function_exists(inotify_init1 HAVE_INOTIFY_INIT1) X+ endif() X check_function_exists(getpeereid HAVE_GETPEEREID) X check_function_exists(setresuid HAVE_SETRESUID) X if(EXISTS "/proc/self") X@@ -155,6 +161,10 @@ X ${CORE_SERVICES_LIBRARY} X ) X X+ if(${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD") X+ set(CORE_SYSTEM_LIBRARIES ${CORE_SYSTEM_LIBRARIES} ${INOTIFY_LIBRARIES}) X+ endif() X+ X if(RSTUDIO_SERVER) X find_package(OpenSSL REQUIRED QUIET) X find_package(PAM REQUIRED) 9c73f82cda775e68d0f72f5989048c33 echo x - devel/rstudio/files/patch-CMakeGlobals.txt sed 's/^X//' >devel/rstudio/files/patch-CMakeGlobals.txt << 'f6c7e1db80d3b17fdae05f0f458923ef' X--- ./CMakeGlobals.txt.orig 2013-12-13 18:25:39.000000000 -0500 X+++ ./CMakeGlobals.txt 2013-12-13 18:37:58.000000000 -0500 X@@ -99,7 +99,7 @@ X if (APPLE AND RSTUDIO_DESKTOP) X set(RSTUDIO_INSTALL_BIN RStudio.app/Contents/MacOS) X set(RSTUDIO_INSTALL_SUPPORTING RStudio.app/Contents/Resources) X-else() X+elseif(NOT (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")) X if (RSTUDIO_SESSION_WIN64) X set(RSTUDIO_INSTALL_BIN x64) X else() X@@ -113,7 +113,7 @@ X if(${CMAKE_INSTALL_PREFIX} STREQUAL "/usr/local") X if(APPLE AND RSTUDIO_DESKTOP) X set(CMAKE_INSTALL_PREFIX "/Applications") X- else() X+ elseif(NOT (${CMAKE_SYSTEM_NAME} MATCHES "FreeBSD")) X if(RSTUDIO_DESKTOP) X set(CMAKE_INSTALL_PREFIX "/usr/local/lib/rstudio") X else() f6c7e1db80d3b17fdae05f0f458923ef exit