Gentoo Archives: gentoo-commits

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.1028.ebuild
Date: Wed, 27 Aug 2014 15:51:06
Message-Id: 20140827155102.31F7D3FE4@oystercatcher.gentoo.org
1 hasufell 14/08/27 15:51:02
2
3 Modified: ChangeLog
4 Added: rstudio-0.98.1028.ebuild
5 Log:
6 version bump
7
8 (Portage version: 2.2.12/cvs/Linux x86_64, signed Manifest commit with key BDEED020)
9
10 Revision Changes Path
11 1.14 sci-mathematics/rstudio/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/ChangeLog?rev=1.14&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/ChangeLog?rev=1.14&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/ChangeLog?r1=1.13&r2=1.14
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/ChangeLog,v
20 retrieving revision 1.13
21 retrieving revision 1.14
22 diff -u -r1.13 -r1.14
23 --- ChangeLog 27 Aug 2014 15:38:02 -0000 1.13
24 +++ ChangeLog 27 Aug 2014 15:51:02 -0000 1.14
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.13 2014/08/27 15:38:02 hasufell Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/ChangeLog,v 1.14 2014/08/27 15:51:02 hasufell Exp $
30 +
31 +*rstudio-0.98.1028 (27 Aug 2014)
32 +
33 + 27 Aug 2014; Julian Ospald <hasufell@g.o> +rstudio-0.98.1028.ebuild:
34 + version bump
35
36 *rstudio-0.98.490-r1 (27 Aug 2014)
37
38
39
40
41 1.1 sci-mathematics/rstudio/rstudio-0.98.1028.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.1028.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.1028.ebuild?rev=1.1&content-type=text/plain
45
46 Index: rstudio-0.98.1028.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.1028.ebuild,v 1.1 2014/08/27 15:51:02 hasufell Exp $
51
52 EAPI=5
53
54 inherit eutils cmake-utils gnome2-utils 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 # update from scripts in dependencies/common
62 GWTVER=2.6.0
63 GINVER=1.5
64 SELENIUMVER=2.37.0
65 CHROMEDRIVER_VER=2.7
66 PANDOC_VER=1.12.3
67 PACKRAT_VER=0.3.0
68 RMARKDOWN_VER=0.2.49
69
70 DESCRIPTION="IDE for the R language"
71 HOMEPAGE="http://www.rstudio.org
72 https://github.com/rstudio/rstudio/"
73 SRC_URI="https://github.com/rstudio/rstudio/archive/v${PV}.tar.gz -> ${P}.tar.gz
74 https://s3.amazonaws.com/rstudio-buildtools/gin-${GINVER}.zip
75 https://s3.amazonaws.com/rstudio-buildtools/gwt-${GWTVER}.zip
76 https://s3.amazonaws.com/rstudio-buildtools/selenium-java-${SELENIUMVER}.zip
77 https://s3.amazonaws.com/rstudio-buildtools/selenium-server-standalone-${SELENIUMVER}.jar
78 https://s3.amazonaws.com/rstudio-buildtools/chromedriver-linux
79 https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip
80 http://dev.gentoo.org/~hasufell/distfiles/packrat_${PACKRAT_VER}.tar.gz
81 http://dev.gentoo.org/~hasufell/distfiles/rmarkdown_${RMARKDOWN_VER}.tar.gz"
82
83 LICENSE="AGPL-3"
84 SLOT="0"
85 KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
86 IUSE=""
87
88 QTVER=4.8
89 QTSLOT=4
90 RDEPEND="
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 >=dev-qt/qtcore-${QTVER}:${QTSLOT}
100 >=dev-qt/qtdbus-${QTVER}:${QTSLOT}
101 >=dev-qt/qtgui-${QTVER}:${QTSLOT}
102 >=dev-qt/qtwebkit-${QTVER}:${QTSLOT}
103 >=dev-qt/qtxmlpatterns-${QTVER}:${QTSLOT}"
104 DEPEND="${RDEPEND}
105 app-arch/unzip
106 dev-java/ant-core
107 >=virtual/jdk-1.5
108 virtual/pkgconfig"
109 # test? ( dev-java/junit:4 )
110
111 src_unpack() {
112 unpack ${P}.tar.gz gwt-${GWTVER}.zip
113 cd "${S}" || die
114 mkdir -p src/gwt/lib/{gin,gwt} \
115 dependencies/common/dictionaries \
116 src/gwt/lib/selenium/${SELENIUMVER} \
117 src/gwt/lib/selenium/chromedriver/${CHROMEDRIVER_VER} || die
118 mv ../gwt-${GWTVER} src/gwt/lib/gwt/${GWTVER} || die
119 unzip -qd src/gwt/lib/gin/${GINVER} \
120 "${DISTDIR}"/gin-${GINVER}.zip || die
121 unzip -qd dependencies/common/dictionaries \
122 "${DISTDIR}"/core-dictionaries.zip || die
123 unzip -qd src/gwt/lib/selenium/${SELENIUMVER} \
124 "${DISTDIR}"/selenium-java-${SELENIUMVER}.zip || die
125 cp "${DISTDIR}"/selenium-server-standalone-${SELENIUMVER}.jar \
126 src/gwt/lib/selenium/${SELENIUMVER}/ || die
127 cp "${DISTDIR}"/chromedriver-linux \
128 src/gwt/lib/selenium/chromedriver/${CHROMEDRIVER_VER}/ || die
129 cd dependencies/common || die
130 unpack packrat_${PACKRAT_VER}.tar.gz
131 unpack rmarkdown_${RMARKDOWN_VER}.tar.gz
132 cp "${DISTDIR}"/rmarkdown_${RMARKDOWN_VER}.tar.gz \
133 . || die
134 cp "${DISTDIR}"/packrat_${PACKRAT_VER}.tar.gz \
135 . || die
136 }
137
138 src_prepare() {
139 java-pkg-2_src_prepare
140
141 find . -name .gitignore -delete || die
142
143 epatch "${FILESDIR}"/${PN}-0.98.490-prefs.patch \
144 "${FILESDIR}"/${PN}-0.98.932-paths.patch \
145 "${FILESDIR}"/${PN}-0.98.932-pandoc.patch \
146 "${FILESDIR}"/${PN}-0.98.490-linker_flags.patch
147
148 # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using
149 # this sed hack for now. ~RMH
150 sed -i \
151 -e "s|DISTRO_SHARE|\"share/${PN}\"|g" \
152 src/cpp/server/ServerOptions.cpp \
153 src/cpp/session/SessionOptions.cpp || die
154
155 # use mathjax from system
156 ln -sf "${EPREFIX}"/usr/share/mathjax dependencies/common/mathjax || die
157
158 # make sure icons and mime stuff are with prefix
159 sed -i \
160 -e "s:/usr:${EPREFIX}/usr:g" \
161 CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die
162 }
163
164 src_configure() {
165 export RSTUDIO_VERSION_MAJOR=$(get_version_component_range 1)
166 export RSTUDIO_VERSION_MINOR=$(get_version_component_range 2)
167 export RSTUDIO_VERSION_PATCH=$(get_version_component_range 3)
168
169 local mycmakeargs=(
170 -DDISTRO_SHARE=share/${PN}
171 -DRSTUDIO_INSTALL_FREEDESKTOP=ON
172 -DRSTUDIO_TARGET=Desktop
173 )
174
175 cmake-utils_src_configure
176 }
177
178 src_compile() {
179 cmake-utils_src_compile
180 }
181
182 src_install() {
183 cmake-utils_src_install
184 }
185
186 pkg_preinst() {
187 gnome2_icon_savelist
188 java-pkg-2_pkg_preinst
189 }
190
191 pkg_postinst() {
192 fdo-mime_desktop_database_update
193 fdo-mime_mime_database_update
194 gnome2_icon_cache_update
195 }
196
197 pkg_postrm() {
198 fdo-mime_desktop_database_update
199 fdo-mime_mime_database_update
200 gnome2_icon_cache_update
201 }