[folks/wip/tintou/libsocialweb-removal: 2/2] libsocialweb: Remove libsocialweb backend



commit 351779bedbd61acfba2d00c96294c43422f23cd4
Author: Corentin Noël <corentin elementary io>
Date:   Tue Feb 12 17:31:42 2019 +0100

    libsocialweb: Remove libsocialweb backend
    
    It is an unmaintained library

 Makefile.am                                        |   1 -
 backends/Makefile.am                               |   5 -
 backends/libsocialweb/Makefile.am                  |  44 --
 backends/libsocialweb/lib/Makefile.am              |  46 --
 .../lib/folks-libsocialweb-uninstalled.pc.in       |  12 -
 backends/libsocialweb/lib/folks-libsocialweb.deps  |   4 -
 backends/libsocialweb/lib/folks-libsocialweb.pc.in |  15 -
 backends/libsocialweb/lib/swf-persona-store.vala   | 491 ---------------------
 backends/libsocialweb/lib/swf-persona.vala         | 421 ------------------
 backends/libsocialweb/sw-backend-factory.vala      |  46 --
 backends/libsocialweb/sw-backend.vala              | 298 -------------
 configure.ac                                       |  55 ---
 docs/Makefile.am                                   |  69 ---
 docs/wiki/debugging.valadoc                        |   1 -
 folks.doap                                         |   7 +-
 folks/build-conf.vapi                              |   3 -
 po/POTFILES.in                                     |   1 -
 tests/Makefile.am                                  |   5 -
 tests/lib/Makefile.am                              |   5 -
 tests/lib/libsocialweb/Makefile.am                 |  61 ---
 tests/lib/libsocialweb/backend.vala                | 420 ------------------
 tests/lib/libsocialweb/test-case.vala              | 100 -----
 tests/lib/test-case.vala                           |   3 -
 tests/libsocialweb/Makefile.am                     |  50 ---
 tests/libsocialweb/aggregation.vala                | 278 ------------
 tests/libsocialweb/dummy-lsw.vala                  | 275 ------------
 26 files changed, 3 insertions(+), 2713 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 907367d3..f5dd9cf0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -29,7 +29,6 @@ DISTCHECK_CONFIGURE_FLAGS = \
        --enable-tests \
        --enable-eds-backend \
        --enable-telepathy-backend \
-       --enable-libsocialweb-backend \
        --enable-tracker-backend \
        --enable-zeitgeist \
        --disable-vala \
diff --git a/backends/Makefile.am b/backends/Makefile.am
index 774f02ce..83e61853 100644
--- a/backends/Makefile.am
+++ b/backends/Makefile.am
@@ -7,10 +7,6 @@ if ENABLE_TELEPATHY
 SUBDIRS += telepathy
 endif
 
-if ENABLE_LIBSOCIALWEB
-SUBDIRS += libsocialweb
-endif
-
 if ENABLE_TRACKER
 SUBDIRS += tracker
 endif
@@ -31,7 +27,6 @@ DIST_SUBDIRS = \
        bluez \
        eds \
        key-file \
-       libsocialweb \
        ofono \
        telepathy \
        tracker \
diff --git a/configure.ac b/configure.ac
index f091fbe0..44963031 100644
--- a/configure.ac
+++ b/configure.ac
@@ -37,10 +37,6 @@ m4_define([folks_eds_lt_current], [43])
 m4_define([folks_eds_lt_revision], [4])
 m4_define([folks_eds_lt_age], [18])
 
-m4_define([folks_libsocialweb_lt_current], [43])
-m4_define([folks_libsocialweb_lt_revision], [4])
-m4_define([folks_libsocialweb_lt_age], [18])
-
 m4_define([folks_telepathy_lt_current], [43])
 m4_define([folks_telepathy_lt_revision], [4])
 m4_define([folks_telepathy_lt_age], [18])
@@ -106,9 +102,6 @@ AC_SUBST([LT_AGE])
 FOLKS_EDS_LT_VERSION=folks_eds_lt_current:folks_eds_lt_revision:folks_eds_lt_age
 AC_SUBST([FOLKS_EDS_LT_VERSION])
 
-FOLKS_LIBSOCIALWEB_LT_VERSION=folks_libsocialweb_lt_current:folks_libsocialweb_lt_revision:folks_libsocialweb_lt_age
-AC_SUBST([FOLKS_LIBSOCIALWEB_LT_VERSION])
-
 FOLKS_TELEPATHY_LT_VERSION=folks_telepathy_lt_current:folks_telepathy_lt_revision:folks_telepathy_lt_age
 AC_SUBST([FOLKS_TELEPATHY_LT_VERSION])
 
@@ -130,7 +123,6 @@ AC_SUBST([API_VERSION_DOT])
 
 # Backend library API versions
 AC_SUBST([FOLKS_EDS_API_VERSION], [0.6])
-AC_SUBST([FOLKS_LIBSOCIALWEB_API_VERSION], [0.6])
 AC_SUBST([FOLKS_TELEPATHY_API_VERSION], [0.6])
 AC_SUBST([FOLKS_TRACKER_API_VERSION], [0.6])
 AC_SUBST([FOLKS_DUMMY_API_VERSION], [0.6])
@@ -214,46 +206,6 @@ AC_ARG_ENABLE(zeitgeist,
         enable_zeitgeist=$enableval,
         enable_zeitgeist=auto)
 
-# Automatically check the dependencies for the libsocialweb backend
-SW_CLIENT_REQUIRED=0.25.20
-AC_ARG_ENABLE(libsocialweb-backend,
-        AS_HELP_STRING([--enable-libsocialweb-backend=@<:@no/yes/auto@:>@],
-                       [build the Libsocialweb backend (default: auto)]),
-        enable_libsocialweb_backend=$enableval,
-        enable_libsocialweb_backend=auto )
-
-# this may be overwritten farther down
-AC_DEFINE(HAVE_LIBSOCIALWEB, [0],
-          [Define as 1 if you have the libsocialweb backend])
-AS_IF([test "x$enable_libsocialweb_backend" != "xno"], [
-  PKG_CHECK_MODULES([SW_CLIENT], [libsocialweb-client >= $SW_CLIENT_REQUIRED],
-      have_libsocialweb_backend="yes", have_libsocialweb_backend="no")
-  AS_IF([test "x$have_libsocialweb_backend" = "xyes" -a \
-          "x$enable_vala" = "xyes"], [
-    VALA_CHECK_PACKAGES([telepathy-glib
-                         gio-2.0
-                         gee-0.8
-                         libsocialweb-client],
-        ,
-        have_libsocialweb_backend="no")
-  ])
-
-  AS_IF([test "x$have_libsocialweb_backend" = "xyes"], [
-    AC_DEFINE(HAVE_LIBSOCIALWEB, [1],
-              [Define if you have the libsocialweb backend])
-  ])
-], [
-   have_libsocialweb_backend=no
-])
-
-AS_IF([test "x$enable_libsocialweb_backend" = "xyes" -a \
-  "x$have_libsocialweb_backend" != "xyes"], [
-    AC_MSG_ERROR([Cannot find libsocialweb dependencies.])
-])
-
-AM_CONDITIONAL([ENABLE_LIBSOCIALWEB],
-        [test "x$have_libsocialweb_backend" = "xyes"])
-
 # -----------------------------------------------------------
 # Dependencies
 # -----------------------------------------------------------
@@ -790,10 +742,6 @@ AC_CONFIG_FILES([
     backends/dummy/Makefile
     backends/dummy/lib/Makefile
     backends/key-file/Makefile
-    backends/libsocialweb/Makefile
-    backends/libsocialweb/lib/Makefile
-    backends/libsocialweb/lib/folks-libsocialweb.pc
-    backends/libsocialweb/lib/folks-libsocialweb-uninstalled.pc
     backends/telepathy/Makefile
     backends/telepathy/lib/Makefile
     backends/tracker/Makefile
@@ -812,7 +760,6 @@ AC_CONFIG_FILES([
     tests/folks/Makefile
     tests/dummy/Makefile
     tests/key-file/Makefile
-    tests/libsocialweb/Makefile
     tests/telepathy/Makefile
     tests/tracker/Makefile
     tests/lib/Makefile
@@ -821,7 +768,6 @@ AC_CONFIG_FILES([
     tests/lib/eds/Makefile
     tests/lib/dummy/Makefile
     tests/lib/key-file/Makefile
-    tests/lib/libsocialweb/Makefile
     tests/lib/telepathy/Makefile
     tests/lib/tracker/Makefile
     tests/lib/telepathy/contactlist/Makefile
@@ -846,7 +792,6 @@ Configure summary:
         Inspector tool..............:  ${with_inspect_tool}
         Telepathy backend...........:  ${enable_telepathy_backend}
         Tracker backend.............:  ${enable_tracker_backend}
-        Libsocialweb backend........:  ${have_libsocialweb_backend}
         E-D-S backend...............:  ${enable_eds_backend}
         Ofono backend...............:  ${enable_ofono_backend}
         BlueZ backend...............:  ${enable_bluez_backend}
diff --git a/docs/Makefile.am b/docs/Makefile.am
index f9328365..6d532ee6 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -307,75 +307,6 @@ upload_docs += upload-docs-c-folks-eds upload-docs-vala-folks-eds
 
 endif # ENABLE_EDS
 
-#####################
-# libsocialweb docs #
-#####################
-if ENABLE_LIBSOCIALWEB
-folkslibsocialwebdocdir=$(datadir)/devhelp/references/folks-libsocialweb
-folkslibsocialwebgtkdocdir=$(datadir)/gtk-doc/html/folks-libsocialweb
-
-folkslibsocialwebdoc_DATA = \
-       folks-libsocialweb/folks-libsocialweb/folks-libsocialweb.devhelp2 \
-       $(addprefix folks-libsocialweb/folks-libsocialweb/,$(common_doc_files))\
-       $(NULL)
-
-folkslibsocialwebgtkdoc_DATA = gtk-doc/folks-libsocialweb/html/*
-
-$(folkslibsocialwebdoc_DATA): \
-       folks-libsocialweb-doc.stamp \
-       $(NULL)
-$(folkslibsocialwebgtkdoc_DATA): folks-libsocialweb-gtk-doc.stamp
-
-folks_libsocialweb_doc_files = $(top_srcdir)/backends/libsocialweb/lib/*.vala
-folks_libsocialweb_doc_deps = \
-       gmodule-2.0 \
-       gio-2.0 \
-       gee-0.8 \
-       libsocialweb-client \
-       build-conf \
-       folks \
-       folks-internal \
-       folks-generics \
-       $(NULL)
-valadoc_flags_folks_libsocialweb = \
-       $(valadoc_flags) \
-       -X $(top_srcdir)/backends/libsocialweb/lib/folks/folks-libsocialweb.h \
-       $(addprefix --pkg=,$(folks_libsocialweb_doc_deps)) \
-       --vapidir=$(top_srcdir)/folks \
-       --vapidir=$(top_srcdir)/backends/libsocialweb/lib \
-       $(folks_libsocialweb_doc_files) \
-       $(NULL)
-
-folks-libsocialweb-doc.stamp: $(folks_libsocialweb_doc_files)
-       $(AM_V_GEN)$(VALADOC) \
-               -o folks-libsocialweb/ \
-               --doclet=devhelp \
-               $(valadoc_flags_folks_libsocialweb) \
-               $(NULL)
-       @touch $@
-
-folks-libsocialweb-gtk-doc.stamp: $(folks_libsocialweb_doc_files)
-       $(AM_V_GEN)$(VALADOC) \
-               -X -l -X $(top_builddir)/folks/.libs/libfolks.so \
-               -X -l -X $(top_builddir)/backends/libsocialweb/lib/.libs/libfolks-libsocialweb.so \
-               -o gtk-doc/folks-libsocialweb \
-               --doclet=gtkdoc \
-               $(valadoc_flags_folks_libsocialweb) \
-               $(NULL)
-       @touch $@
-
-distclean_dirs += folks-libsocialweb
-docs += \
-       folks-libsocialweb-doc \
-       folks-libsocialweb-gtk-doc \
-       $(NULL)
-upload_docs += \
-       upload-docs-c-folks-libsocialweb \
-       upload-docs-vala-folks-libsocialweb \
-       $(NULL)
-
-endif # ENABLE_LIBSOCIALWEB
-
 #####################
 # end optional docs #
 #####################
diff --git a/docs/wiki/debugging.valadoc b/docs/wiki/debugging.valadoc
index c7cf5f0d..c7bd6b9b 100644
--- a/docs/wiki/debugging.valadoc
+++ b/docs/wiki/debugging.valadoc
@@ -9,7 +9,6 @@ Available values for folks for the ''G_MESSAGES_DEBUG'' environment variable are
  * ''folks'' (for the core of libfolks)
  * ''eds'' (for the evolution-data-server backend)
  * ''key-file'' (for the key file backend)
- * ''libsocialweb'' (for the libsocialweb backend)
  * ''telepathy'' (for the Telepathy backend)
  * ''tracker'' (for the Tracker backend)
 
diff --git a/folks.doap b/folks.doap
index 6595d513..0d9a0d9d 100644
--- a/folks.doap
+++ b/folks.doap
@@ -9,10 +9,9 @@
   <shortdesc xml:lang="en">People aggregation library</shortdesc>
   <category rdf:resource="http://api.gnome.org/doap-extensions#core"; />
   <description>Folks is a contact aggregation library. It retrieves contacts
-  from various sources (including Telepathy IM accounts, libsocialweb web
-  service contacts, and local contact stores) and compiles them into
-  fully-fledged people objects. The ultimate goal is to provide the platform
-  with easy access to all of the user's contacts.</description>
+  from various sources (including Telepathy IM accounts, and local contact stores)
+  and compiles them into fully-fledged people objects. The ultimate goal isto provide
+  the platform with easy access to all of the user's contacts.</description>
   <homepage rdf:resource="https://wiki.gnome.org/Projects/Folks"; />
   <download-page rdf:resource="https://download.gnome.org/sources/folks/"; />
   <bug-database
diff --git a/folks/build-conf.vapi b/folks/build-conf.vapi
index a3ee20d4..a97593fc 100644
--- a/folks/build-conf.vapi
+++ b/folks/build-conf.vapi
@@ -48,9 +48,6 @@ public class Folks.BuildConf
   [CCode (cname = "HAVE_EDS")]
   public static bool HAVE_EDS;
 
-  [CCode (cname = "HAVE_LIBSOCIALWEB")]
-  public static bool HAVE_LIBSOCIALWEB;
-
   [CCode (cname = "HAVE_OFONO")]
   public static bool HAVE_OFONO;
 
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 7cac02c4..eb3537f0 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -4,7 +4,6 @@ backends/eds/lib/edsf-persona-store.vala
 backends/key-file/kf-backend-factory.vala
 backends/key-file/kf-persona-store.vala
 backends/key-file/kf-persona.vala
-backends/libsocialweb/lib/swf-persona-store.vala
 backends/ofono/ofono-backend.vala
 backends/telepathy/lib/tp-lowlevel.c
 backends/telepathy/lib/tpf-persona-store.vala
diff --git a/tests/Makefile.am b/tests/Makefile.am
index 38561942..7684a6c0 100644
--- a/tests/Makefile.am
+++ b/tests/Makefile.am
@@ -18,10 +18,6 @@ if ENABLE_TELEPATHY
 SUBDIRS += folks telepathy
 endif
 
-if ENABLE_LIBSOCIALWEB
-SUBDIRS += libsocialweb
-endif
-
 if ENABLE_EDS
 SUBDIRS += eds
 endif
@@ -42,7 +38,6 @@ DIST_SUBDIRS = \
        key-file \
        bluez \
        telepathy \
-       libsocialweb \
        tracker \
        $(NULL)
 
diff --git a/tests/lib/Makefile.am b/tests/lib/Makefile.am
index 988f0439..429abe33 100644
--- a/tests/lib/Makefile.am
+++ b/tests/lib/Makefile.am
@@ -21,10 +21,6 @@ SUBDIRS += \
        $(NULL)
 endif
 
-if ENABLE_LIBSOCIALWEB
-SUBDIRS += libsocialweb
-endif
-
 if ENABLE_TRACKER
 SUBDIRS += tracker
 endif
@@ -39,7 +35,6 @@ DIST_SUBDIRS = \
        bluez \
        telepathy \
        eds \
-       libsocialweb \
        tracker \
        $(NULL)
 
diff --git a/tests/lib/test-case.vala b/tests/lib/test-case.vala
index cfed5219..a86ea9e2 100644
--- a/tests/lib/test-case.vala
+++ b/tests/lib/test-case.vala
@@ -75,9 +75,6 @@ public abstract class Folks.TestCase : Object
           if (Folks.BuildConf.HAVE_EDS)
             locations += Folks.BuildConf.ABS_TOP_BUILDDIR + "/backends/eds/.libs/eds.so";
 
-          if (Folks.BuildConf.HAVE_LIBSOCIALWEB)
-            locations += Folks.BuildConf.ABS_TOP_BUILDDIR + "/backends/libsocialweb/.libs/libsocialweb.so";
-
           if (Folks.BuildConf.HAVE_OFONO)
             locations += Folks.BuildConf.ABS_TOP_BUILDDIR + "/backends/ofono/.libs/ofono.so";
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]