/[gentoo-x86]/sci-mathematics/rstudio/rstudio-0.97.318.ebuild
Gentoo

Contents of /sci-mathematics/rstudio/rstudio-0.97.318.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Sat Dec 6 12:32:01 2014 UTC (5 years, 2 months ago) by gienah
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
Bump rstudio to 0.98.1091. Fix Bug 519290 sci-mathematics/rstudio-0.98.490 - rstudio-server start: /usr/bin/rstudio-server: 1: eval: /etc/init.d/rstudio-server: not found, thanks to Franz Fellner for reporting, Adam Tygart and Franz Fellner for suggesting the fix, Silvio for testing. Fix Bug 522196 - sci-mathematics/rstudio lack of server part and two more conf files, thanks to Silvio for reporting and providing the conf files. Fix Bug 523296 - sci-mathematics/rstudio-0.98-1028 with dev-libs/boost-1.56.0 - .../work/rstudio-0.98.1028/src/cpp/core/Assert.cpp:40:10: error: boost::core::log has not been declared. paxmark m rstudio for Gentoo Hardened. Add missing dependencies app-text/pandoc and dev-haskell/pandoc-citeproc to rstudio-0.98.1028.ebuild. Remove obsolete rstudio-0.97.318.ebuild, as the this failed to build in my tests.

(Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 618E971F)

1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/rstudio-0.97.318.ebuild,v 1.2 2013/03/02 23:25:58 hwoarang Exp $
4
5 EAPI=5
6
7 inherit eutils user cmake-utils gnome2-utils pam versionator fdo-mime java-pkg-2
8
9 # TODO
10 # * package gin and gwt
11 # * use dict from tree, linguas
12 # * do src_test (use junit from tree?)
13 # * fix the about/help/menu and get rid of license
14
15 GWTVER=2.5.0.rc1
16 GINVER=1.5
17
18 DESCRIPTION="IDE for the R language"
19 HOMEPAGE="http://www.rstudio.org"
20 SRC_URI="https://github.com/rstudio/rstudio/archive/v${PV}.tar.gz -> ${P}.tar.gz
21 https://s3.amazonaws.com/rstudio-buildtools/gin-${GINVER}.zip
22 https://s3.amazonaws.com/rstudio-buildtools/gwt-${GWTVER}.zip
23 https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip"
24
25 LICENSE="AGPL-3"
26 SLOT="0"
27 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
28 IUSE="dedicated server"
29
30 QTVER=4.8
31 QTSLOT=4
32 RDEPEND=">=dev-lang/R-2.11.1
33 >=dev-libs/boost-1.50
34 dev-libs/mathjax
35 dev-libs/openssl
36 >=virtual/jre-1.5
37 x11-libs/pango
38 !dedicated? (
39 >=dev-qt/qtcore-${QTVER}:${QTSLOT}
40 >=dev-qt/qtdbus-${QTVER}:${QTSLOT}
41 >=dev-qt/qtgui-${QTVER}:${QTSLOT}
42 >=dev-qt/qtwebkit-${QTVER}:${QTSLOT}
43 >=dev-qt/qtxmlpatterns-${QTVER}:${QTSLOT}
44 server? ( virtual/pam )
45 )
46 dedicated? ( virtual/pam )"
47 DEPEND="${RDEPEND}
48 app-arch/unzip
49 dev-java/ant-core
50 >=virtual/jdk-1.5
51 virtual/pkgconfig"
52 # test? ( dev-java/junit:4 )
53
54 src_unpack() {
55 unpack ${P}.tar.gz gwt-${GWTVER}.zip
56 cd "${S}" || die
57 mkdir -p src/gwt/lib/{gin,gwt} dependencies/common/dictionaries || die
58 mv ../gwt-${GWTVER} src/gwt/lib/gwt/${GWTVER} || die
59 unzip -qd src/gwt/lib/gin/${GINVER} "${DISTDIR}"/gin-${GINVER}.zip || die
60 unzip -qd dependencies/common/dictionaries "${DISTDIR}"/core-dictionaries.zip || die
61 }
62
63 src_prepare() {
64 java-pkg-2_src_prepare
65
66 find . -name .gitignore -delete || die
67
68 epatch "${FILESDIR}"/${P}-prefs.patch \
69 "${FILESDIR}"/${P}-paths.patch \
70 "${FILESDIR}"/${P}-linker_flags.patch
71
72 # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using
73 # this sed hack for now. ~RMH
74 sed -i \
75 -e "s|DISTRO_SHARE|\"share/${PN}\"|g" \
76 src/cpp/server/ServerOptions.cpp \
77 src/cpp/session/SessionOptions.cpp || die
78
79 # use mathjax from system
80 ln -sf "${EPREFIX}"/usr/share/mathjax dependencies/common/mathjax || die
81
82 # make sure icons and mime stuff are with prefix
83 sed -i \
84 -e "s:/usr:${EPREFIX}/usr:g" \
85 CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die
86 }
87
88 src_configure() {
89 export RSTUDIO_VERSION_MAJOR=$(get_version_component_range 1)
90 export RSTUDIO_VERSION_MINOR=$(get_version_component_range 2)
91 export RSTUDIO_VERSION_PATCH=$(get_version_component_range 3)
92
93 local mycmakeargs=(
94 -DDISTRO_SHARE=share/${PN}
95 $(cmake-utils_use !dedicated RSTUDIO_INSTALL_FREEDESKTOP)
96 -DRSTUDIO_TARGET=$(usex dedicated "Server" "$(usex server "All" "Desktop")")
97 )
98
99 cmake-utils_src_configure
100 }
101
102 src_compile() {
103 cmake-utils_src_compile
104 }
105
106 src_install() {
107 cmake-utils_src_install
108 if use dedicated || use server; then
109 dopamd src/cpp/server/extras/pam/rstudio
110 newinitd "${FILESDIR}"/rstudio-rserver.initd rstudio-rserver
111 fi
112 }
113
114 pkg_preinst() {
115 use dedicated || gnome2_icon_savelist
116 java-pkg-2_pkg_preinst
117 }
118
119 pkg_postinst() {
120 use dedicated || { fdo-mime_desktop_database_update
121 fdo-mime_mime_database_update
122 gnome2_icon_cache_update ;}
123
124 if use dedicated || use server; then
125 enewgroup rstudio-server
126 enewuser rstudio-server -1 -1 -1 rstudio-server
127 fi
128 }
129
130 pkg_postrm() {
131 use dedicated || { fdo-mime_desktop_database_update
132 fdo-mime_mime_database_update
133 gnome2_icon_cache_update ;}
134 }

  ViewVC Help
Powered by ViewVC 1.1.20