sci-mathematics/rstudio: fix missing slashes
authorThomas Deutschmann <whissi@gentoo.org>
Thu, 22 Aug 2019 10:56:40 +0000 (12:56 +0200)
committerThomas Deutschmann <whissi@gentoo.org>
Thu, 22 Aug 2019 11:01:46 +0000 (13:01 +0200)
Package-Manager: Portage-2.3.72, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <whissi@gentoo.org>
sci-mathematics/rstudio/rstudio-1.2.1335.ebuild

index 4ff5da665091c10bc57e0f6430e43af23383513b..81591d93861707b6f9c704947b031580c71644b3 100644 (file)
@@ -162,12 +162,12 @@ src_prepare() {
                CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die
 
        # On Gentoo the rstudio-server configuration file is /etc/conf.d/rstudio-server.conf
-       sed -e "s@/etc/rstudio/rserver.conf@${EROOT}etc/conf.d/rstudio-server.conf@" \
+       sed -e "s@/etc/rstudio/rserver.conf@${EROOT}/etc/conf.d/rstudio-server.conf@" \
                -i src/cpp/server/ServerOptions.cpp \
                || die
 
        # Set the rsession.conf file location for Gentoo prefix
-       sed -e "s@/etc/rstudio/rsession.conf@${EROOT}etc/rstudio/rsession.conf@" \
+       sed -e "s@/etc/rstudio/rsession.conf@${EROOT}/etc/rstudio/rsession.conf@" \
                -i src/cpp/session/SessionOptions.cpp \
                || die
 
@@ -223,7 +223,7 @@ src_install() {
        dodir /etc/rstudio
        insinto /etc/rstudio
        doins "${FILESDIR}"/rsession.conf
-       dosym "${ROOT}etc/conf.d/rstudio-server.conf" "${ROOT}etc/rstudio/rserver.conf"
+       dosym "${ED}/etc/conf.d/rstudio-server.conf" "/etc/rstudio/rserver.conf"
        if use dedicated || use server; then
                dopamd src/cpp/server/extras/pam/rstudio
                newinitd "${FILESDIR}"/rstudio-server.initd rstudio-server