[gevice] Fixes bug #583562
- From: Alejandro Valdes Jimenez <avaldes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gevice] Fixes bug #583562
- Date: Fri, 22 May 2009 17:53:06 -0400 (EDT)
commit b2b1f87fdf16622cdfead30eb329a93b3ae05538
Author: Alejandro Valdes jimenez <avaldes amvj in utalca cl>
Date: Fri May 22 17:52:33 2009 -0400
Fixes bug #583562
---
ChangeLog | 4 +-
README | 5 --
configure.ac | 134 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++-
3 files changed, 134 insertions(+), 9 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index dc68d18..1698458 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,10 +1,12 @@
2009-05-22 Alejandro Valdes jimenez <avaldes gnome org>
-
+ Fixes bug #583562.
* src/gevice.py: use show_message().
* src/gevicedatabase.py: use show_message().
* src/geviceexport.py: use show_message().
* src/gevicemaintainer.py: use show_message().
* src/geviceprefer.py: use show_message().
+ * README:
+ * configure.ac: add checking necesary modules of python.
2009-05-21 Alejandro Valdes Jimenez <avaldes gnome org>
diff --git a/README b/README
index e6f3b23..b7ae8cf 100644
--- a/README
+++ b/README
@@ -23,11 +23,6 @@ python-pygraphviz
python-vte
python-psycopg2
-autoconf
-automake
-intltool
-
-libgconf2-dev
* Features
- Allow you to draw the net model.
diff --git a/configure.ac b/configure.ac
index 3d13b02..1d17fee 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1,4 +1,4 @@
-AC_INIT(gevice, 0.5.1)
+AC_INIT([gevice], [0.5.1],[http://bugzilla.gnome.org/enter_bug.cgi?product=gevice],[gevice])
AC_CONFIG_SRCDIR(src/gevice.py)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
@@ -7,14 +7,141 @@ AM_MAINTAINER_MODE
AM_PATH_PYTHON
-# GConf
-PKG_CHECK_MODULES(gconf, gconf-2.0)
+GCONF_REQUIRED=2.0.0
+PKG_CHECK_MODULES(GEVICE,
+ gconf-2.0 >= $GCONF_REQUIRED)
+
AM_GCONF_SOURCE_2
AC_PATH_PROG([GCONFTOOL], [gconftool-2], [no])
if test "$GCONFTOOL" = "no"; then
AC_MSG_ERROR([gconftool-2 not found])
fi
+dnl check modules for python
+PYTHON="python"
+
+MODULE_NAME="gconf"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="gettext"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="pygtk"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="os"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="sys"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="gnome"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="gtk.glade"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="gobject"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="gtk"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="psycopg2"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="pygraphviz"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+MODULE_NAME="vte"
+$PYTHON -c "import $MODULE_NAME" 2>/dev/null
+if test $? -eq 0
+then
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: found)
+else
+ AC_MSG_RESULT(checking for python module: $MODULE_NAME: not found)
+ exit 1
+fi
+
+
+
# i18n
ALL_LINGUAS="es"
GETTEXT_PACKAGE=gevice
@@ -32,3 +159,4 @@ AC_CONFIG_FILES([
src/Makefile
])
AC_OUTPUT
+
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]