/soc/2013/ankitkv/gobjectification: 9559338ad3f5: Merge gtkdoc-c...

Ankit Vani a at nevitus.org
Sat Feb 8 20:12:43 EST 2014


Changeset: 9559338ad3f5ee49e05af472173492a7e3f9b0c7
Author:	 Ankit Vani <a at nevitus.org>
Date:	 2014-02-09 06:42 +0530
Branch:	 soc.2013.gobjectification.plugins
URL: https://hg.pidgin.im/soc/2013/ankitkv/gobjectification/rev/9559338ad3f5

Description:

Merge gtkdoc-conversion

diffstat:

 autogen.sh              |  19 +++++++++++++++++--
 configure.ac            |   4 ++++
 libpurple/dbus-server.h |   5 ++---
 3 files changed, 23 insertions(+), 5 deletions(-)

diffs (80 lines):

diff --git a/autogen.sh b/autogen.sh
--- a/autogen.sh
+++ b/autogen.sh
@@ -100,6 +100,22 @@ run_or_die () { # beotch
 	fi
 }
 
+check_gtkdoc() {
+	printf "checking for gtkdocize... "
+	GTKDOCIZE=`which gtkdocize 2>/dev/null`
+
+	if [ x"${GTKDOCIZE}" = x"" ] ; then
+		echo "not found."
+		echo "EXTRA_DIST =" > gtk-doc.make
+		echo "You don't have gtk-doc installed, and thus won't be able to
+generate the documentation.
+"
+	else
+		echo "${GTKDOCIZE}"
+		run_or_die ${GTKDOCIZE} ${GTKDOCIZE_FLAGS}
+	fi
+}
+
 cleanup () {
 	rm -f autogen-??????
 	echo
@@ -137,7 +153,6 @@ fi
 ###############################################################################
 check "$libtoolize";		LIBTOOLIZE=${BIN};
 check "glib-gettextize";	GLIB_GETTEXTIZE=${BIN};
-check "gtkdocize";		GTKDOCIZE=${BIN};
 check "intltoolize";		INTLTOOLIZE=${BIN};
 check "sed";			SED=${BIN};
 check "aclocal";		ACLOCAL=${BIN};
@@ -157,8 +172,8 @@ run_or_die ${SED} -i -e "s:'\^\$\$lang\$
 # glib-gettextize doesn't seems to use AM_V_GEN macro
 ${SED} -i -e "s:\\tfile=\`echo:\\t at echo -e \"  GEN\\\\t\$\@\"; file=\`echo:g" po/Makefile.in.in
 run_or_die ${ACLOCAL} ${ACLOCAL_FLAGS:-"-I m4macros"}
-run_or_die ${GTKDOCIZE} ${GTKDOCIZE_FLAGS}
 run_or_die ${AUTOHEADER} ${AUTOHEADER_FLAGS}
+check_gtkdoc
 run_or_die ${AUTOMAKE} ${AUTOMAKE_FLAGS:-"-a -c --gnu"}
 run_or_die ${AUTOCONF} ${AUTOCONF_FLAGS}
 
diff --git a/configure.ac b/configure.ac
--- a/configure.ac
+++ b/configure.ac
@@ -2557,6 +2557,10 @@ GTK_DOC_CHECK([1.16],[--flavour no-tmpl]
 AM_CONDITIONAL([ENABLE_GTK_DOC], false)
 ])
 
+if test "x$enable_gtk_doc" = "x" ; then
+	enable_gtk_doc=no
+fi
+
 AC_ARG_ENABLE(debug, [AS_HELP_STRING([--enable-debug],
 	[compile with debugging support])], , enable_debug=no)
 
diff --git a/libpurple/dbus-server.h b/libpurple/dbus-server.h
--- a/libpurple/dbus-server.h
+++ b/libpurple/dbus-server.h
@@ -33,6 +33,8 @@
 
 G_BEGIN_DECLS
 
+typedef struct _PurpleDBusType PurpleDBusType;
+
 /**
  * PurpleDBusType:
  *
@@ -46,9 +48,6 @@ G_BEGIN_DECLS
  * parent.  Parent means the same as the base class in object oriented
  * programming.
  */
-
-typedef struct _PurpleDBusType PurpleDBusType;
-
 struct _PurpleDBusType {
     PurpleDBusType *parent;
 };



More information about the Commits mailing list