Gentoo Archives: gentoo-commits

From: Justin Lecher <jlec@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sci:master commit in: sci-mathematics/rstudio/, sci-mathematics/rstudio/files/
Date: Fri, 02 Nov 2012 19:44:47
Message-Id: 1349965797.57877ae53a172f4acb0e9b7757cc24b987cb6a90.jlec@gentoo
1 commit: 57877ae53a172f4acb0e9b7757cc24b987cb6a90
2 Author: Fredric Johansson <fredric.miscmail <AT> gmail <DOT> com>
3 AuthorDate: Thu Oct 11 14:29:57 2012 +0000
4 Commit: Justin Lecher <jlec <AT> gentoo <DOT> org>
5 CommitDate: Thu Oct 11 14:29:57 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=57877ae5
7
8 Added rstudio-0.96.331 and desktop file fix
9
10 ---
11 ...nker_flags.patch => rstudio-linker_flags.patch} | 0
12 ...io-0.96.316-paths.patch => rstudio-paths.patch} | 0
13 ...io-0.96.316-prefs.patch => rstudio-prefs.patch} | 0
14 .../rstudio/files/rstudio.desktop.patch | 16 ++++++++++++++++
15 sci-mathematics/rstudio/rstudio-0.96.316.ebuild | 10 ++++++----
16 ...dio-0.96.316.ebuild => rstudio-0.96.331.ebuild} | 10 ++++++----
17 6 files changed, 28 insertions(+), 8 deletions(-)
18
19 diff --git a/sci-mathematics/rstudio/files/rstudio-0.96.316-linker_flags.patch b/sci-mathematics/rstudio/files/rstudio-linker_flags.patch
20 similarity index 100%
21 rename from sci-mathematics/rstudio/files/rstudio-0.96.316-linker_flags.patch
22 rename to sci-mathematics/rstudio/files/rstudio-linker_flags.patch
23
24 diff --git a/sci-mathematics/rstudio/files/rstudio-0.96.316-paths.patch b/sci-mathematics/rstudio/files/rstudio-paths.patch
25 similarity index 100%
26 rename from sci-mathematics/rstudio/files/rstudio-0.96.316-paths.patch
27 rename to sci-mathematics/rstudio/files/rstudio-paths.patch
28
29 diff --git a/sci-mathematics/rstudio/files/rstudio-0.96.316-prefs.patch b/sci-mathematics/rstudio/files/rstudio-prefs.patch
30 similarity index 100%
31 rename from sci-mathematics/rstudio/files/rstudio-0.96.316-prefs.patch
32 rename to sci-mathematics/rstudio/files/rstudio-prefs.patch
33
34 diff --git a/sci-mathematics/rstudio/files/rstudio.desktop.patch b/sci-mathematics/rstudio/files/rstudio.desktop.patch
35 new file mode 100644
36 index 0000000..5437eb7
37 --- /dev/null
38 +++ b/sci-mathematics/rstudio/files/rstudio.desktop.patch
39 @@ -0,0 +1,16 @@
40 +--- rstudio-0.96.331/src/cpp/desktop/resources/freedesktop/rstudio.desktop.in.old 2012-10-11 16:11:09.247971451 +0200
41 ++++ rstudio-0.96.331/src/cpp/desktop/resources/freedesktop/rstudio.desktop.in 2012-10-11 16:12:30.967971366 +0200
42 +@@ -1,10 +1,10 @@
43 + [Desktop Entry]
44 + Exec=${CMAKE_INSTALL_PREFIX}/${RSTUDIO_INSTALL_BIN}/rstudio %F
45 +-Icon=rstudio.png
46 ++Icon=rstudio
47 + Type=Application
48 + Terminal=false
49 + Name=RStudio
50 +-Categories=Development
51 +-MimeType=text/x-r-source;text/x-r;text-x-R;text/x-r-doc;text/x-r-sweave;text/x-r-markdown;text/x-r-html;text/x-r-html;application/x-r-data;application/x-r-project;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/html;text/css;text/javascript;
52 ++Categories=Development;
53 ++MimeType=text/x-r-source;text/x-r;text/x-R;text/x-r-doc;text/x-r-sweave;text/x-r-markdown;text/x-r-html;application/x-r-data;application/x-r-project;text/x-r-history;text/x-r-profile;text/x-tex;text/x-markdown;text/html;text/css;text/javascript;
54 +
55 +
56
57 diff --git a/sci-mathematics/rstudio/rstudio-0.96.316.ebuild b/sci-mathematics/rstudio/rstudio-0.96.316.ebuild
58 index caf160c..eaf2181 100644
59 --- a/sci-mathematics/rstudio/rstudio-0.96.316.ebuild
60 +++ b/sci-mathematics/rstudio/rstudio-0.96.316.ebuild
61 @@ -33,7 +33,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
62 IUSE="+desktop server test"
63
64 QTVER=4.8
65 -RDEPEND="dev-lang/R
66 +RDEPEND=">=dev-lang/R-2.11.1
67 >=dev-libs/boost-1.42
68 dev-libs/mathjax
69 dev-libs/openssl
70 @@ -66,19 +66,21 @@ src_unpack() {
71
72 src_prepare() {
73 find . -name .gitignore -delete
74 + # Fix the QA warnings on the desktop file
75 + epatch "${FILESDIR}"/${PN}.desktop.patch
76 # And now we fix src/gwt/build.xml since java's user preference class is
77 # braindead and insists on writing where it is not allowed.
78 # much thanks to http://www.allaboutbalance.com/articles/disableprefs/
79 - epatch "${FILESDIR}"/${P}-prefs.patch
80 + epatch "${FILESDIR}"/${PN}-prefs.patch
81 # change the install path, as by default everything is dumped right under
82 # the prefix. After fixing install paths, now fix the source so the
83 # program can find the moved resources.
84 - epatch "${FILESDIR}"/${P}-paths.patch
85 + epatch "${FILESDIR}"/${PN}-paths.patch
86 # Some gcc hardening options were added, however since we add
87 # "-Wl,--as-needed" we end up with "-Wl,--as-needed;-Wl,-z,relro" which
88 # leads to linker errors about unknown options, if we make it so the
89 # as-needed option is the last option on the line, everything is fine.
90 - epatch "${FILESDIR}"/${P}-linker_flags.patch
91 + epatch "${FILESDIR}"/${PN}-linker_flags.patch
92 # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using
93 # this sed hack for now. ~RMH
94 sed -i \
95
96 diff --git a/sci-mathematics/rstudio/rstudio-0.96.316.ebuild b/sci-mathematics/rstudio/rstudio-0.96.331.ebuild
97 similarity index 94%
98 copy from sci-mathematics/rstudio/rstudio-0.96.316.ebuild
99 copy to sci-mathematics/rstudio/rstudio-0.96.331.ebuild
100 index caf160c..0d35e57 100644
101 --- a/sci-mathematics/rstudio/rstudio-0.96.316.ebuild
102 +++ b/sci-mathematics/rstudio/rstudio-0.96.331.ebuild
103 @@ -33,7 +33,7 @@ KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
104 IUSE="+desktop server test"
105
106 QTVER=4.8
107 -RDEPEND="dev-lang/R
108 +RDEPEND=">=dev-lang/R-2.11.1
109 >=dev-libs/boost-1.42
110 dev-libs/mathjax
111 dev-libs/openssl
112 @@ -66,19 +66,21 @@ src_unpack() {
113
114 src_prepare() {
115 find . -name .gitignore -delete
116 + # Fix the QA warning on the desktop file
117 + epatch "${FILESDIR}"/${PN}.desktop.patch
118 # And now we fix src/gwt/build.xml since java's user preference class is
119 # braindead and insists on writing where it is not allowed.
120 # much thanks to http://www.allaboutbalance.com/articles/disableprefs/
121 - epatch "${FILESDIR}"/${P}-prefs.patch
122 + epatch "${FILESDIR}"/${PN}-prefs.patch
123 # change the install path, as by default everything is dumped right under
124 # the prefix. After fixing install paths, now fix the source so the
125 # program can find the moved resources.
126 - epatch "${FILESDIR}"/${P}-paths.patch
127 + epatch "${FILESDIR}"/${PN}-paths.patch
128 # Some gcc hardening options were added, however since we add
129 # "-Wl,--as-needed" we end up with "-Wl,--as-needed;-Wl,-z,relro" which
130 # leads to linker errors about unknown options, if we make it so the
131 # as-needed option is the last option on the line, everything is fine.
132 - epatch "${FILESDIR}"/${P}-linker_flags.patch
133 + epatch "${FILESDIR}"/${PN}-linker_flags.patch
134 # Adding -DDISTRO_SHARE=... to append-flags breaks cmake so using
135 # this sed hack for now. ~RMH
136 sed -i \