diff options
Diffstat (limited to 'dev-util/anjuta/files/anjuta-2.26.0.0-symbol-db-optional.patch')
-rw-r--r-- | dev-util/anjuta/files/anjuta-2.26.0.0-symbol-db-optional.patch | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/dev-util/anjuta/files/anjuta-2.26.0.0-symbol-db-optional.patch b/dev-util/anjuta/files/anjuta-2.26.0.0-symbol-db-optional.patch new file mode 100644 index 000000000000..b091ebeac07b --- /dev/null +++ b/dev-util/anjuta/files/anjuta-2.26.0.0-symbol-db-optional.patch @@ -0,0 +1,75 @@ +diff -Naur anjuta-2.25.903.0.orig/configure.in anjuta-2.25.903.0/configure.in +--- anjuta-2.25.903.0.orig/configure.in 2009-03-03 00:22:52.000000000 +0530 ++++ anjuta-2.25.903.0/configure.in 2009-03-14 20:36:35.677136513 +0530 +@@ -312,6 +312,29 @@ + AC_DEFINE(HAVE_GRAPHVIZ, [], [Define if we have GraphViz >= 2.6.0]) + fi + ++dnl Plugin Symbol DB ++dnl ------------------------------------------------------------- ++ ++AC_ARG_ENABLE(plugin-symbol-db, ++ AC_HELP_STRING([--disable-plugin-symbol-db],[libgda-4 based symbol DB]), ++ [ if test "$enableval" = "yes"; then ++ user_disabled_symbol_db=1 ++ fi ], ++ [ user_disabled_symbol_db=0 ]) ++ ++AC_MSG_CHECKING(if symbol db plugin is disabled) ++if test "$user_disabled_symbol_db" = 1; then ++ AC_MSG_RESULT(no) ++ symbol_db="yes" ++ ++ PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB, ++ [libgda-4.0 >= $GDA_REQUIRED]) ++else ++ AC_MSG_RESULT(yes) ++ symbol_db="no" ++fi ++AM_CONDITIONAL(HAVE_PLUGIN_SYMBOL_DB, [test x$symbol_db = xyes]) ++ + dnl Build gtksourceview plugin only on gnome 2.14 and gtk 2.10 + dnl ------------------------------------------------------------- + +@@ -357,9 +380,6 @@ + fi + AM_CONDITIONAL(HAVE_PLUGIN_SCINTILLA, [test x$scintilla = xyes]) + +-PKG_CHECK_MODULES(PLUGIN_SYMBOL_DB, +- [libgda-4.0 >= $GDA_REQUIRED]) +- + dnl Valgrind plugin + dnl check for libbfd + dnl ------------------------------------------------------------- +@@ -1071,6 +1091,13 @@ + echo " Requires graphviz (>= 2.6.0); http://graphviz.org" + fi + ++if [ test x$symbol_db = xyes ]; then ++ echo "Building Symbol DB plugin: .............................YES" ++else ++ echo "Building Symbol DB plugin: .............................NO" ++ echo " Requires libgda-4" ++fi ++ + if [ test x$valgrind = xyes ]; then + echo "Building Valgrind debugger plugin: .....................YES" + else +diff -Naur anjuta-2.25.903.0.orig/plugins/symbol-db/Makefile.am anjuta-2.25.903.0/plugins/symbol-db/Makefile.am +--- anjuta-2.25.903.0.orig/plugins/symbol-db/Makefile.am 2009-02-17 02:28:39.000000000 +0530 ++++ anjuta-2.25.903.0/plugins/symbol-db/Makefile.am 2009-03-14 20:33:18.573135840 +0530 +@@ -1,3 +1,5 @@ ++if HAVE_PLUGIN_SYMBOL_DB ++ + SUBDIRS = images test + + symbol_db_datadir = $(anjuta_data_dir) +@@ -77,6 +79,8 @@ + prefs_glade_files = anjuta-symbol-db.glade + include $(top_srcdir)/scripts/build-schemas.mk + ++endif ++ + EXTRA_DIST = \ + $(plugin_in_files) \ + $(symbol_db_plugin_DATA) \ |