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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.4
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2015 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.490-r1.ebuild,v 1.1 2014/08/27 15:38:02 hasufell Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.490-r1.ebuild,v 1.4 2015/02/28 04:39:43 gienah Exp $
4 4
5EAPI=5 5EAPI=5
6 6
7inherit eutils cmake-utils gnome2-utils versionator fdo-mime java-pkg-2 7inherit eutils cmake-utils gnome2-utils versionator fdo-mime java-pkg-2 pax-utils
8 8
9# TODO 9# TODO
10# * package gin and gwt 10# * package gin and gwt
11# * use dict from tree, linguas 11# * use dict from tree, linguas
12# * do src_test (use junit from tree?) 12# * do src_test (use junit from tree?)
21 https://s3.amazonaws.com/rstudio-buildtools/gwt-${GWTVER}.zip 21 https://s3.amazonaws.com/rstudio-buildtools/gwt-${GWTVER}.zip
22 https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip" 22 https://s3.amazonaws.com/rstudio-dictionaries/core-dictionaries.zip"
23 23
24LICENSE="AGPL-3" 24LICENSE="AGPL-3"
25SLOT="0" 25SLOT="0"
26KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" 26KEYWORDS="amd64 ~x86 ~amd64-linux ~x86-linux"
27IUSE="" 27IUSE=""
28 28
29QTVER=4.8 29QTVER=4.8
30QTSLOT=4 30QTSLOT=4
31RDEPEND=">=dev-lang/R-2.11.1 31RDEPEND=">=dev-lang/R-2.11.1
32 >=dev-libs/boost-1.50 32 >=dev-libs/boost-1.50:=
33 dev-libs/mathjax 33 dev-libs/mathjax
34 dev-libs/openssl 34 dev-libs/openssl:0
35 sys-libs/zlib 35 sys-libs/zlib
36 >=virtual/jre-1.5 36 >=virtual/jre-1.5:=
37 x11-libs/pango 37 x11-libs/pango
38 >=dev-qt/qtcore-${QTVER}:${QTSLOT} 38 >=dev-qt/qtcore-${QTVER}:${QTSLOT}
39 >=dev-qt/qtdbus-${QTVER}:${QTSLOT} 39 >=dev-qt/qtdbus-${QTVER}:${QTSLOT}
40 >=dev-qt/qtgui-${QTVER}:${QTSLOT} 40 >=dev-qt/qtgui-${QTVER}:${QTSLOT}
41 >=dev-qt/qtwebkit-${QTVER}:${QTSLOT} 41 >=dev-qt/qtwebkit-${QTVER}:${QTSLOT}
77 77
78 # make sure icons and mime stuff are with prefix 78 # make sure icons and mime stuff are with prefix
79 sed -i \ 79 sed -i \
80 -e "s:/usr:${EPREFIX}/usr:g" \ 80 -e "s:/usr:${EPREFIX}/usr:g" \
81 CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die 81 CMakeGlobals.txt src/cpp/desktop/CMakeLists.txt || die
82
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 {} \;
82} 87}
83 88
84src_configure() { 89src_configure() {
85 export RSTUDIO_VERSION_MAJOR=$(get_version_component_range 1) 90 export RSTUDIO_VERSION_MAJOR=$(get_version_component_range 1)
86 export RSTUDIO_VERSION_MINOR=$(get_version_component_range 2) 91 export RSTUDIO_VERSION_MINOR=$(get_version_component_range 2)
99 cmake-utils_src_compile 104 cmake-utils_src_compile
100} 105}
101 106
102src_install() { 107src_install() {
103 cmake-utils_src_install 108 cmake-utils_src_install
109 pax-mark m "${ED}usr/bin/rstudio"
104} 110}
105 111
106pkg_preinst() { 112pkg_preinst() {
107 gnome2_icon_savelist 113 gnome2_icon_savelist
108 java-pkg-2_pkg_preinst 114 java-pkg-2_pkg_preinst

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20