1 |
commit: 89ec37fafb07e352a63157c08e1fbead95888059 |
2 |
Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jun 7 18:05:10 2016 +0000 |
4 |
Commit: Andreas Hüttel <dilfridge <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Jul 2 21:15:52 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=89ec37fa |
7 |
|
8 |
app-office/libreoffice: Add USE=google, GAPI auth for gdrive integration |
9 |
|
10 |
Existing ID and secret taken from www-client/chromium |
11 |
|
12 |
Gentoo-bug: 584168 |
13 |
|
14 |
app-office/libreoffice/libreoffice-5.1.9999.ebuild | 12 ++++++++++-- |
15 |
app-office/libreoffice/libreoffice-5.2.9999.ebuild | 12 ++++++++++-- |
16 |
app-office/libreoffice/libreoffice-9999.ebuild | 12 ++++++++++-- |
17 |
app-office/libreoffice/metadata.xml | 1 + |
18 |
4 files changed, 31 insertions(+), 6 deletions(-) |
19 |
|
20 |
diff --git a/app-office/libreoffice/libreoffice-5.1.9999.ebuild b/app-office/libreoffice/libreoffice-5.1.9999.ebuild |
21 |
index 3111ec9..aba9c40 100644 |
22 |
--- a/app-office/libreoffice/libreoffice-5.1.9999.ebuild |
23 |
+++ b/app-office/libreoffice/libreoffice-5.1.9999.ebuild |
24 |
@@ -85,8 +85,8 @@ unset ADDONS_SRC |
25 |
# Extensions that need extra work: |
26 |
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
27 |
|
28 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer |
29 |
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc |
30 |
+IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google |
31 |
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc |
32 |
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
33 |
|
34 |
LICENSE="|| ( LGPL-3 MPL-1.1 )" |
35 |
@@ -357,6 +357,12 @@ src_configure() { |
36 |
local internal_libs |
37 |
local ext_opts |
38 |
|
39 |
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys |
40 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, please get |
41 |
+ # your own set of keys. Feel free to contact chromium@g.o for more info. |
42 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
43 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
44 |
+ |
45 |
# optimization flags |
46 |
export GMAKE_OPTIONS="${MAKEOPTS}" |
47 |
# System python enablement: |
48 |
@@ -479,6 +485,8 @@ src_configure() { |
49 |
$(use_with coinmp system-coinmp) \ |
50 |
$(use_with collada system-opencollada) \ |
51 |
$(use_with gltf system-libgltf) \ |
52 |
+ $(use_with google gdrive-client-id ${google_default_client_id}) \ |
53 |
+ $(use_with google gdrive-client-secret ${google_default_client_secret}) \ |
54 |
$(use_with java) \ |
55 |
$(use_with mysql system-mysql-cppconn) \ |
56 |
$(use_with odk doxygen) \ |
57 |
|
58 |
diff --git a/app-office/libreoffice/libreoffice-5.2.9999.ebuild b/app-office/libreoffice/libreoffice-5.2.9999.ebuild |
59 |
index 7ae6ee1..40ef04b 100644 |
60 |
--- a/app-office/libreoffice/libreoffice-5.2.9999.ebuild |
61 |
+++ b/app-office/libreoffice/libreoffice-5.2.9999.ebuild |
62 |
@@ -84,8 +84,8 @@ unset ADDONS_SRC |
63 |
# Extensions that need extra work: |
64 |
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
65 |
|
66 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer |
67 |
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc |
68 |
+IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google |
69 |
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc |
70 |
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
71 |
|
72 |
LICENSE="|| ( LGPL-3 MPL-1.1 )" |
73 |
@@ -354,6 +354,12 @@ src_configure() { |
74 |
local java_opts |
75 |
local ext_opts |
76 |
|
77 |
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys |
78 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, please get |
79 |
+ # your own set of keys. Feel free to contact chromium@g.o for more info. |
80 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
81 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
82 |
+ |
83 |
# optimization flags |
84 |
export GMAKE_OPTIONS="${MAKEOPTS}" |
85 |
# System python enablement: |
86 |
@@ -468,6 +474,8 @@ src_configure() { |
87 |
$(use_with coinmp system-coinmp) \ |
88 |
$(use_with collada system-opencollada) \ |
89 |
$(use_with gltf system-libgltf) \ |
90 |
+ $(use_with google gdrive-client-id ${google_default_client_id}) \ |
91 |
+ $(use_with google gdrive-client-secret ${google_default_client_secret}) \ |
92 |
$(use_with java) \ |
93 |
$(use_with mysql system-mysql-cppconn) \ |
94 |
$(use_with odk doxygen) \ |
95 |
|
96 |
diff --git a/app-office/libreoffice/libreoffice-9999.ebuild b/app-office/libreoffice/libreoffice-9999.ebuild |
97 |
index 7ae6ee1..40ef04b 100644 |
98 |
--- a/app-office/libreoffice/libreoffice-9999.ebuild |
99 |
+++ b/app-office/libreoffice/libreoffice-9999.ebuild |
100 |
@@ -84,8 +84,8 @@ unset ADDONS_SRC |
101 |
# Extensions that need extra work: |
102 |
LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" |
103 |
|
104 |
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer |
105 |
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc |
106 |
+IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google |
107 |
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc |
108 |
$(printf 'libreoffice_extensions_%s ' ${LO_EXTS})" |
109 |
|
110 |
LICENSE="|| ( LGPL-3 MPL-1.1 )" |
111 |
@@ -354,6 +354,12 @@ src_configure() { |
112 |
local java_opts |
113 |
local ext_opts |
114 |
|
115 |
+ # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys |
116 |
+ # Note: these are for Gentoo use ONLY. For your own distribution, please get |
117 |
+ # your own set of keys. Feel free to contact chromium@g.o for more info. |
118 |
+ local google_default_client_id="329227923882.apps.googleusercontent.com" |
119 |
+ local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu" |
120 |
+ |
121 |
# optimization flags |
122 |
export GMAKE_OPTIONS="${MAKEOPTS}" |
123 |
# System python enablement: |
124 |
@@ -468,6 +474,8 @@ src_configure() { |
125 |
$(use_with coinmp system-coinmp) \ |
126 |
$(use_with collada system-opencollada) \ |
127 |
$(use_with gltf system-libgltf) \ |
128 |
+ $(use_with google gdrive-client-id ${google_default_client_id}) \ |
129 |
+ $(use_with google gdrive-client-secret ${google_default_client_secret}) \ |
130 |
$(use_with java) \ |
131 |
$(use_with mysql system-mysql-cppconn) \ |
132 |
$(use_with odk doxygen) \ |
133 |
|
134 |
diff --git a/app-office/libreoffice/metadata.xml b/app-office/libreoffice/metadata.xml |
135 |
index 2c92bb7..f2a30d6 100644 |
136 |
--- a/app-office/libreoffice/metadata.xml |
137 |
+++ b/app-office/libreoffice/metadata.xml |
138 |
@@ -14,6 +14,7 @@ version</longdescription> |
139 |
<flag name="coinmp">Use sci-libs/coinor-mp as alternative solver</flag> |
140 |
<flag name="collada">Enable Collada for rendering 3D models stored in *.dae and *.kmz format</flag> |
141 |
<flag name="gltf">Use media-libs/libgltf for inserting 3D models in the glTF format into presentations</flag> |
142 |
+ <flag name="google">Enable support for remote files on Google Drive</flag> |
143 |
<flag name="gtk3">Enable highly experimental gtk3 frontend</flag> |
144 |
<flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations</flag> |
145 |
<flag name="odk">Build the Office Development Kit</flag> |