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

Contents of /sci-mathematics/rstudio/rstudio-0.98.490-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (hide annotations) (download)
Sat Dec 6 12:32:01 2014 UTC (5 years, 2 months ago) by gienah
Branch: MAIN
Changes since 1.2: +8 -2 lines
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 hasufell 1.1 # Copyright 1999-2014 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 gienah 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.490-r1.ebuild,v 1.2 2014/08/30 15:46:38 nimiux Exp $
4 hasufell 1.1
5     EAPI=5
6    
7 gienah 1.3 inherit eutils cmake-utils gnome2-utils versionator fdo-mime java-pkg-2 pax-utils
8 hasufell 1.1
9     # TODO
10     # * package gin and gwt
11     # * use dict from tree, linguas
12     # * do src_test (use junit from tree?)
13    
14     GWTVER=2.5.1
15     GINVER=1.5
16    
17     DESCRIPTION="IDE for the R language"
18     HOMEPAGE="http://www.rstudio.org"
19     SRC_URI="https://github.com/rstudio/rstudio/archive/v${PV}.tar.gz -> ${P}.tar.gz
20     https://s3.amazonaws.com/rstudio-buildtools/gin-${GINVER}.zip
21     https://s3.amazonaws.com/rstudio-buildtools/gwt-${GWTVER}.zip
22     https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip"
23    
24     LICENSE="AGPL-3"
25     SLOT="0"
26 nimiux 1.2 KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
27 hasufell 1.1 IUSE=""
28    
29     QTVER=4.8
30     QTSLOT=4
31     RDEPEND=">=dev-lang/R-2.11.1
32     >=dev-libs/boost-1.50
33     dev-libs/mathjax
34     dev-libs/openssl
35     sys-libs/zlib
36     >=virtual/jre-1.5
37     x11-libs/pango
38     >=dev-qt/qtcore-${QTVER}:${QTSLOT}
39     >=dev-qt/qtdbus-${QTVER}:${QTSLOT}
40     >=dev-qt/qtgui-${QTVER}:${QTSLOT}
41     >=dev-qt/qtwebkit-${QTVER}:${QTSLOT}
42     >=dev-qt/qtxmlpatterns-${QTVER}:${QTSLOT}"
43     DEPEND="${RDEPEND}
44     app-arch/unzip
45     dev-java/ant-core
46     >=virtual/jdk-1.5
47     virtual/pkgconfig"
48     # test? ( dev-java/junit:4 )
49    
50     src_unpack() {
51     unpack ${P}.tar.gz gwt-${GWTVER}.zip
52     cd "${S}" || die
53     mkdir -p src/gwt/lib/{gin,gwt} dependencies/common/dictionaries || die
54     mv ../gwt-${GWTVER} src/gwt/lib/gwt/${GWTVER} || die
55     unzip -qd src/gwt/lib/gin/${GINVER} "${DISTDIR}"/gin-${GINVER}.zip || die
56     unzip -qd dependencies/common/dictionaries "${DISTDIR}"/core-dictionaries.zip || die
57     }
58    
59     src_prepare() {
60     java-pkg-2_src_prepare
61    
62     find . -name .gitignore -delete || die
63    
64     epatch "${FILESDIR}"/${P}-prefs.patch \
65     "${FILESDIR}"/${P}-paths.patch \
66     "${FILESDIR}"/${P}-linker_flags.patch
67    
68     # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using
69     # this sed hack for now. ~RMH
70     sed -i \
71     -e "s|DISTRO_SHARE|\"share/${PN}\"|g" \
72     src/cpp/server/ServerOptions.cpp \
73     src/cpp/session/SessionOptions.cpp || die
74    
75     # use mathjax from system
76     ln -sf "${EPREFIX}"/usr/share/mathjax dependencies/common/mathjax || die
77    
78     # make sure icons and mime stuff are with prefix
79     sed -i \
80     -e "s:/usr:${EPREFIX}/usr:g" \
81     CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die
82 gienah 1.3
83     # specify that namespace core the is in the global namespace and not
84     # relative to some other namespace (like its ::core not ::boost::core)
85     find . \( -name *.cpp -or -name *.hpp \) -exec sed \
86     -e 's@<core::@< ::core::@g' -e 's@\([^:]\)core::@\1::core::@g' -i {} \;
87 hasufell 1.1 }
88    
89     src_configure() {
90     export RSTUDIO_VERSION_MAJOR=$(get_version_component_range 1)
91     export RSTUDIO_VERSION_MINOR=$(get_version_component_range 2)
92     export RSTUDIO_VERSION_PATCH=$(get_version_component_range 3)
93    
94     local mycmakeargs=(
95     -DDISTRO_SHARE=share/${PN}
96     -DRSTUDIO_INSTALL_FREEDESKTOP=ON
97     -DRSTUDIO_TARGET=Desktop
98     )
99    
100     cmake-utils_src_configure
101     }
102    
103     src_compile() {
104     cmake-utils_src_compile
105     }
106    
107     src_install() {
108     cmake-utils_src_install
109 gienah 1.3 pax-mark m "${ED}usr/bin/rstudio"
110 hasufell 1.1 }
111    
112     pkg_preinst() {
113     gnome2_icon_savelist
114     java-pkg-2_pkg_preinst
115     }
116    
117     pkg_postinst() {
118     fdo-mime_desktop_database_update
119     fdo-mime_mime_database_update
120     gnome2_icon_cache_update
121     }
122    
123     pkg_postrm() {
124     fdo-mime_desktop_database_update
125     fdo-mime_mime_database_update
126     gnome2_icon_cache_update
127     }

  ViewVC Help
Powered by ViewVC 1.1.20