Gentoo Archives: gentoo-commits

From: Mark Wright <gienah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/rstudio/files/, sci-mathematics/rstudio/
Date: Fri, 29 Jan 2016 04:59:53
Message-Id: 1454041067.53d873715b54186cbcced5c32bfdd8380a4a1508.gienah@gentoo
1 commit: 53d873715b54186cbcced5c32bfdd8380a4a1508
2 Author: Matthew Brewer <tomboy64 <AT> sina <DOT> cn>
3 AuthorDate: Fri Jan 29 04:17:47 2016 +0000
4 Commit: Mark Wright <gienah <AT> gentoo <DOT> org>
5 CommitDate: Fri Jan 29 04:17:47 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=53d87371
7
8 sci-mathematics/rstudio: install systemd service unit for rstudio-server into proper directory (bug #534152)
9
10 Package-Manager: portage-2.2.26
11 RepoMan-Options: --ignore-arches
12
13 .../rstudio/files/rstudio-0.99.486-systemd.patch | 22 ++++++++++++++++++++++
14 .../rstudio/files/rstudio-server.service.in | 10 ++++++++++
15 ...-0.99.486.ebuild => rstudio-0.99.486-r1.ebuild} | 7 ++++++-
16 3 files changed, 38 insertions(+), 1 deletion(-)
17
18 diff --git a/sci-mathematics/rstudio/files/rstudio-0.99.486-systemd.patch b/sci-mathematics/rstudio/files/rstudio-0.99.486-systemd.patch
19 new file mode 100644
20 index 0000000..4c7eda3
21 --- /dev/null
22 +++ b/sci-mathematics/rstudio/files/rstudio-0.99.486-systemd.patch
23 @@ -0,0 +1,22 @@
24 +diff -Naur /tmp/rstudio.org/work/rstudio-0.99.486/src/cpp/server/CMakeLists.txt ./work/rstudio-0.99.486/src/cpp/server/CMakeLists.txt
25 +--- /tmp/rstudio.org/work/rstudio-0.99.486/src/cpp/server/CMakeLists.txt 2015-12-10 19:29:24.408267862 +0100
26 ++++ ./work/rstudio-0.99.486/src/cpp/server/CMakeLists.txt 2015-12-10 19:35:24.660194216 +0100
27 +@@ -208,17 +208,12 @@
28 + DESTINATION ${DISTRO_SHARE}/${RSERVER_UPSTART_DIR})
29 +
30 + # install configured systemd profile
31 +- set(RSERVER_SYSTEMD_DIR "extras/systemd")
32 ++ set(RSERVER_SYSTEMD_DIR "lib/systemd/system")
33 + set(RSERVER_SYSTEMD_PROFILE "${RSERVER_SYSTEMD_DIR}/rstudio-server.service")
34 + configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${RSERVER_SYSTEMD_PROFILE}.in
35 + ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE})
36 + install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE}
37 + DESTINATION ${RSERVER_SYSTEMD_DIR})
38 +- set(RSERVER_SYSTEMD_PROFILE_REDHAT "${RSERVER_SYSTEMD_DIR}/rstudio-server.redhat.service")
39 +- configure_file(${CMAKE_CURRENT_SOURCE_DIR}/${RSERVER_SYSTEMD_PROFILE_REDHAT}.in
40 +- ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE_REDHAT})
41 +- install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${RSERVER_SYSTEMD_PROFILE_REDHAT}
42 +- DESTINATION ${RSERVER_SYSTEMD_DIR})
43 +
44 + endif()
45 +
46
47 diff --git a/sci-mathematics/rstudio/files/rstudio-server.service.in b/sci-mathematics/rstudio/files/rstudio-server.service.in
48 new file mode 100644
49 index 0000000..fb3e373
50 --- /dev/null
51 +++ b/sci-mathematics/rstudio/files/rstudio-server.service.in
52 @@ -0,0 +1,10 @@
53 +[Unit]
54 +Description=RStudio Server
55 +
56 +[Service]
57 +Type=forking
58 +ExecStart=${CMAKE_INSTALL_PREFIX}/bin/rserver
59 +Restart=on-failure
60 +
61 +[Install]
62 +WantedBy=multi-user.target
63
64 diff --git a/sci-mathematics/rstudio/rstudio-0.99.486.ebuild b/sci-mathematics/rstudio/rstudio-0.99.486-r1.ebuild
65 similarity index 96%
66 rename from sci-mathematics/rstudio/rstudio-0.99.486.ebuild
67 rename to sci-mathematics/rstudio/rstudio-0.99.486-r1.ebuild
68 index 3682c5c..c5b11ff 100644
69 --- a/sci-mathematics/rstudio/rstudio-0.99.486.ebuild
70 +++ b/sci-mathematics/rstudio/rstudio-0.99.486-r1.ebuild
71 @@ -130,7 +130,12 @@ src_prepare() {
72 "${FILESDIR}"/${PN}-0.99.473-clang-pandoc.patch \
73 "${FILESDIR}"/${PN}-0.98.490-linker_flags.patch \
74 "${FILESDIR}"/${PN}-0.98.1091-boost-1.57.patch \
75 - "${FILESDIR}"/${PN}-0.99.473-qtsingleapplication.patch
76 + "${FILESDIR}"/${PN}-0.99.473-qtsingleapplication.patch \
77 + "${FILESDIR}"/${PN}-0.99.486-systemd.patch
78 +
79 + # Enable CMake to install our .service file for systemd usage
80 + mkdir -vp "${S}/src/cpp/server/lib/systemd/system" || die
81 + cp -v "${FILESDIR}/rstudio-server.service.in" "${S}/src/cpp/server/lib/systemd/system/" || die
82
83 # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using
84 # this sed hack for now. ~RMH