/[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.2 Revision 1.3
1# Copyright 1999-2014 Gentoo Foundation 1# Copyright 1999-2014 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.2 2014/08/30 15:46:38 nimiux Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/rstudio/rstudio-0.98.490-r1.ebuild,v 1.3 2014/12/06 12:32:01 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?)
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.2  
changed lines
  Added in v.1.3

  ViewVC Help
Powered by ViewVC 1.1.20