From: | "Julian Ospald (hasufell)" <hasufell@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sci-mathematics/rstudio: ChangeLog rstudio-0.98.953.ebuild |
Date: | Fri, 04 Jul 2014 14:08:20 |
Message-Id: | 20140704140816.C1E5E2004E@flycatcher.gentoo.org |
1 | hasufell 14/07/04 14:08:16 |
2 | |
3 | Modified: ChangeLog |
4 | Added: rstudio-0.98.953.ebuild |
5 | Log: |
6 | another version bump |
7 | |
8 | (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key BDEED020) |
9 | |
10 | Revision Changes Path |
11 | 1.11 sci-mathematics/rstudio/ChangeLog |
12 | |
13 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/ChangeLog?rev=1.11&view=markup |
14 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/ChangeLog?rev=1.11&content-type=text/plain |
15 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/ChangeLog?r1=1.10&r2=1.11 |
16 | |
17 | Index: ChangeLog |
18 | =================================================================== |
19 | RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/ChangeLog,v |
20 | retrieving revision 1.10 |
21 | retrieving revision 1.11 |
22 | diff -u -r1.10 -r1.11 |
23 | --- ChangeLog 4 Jul 2014 13:53:22 -0000 1.10 |
24 | +++ ChangeLog 4 Jul 2014 14:08:16 -0000 1.11 |
25 | @@ -1,6 +1,11 @@ |
26 | # ChangeLog for sci-mathematics/rstudio |
27 | # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 |
28 | -# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/ChangeLog,v 1.10 2014/07/04 13:53:22 hasufell Exp $ |
29 | +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/ChangeLog,v 1.11 2014/07/04 14:08:16 hasufell Exp $ |
30 | + |
31 | +*rstudio-0.98.953 (04 Jul 2014) |
32 | + |
33 | + 04 Jul 2014; Julian Ospald <hasufell@g.o> +rstudio-0.98.953.ebuild: |
34 | + another version bump |
35 | |
36 | *rstudio-0.98.932 (04 Jul 2014) |
37 | |
38 | |
39 | |
40 | |
41 | 1.1 sci-mathematics/rstudio/rstudio-0.98.953.ebuild |
42 | |
43 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.953.ebuild?rev=1.1&view=markup |
44 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.953.ebuild?rev=1.1&content-type=text/plain |
45 | |
46 | Index: rstudio-0.98.953.ebuild |
47 | =================================================================== |
48 | # Copyright 1999-2014 Gentoo Foundation |
49 | # Distributed under the terms of the GNU General Public License v2 |
50 | # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.953.ebuild,v 1.1 2014/07/04 14:08:16 hasufell Exp $ |
51 | |
52 | EAPI=5 |
53 | |
54 | inherit eutils user cmake-utils gnome2-utils pam versionator fdo-mime java-pkg-2 |
55 | |
56 | # TODO |
57 | # * package gin and gwt |
58 | # * use dict from tree, linguas |
59 | # * do src_test (use junit from tree?) |
60 | |
61 | GWTVER=2.6.0 |
62 | GINVER=1.5 |
63 | SELENIUMVER=2.37.0 |
64 | CHROMEDRIVER_VER=2.7 |
65 | PANDOC_VER=1.12.3 |
66 | PACKRAT_VER=0.3.0 |
67 | RMARKDOWN_VER=0.2.49 |
68 | |
69 | DESCRIPTION="IDE for the R language" |
70 | HOMEPAGE="http://www.rstudio.org" |
71 | SRC_URI="https://github.com/rstudio/rstudio/archive/v${PV}.tar.gz -> ${P}.tar.gz |
72 | https://s3.amazonaws.com/rstudio-buildtools/gin-${GINVER}.zip |
73 | https://s3.amazonaws.com/rstudio-buildtools/gwt-${GWTVER}.zip |
74 | https://s3.amazonaws.com/rstudio-buildtools/selenium-java-${SELENIUMVER}.zip |
75 | https://s3.amazonaws.com/rstudio-buildtools/selenium-server-standalone-${SELENIUMVER}.jar |
76 | https://s3.amazonaws.com/rstudio-buildtools/chromedriver-linux |
77 | https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip |
78 | http://dev.gentoo.org/~hasufell/distfiles/packrat_${PACKRAT_VER}.tar.gz |
79 | http://dev.gentoo.org/~hasufell/distfiles/rmarkdown_${RMARKDOWN_VER}.tar.gz" |
80 | |
81 | LICENSE="AGPL-3" |
82 | SLOT="0" |
83 | KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" |
84 | IUSE="dedicated server" |
85 | |
86 | QTVER=4.8 |
87 | QTSLOT=4 |
88 | RDEPEND=" |
89 | app-text/pandoc |
90 | dev-haskell/pandoc-citeproc |
91 | >=dev-lang/R-2.11.1 |
92 | >=dev-libs/boost-1.50 |
93 | dev-libs/mathjax |
94 | dev-libs/openssl:0 |
95 | sys-apps/util-linux |
96 | sys-libs/zlib |
97 | >=virtual/jre-1.5 |
98 | x11-libs/pango |
99 | !dedicated? ( |
100 | >=dev-qt/qtcore-${QTVER}:${QTSLOT} |
101 | >=dev-qt/qtdbus-${QTVER}:${QTSLOT} |
102 | >=dev-qt/qtgui-${QTVER}:${QTSLOT} |
103 | >=dev-qt/qtwebkit-${QTVER}:${QTSLOT} |
104 | >=dev-qt/qtxmlpatterns-${QTVER}:${QTSLOT} |
105 | server? ( virtual/pam ) |
106 | ) |
107 | dedicated? ( virtual/pam )" |
108 | DEPEND="${RDEPEND} |
109 | app-arch/unzip |
110 | dev-java/ant-core |
111 | >=virtual/jdk-1.5 |
112 | virtual/pkgconfig" |
113 | # test? ( dev-java/junit:4 ) |
114 | |
115 | src_unpack() { |
116 | unpack ${P}.tar.gz gwt-${GWTVER}.zip |
117 | cd "${S}" || die |
118 | mkdir -p src/gwt/lib/{gin,gwt} \ |
119 | dependencies/common/dictionaries \ |
120 | src/gwt/lib/selenium/${SELENIUMVER} \ |
121 | src/gwt/lib/selenium/chromedriver/${CHROMEDRIVER_VER} || die |
122 | mv ../gwt-${GWTVER} src/gwt/lib/gwt/${GWTVER} || die |
123 | unzip -qd src/gwt/lib/gin/${GINVER} \ |
124 | "${DISTDIR}"/gin-${GINVER}.zip || die |
125 | unzip -qd dependencies/common/dictionaries \ |
126 | "${DISTDIR}"/core-dictionaries.zip || die |
127 | unzip -qd src/gwt/lib/selenium/${SELENIUMVER} \ |
128 | "${DISTDIR}"/selenium-java-${SELENIUMVER}.zip || die |
129 | cp "${DISTDIR}"/selenium-server-standalone-${SELENIUMVER}.jar \ |
130 | src/gwt/lib/selenium/${SELENIUMVER}/ || die |
131 | cp "${DISTDIR}"/chromedriver-linux \ |
132 | src/gwt/lib/selenium/chromedriver/${CHROMEDRIVER_VER}/ || die |
133 | cd dependencies/common || die |
134 | unpack packrat_${PACKRAT_VER}.tar.gz |
135 | unpack rmarkdown_${RMARKDOWN_VER}.tar.gz |
136 | cp "${DISTDIR}"/rmarkdown_${RMARKDOWN_VER}.tar.gz \ |
137 | . || die |
138 | cp "${DISTDIR}"/packrat_${PACKRAT_VER}.tar.gz \ |
139 | . || die |
140 | } |
141 | |
142 | src_prepare() { |
143 | java-pkg-2_src_prepare |
144 | |
145 | find . -name .gitignore -delete || die |
146 | |
147 | epatch "${FILESDIR}"/${PN}-0.98.490-prefs.patch \ |
148 | "${FILESDIR}"/${PN}-0.98.932-paths.patch \ |
149 | "${FILESDIR}"/${PN}-0.98.932-pandoc.patch \ |
150 | "${FILESDIR}"/${PN}-0.98.490-linker_flags.patch |
151 | |
152 | # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using |
153 | # this sed hack for now. ~RMH |
154 | sed -i \ |
155 | -e "s|DISTRO_SHARE|\"share/${PN}\"|g" \ |
156 | src/cpp/server/ServerOptions.cpp \ |
157 | src/cpp/session/SessionOptions.cpp || die |
158 | |
159 | # use mathjax from system |
160 | ln -sf "${EPREFIX}"/usr/share/mathjax dependencies/common/mathjax || die |
161 | |
162 | # make sure icons and mime stuff are with prefix |
163 | sed -i \ |
164 | -e "s:/usr:${EPREFIX}/usr:g" \ |
165 | CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die |
166 | } |
167 | |
168 | src_configure() { |
169 | export RSTUDIO_VERSION_MAJOR=$(get_version_component_range 1) |
170 | export RSTUDIO_VERSION_MINOR=$(get_version_component_range 2) |
171 | export RSTUDIO_VERSION_PATCH=$(get_version_component_range 3) |
172 | |
173 | local mycmakeargs=( |
174 | -DDISTRO_SHARE=share/${PN} |
175 | $(cmake-utils_use !dedicated RSTUDIO_INSTALL_FREEDESKTOP) |
176 | -DRSTUDIO_TARGET=$(usex dedicated "Server" "$(usex server "Development" "Desktop")") |
177 | ) |
178 | |
179 | cmake-utils_src_configure |
180 | } |
181 | |
182 | src_compile() { |
183 | cmake-utils_src_compile |
184 | } |
185 | |
186 | src_install() { |
187 | cmake-utils_src_install |
188 | if use dedicated || use server; then |
189 | dopamd src/cpp/server/extras/pam/rstudio |
190 | newinitd "${FILESDIR}"/rstudio-rserver.initd rstudio-rserver |
191 | fi |
192 | } |
193 | |
194 | pkg_preinst() { |
195 | use dedicated || gnome2_icon_savelist |
196 | java-pkg-2_pkg_preinst |
197 | } |
198 | |
199 | pkg_postinst() { |
200 | use dedicated || { fdo-mime_desktop_database_update |
201 | fdo-mime_mime_database_update |
202 | gnome2_icon_cache_update ;} |
203 | |
204 | if use dedicated || use server; then |
205 | enewgroup rstudio-server |
206 | enewuser rstudio-server -1 -1 -1 rstudio-server |
207 | fi |
208 | } |
209 | |
210 | pkg_postrm() { |
211 | use dedicated || { fdo-mime_desktop_database_update |
212 | fdo-mime_mime_database_update |
213 | gnome2_icon_cache_update ;} |
214 | } |