app-office/libreoffice: Add USE=google, GAPI auth for gdrive integration
authorAndreas Sturmlechner <andreas.sturmlechner@gmail.com>
Tue, 7 Jun 2016 18:05:10 +0000 (20:05 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 2 Jul 2016 21:15:52 +0000 (23:15 +0200)
Existing ID and secret taken from www-client/chromium

Gentoo-bug: 584168

app-office/libreoffice/libreoffice-5.1.9999.ebuild
app-office/libreoffice/libreoffice-5.2.9999.ebuild
app-office/libreoffice/libreoffice-9999.ebuild
app-office/libreoffice/metadata.xml

index 3111ec9f25b50fc5ae84ce046b38db032f8775c2..aba9c4022987385b99440b6674d9fbd9de149fb2 100644 (file)
@@ -85,8 +85,8 @@ unset ADDONS_SRC
 # Extensions that need extra work:
 LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
 
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
+IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
 $(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
 
 LICENSE="|| ( LGPL-3 MPL-1.1 )"
@@ -357,6 +357,12 @@ src_configure() {
        local internal_libs
        local ext_opts
 
+       # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
+       # Note: these are for Gentoo use ONLY. For your own distribution, please get
+       # your own set of keys. Feel free to contact chromium@gentoo.org for more info.
+       local google_default_client_id="329227923882.apps.googleusercontent.com"
+       local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
+
        # optimization flags
        export GMAKE_OPTIONS="${MAKEOPTS}"
        # System python enablement:
@@ -479,6 +485,8 @@ src_configure() {
                $(use_with coinmp system-coinmp) \
                $(use_with collada system-opencollada) \
                $(use_with gltf system-libgltf) \
+               $(use_with google gdrive-client-id ${google_default_client_id}) \
+               $(use_with google gdrive-client-secret ${google_default_client_secret}) \
                $(use_with java) \
                $(use_with mysql system-mysql-cppconn) \
                $(use_with odk doxygen) \
index 7ae6ee1a3f80b57b3dad5e9779a1075ba6c3a7f2..40ef04bc844c69f2716bd93f5ff912276e2d3a95 100644 (file)
@@ -84,8 +84,8 @@ unset ADDONS_SRC
 # Extensions that need extra work:
 LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
 
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
+IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
 $(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
 
 LICENSE="|| ( LGPL-3 MPL-1.1 )"
@@ -354,6 +354,12 @@ src_configure() {
        local java_opts
        local ext_opts
 
+       # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
+       # Note: these are for Gentoo use ONLY. For your own distribution, please get
+       # your own set of keys. Feel free to contact chromium@gentoo.org for more info.
+       local google_default_client_id="329227923882.apps.googleusercontent.com"
+       local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
+
        # optimization flags
        export GMAKE_OPTIONS="${MAKEOPTS}"
        # System python enablement:
@@ -468,6 +474,8 @@ src_configure() {
                $(use_with coinmp system-coinmp) \
                $(use_with collada system-opencollada) \
                $(use_with gltf system-libgltf) \
+               $(use_with google gdrive-client-id ${google_default_client_id}) \
+               $(use_with google gdrive-client-secret ${google_default_client_secret}) \
                $(use_with java) \
                $(use_with mysql system-mysql-cppconn) \
                $(use_with odk doxygen) \
index 7ae6ee1a3f80b57b3dad5e9779a1075ba6c3a7f2..40ef04bc844c69f2716bd93f5ff912276e2d3a95 100644 (file)
@@ -84,8 +84,8 @@ unset ADDONS_SRC
 # Extensions that need extra work:
 LO_EXTS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher"
 
-IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome gstreamer
-+gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
+IUSE="bluetooth +branding coinmp collada +cups dbus debug eds firebird gltf gnome google
+gstreamer +gtk gtk3 jemalloc kde libressl mysql odk postgres telepathy test vlc
 $(printf 'libreoffice_extensions_%s ' ${LO_EXTS})"
 
 LICENSE="|| ( LGPL-3 MPL-1.1 )"
@@ -354,6 +354,12 @@ src_configure() {
        local java_opts
        local ext_opts
 
+       # Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
+       # Note: these are for Gentoo use ONLY. For your own distribution, please get
+       # your own set of keys. Feel free to contact chromium@gentoo.org for more info.
+       local google_default_client_id="329227923882.apps.googleusercontent.com"
+       local google_default_client_secret="vgKG0NNv7GoDpbtoFNLxCUXu"
+
        # optimization flags
        export GMAKE_OPTIONS="${MAKEOPTS}"
        # System python enablement:
@@ -468,6 +474,8 @@ src_configure() {
                $(use_with coinmp system-coinmp) \
                $(use_with collada system-opencollada) \
                $(use_with gltf system-libgltf) \
+               $(use_with google gdrive-client-id ${google_default_client_id}) \
+               $(use_with google gdrive-client-secret ${google_default_client_secret}) \
                $(use_with java) \
                $(use_with mysql system-mysql-cppconn) \
                $(use_with odk doxygen) \
index 2c92bb72f2d7cfaa7f485790449bfaa2270fb887..f2a30d660fe95cffc5bff18ada4c97c32362c4ec 100644 (file)
@@ -14,6 +14,7 @@ version</longdescription>
     <flag name="coinmp">Use sci-libs/coinor-mp as alternative solver</flag>
     <flag name="collada">Enable Collada for rendering 3D models stored in *.dae and *.kmz format</flag>
     <flag name="gltf">Use media-libs/libgltf for inserting 3D models in the glTF format into presentations</flag>
+    <flag name="google">Enable support for remote files on Google Drive</flag>
     <flag name="gtk3">Enable highly experimental gtk3 frontend</flag>
     <flag name="jemalloc">Use <pkg>dev-libs/jemalloc</pkg> for allocations</flag>
     <flag name="odk">Build the Office Development Kit</flag>