diff options
| author | Dennis Schridde <devurandom@gmx.net> | 2011-02-05 22:41:15 +0100 |
|---|---|---|
| committer | Dennis Schridde <devurandom@gmx.net> | 2011-02-05 22:41:15 +0100 |
| commit | 2579ba6fc74c17d300b74db72182b027efdabcc8 (patch) | |
| tree | 5d8d3410b20453087ee4771770a4d712a592f9a1 /dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch | |
| parent | 890bf2bd501ac2088077d6bf4bbde6bd4a1f482e (diff) | |
| download | kde-2579ba6fc74c17d300b74db72182b027efdabcc8.tar.gz kde-2579ba6fc74c17d300b74db72182b027efdabcc8.tar.bz2 kde-2579ba6fc74c17d300b74db72182b027efdabcc8.zip | |
[dev-libs/libindicate] Improve patches based on upstream request, revbump
(Portage version: 2.2.0_alpha20/git/Linux x86_64, signed Manifest commit with key 50ED256E)
Diffstat (limited to 'dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch')
| -rw-r--r-- | dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch | 32 |
1 files changed, 24 insertions, 8 deletions
diff --git a/dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch b/dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch index cb058bc7e25..43d42fbd22f 100644 --- a/dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch +++ b/dev-libs/libindicate/files/libindicate-0.4.91-optional-python.patch @@ -1,28 +1,44 @@ --- configure.ac.orig 2011-01-29 21:51:17.724952231 +0100 +++ configure.ac 2011-01-29 21:52:29.969745013 +0100 -@@ -153,4 +153,14 @@ +@@ -146,4 +146,14 @@ # Check for Python support ########################### +AC_ARG_ENABLE([python], + AC_HELP_STRING([--disable-python], [Disable Python bindings generation]), -+ [enable_python=$enableval], enable_python=auto) ++ [enable_python=$enableval], [enable_python=auto]) +AM_CONDITIONAL([WANT_PYTHON], [test "x$enable_python" != "xno"]) + -+if test "x$enable_python" != "xno" ; then -+if test "x$enable_gtk" = "xno" ; then -+ AC_MSG_ERROR([Python bindings require GTK support, please --enable-gtk]) -+fi ++AS_IF([test "x$enable_python" != "xno"],[ ++ AS_IF([test "x$have_gtk" != "xyes"],[ ++ AC_MSG_ERROR([Python bindings require GTK support, please --enable-gtk]) ++ ]) + AM_PATH_PYTHON(2.3.5) -@@ -179,6 +185,7 @@ +@@ -156,2 +166,4 @@ +- pygobject-2.0 >= $PYGOBJECT_REQUIRED]) ++ pygobject-2.0 >= $PYGOBJECT_REQUIRED], ++ [have_python=yes] ++) + +@@ -171,6 +183,7 @@ PYGTK_CODEGEN="$PYTHON `$PKG_CONFIG --variable=codegendir pygtk-2.0`/codegen.py" AC_SUBST(PYGTK_CODEGEN) AC_MSG_RESULT($PYGTK_CODEGEN) -+fi ++]) ########################### # GTK Doc +@@ -271,2 +284,7 @@ +- GObject Introspection: $enable_introspection +-]) ++ GObject Introspection: $enable_introspection ++]) ++ ++AS_IF([test "x$have_python" = "xyes"], ++ [AC_MSG_NOTICE([ Python bindings: yes])], ++ [AC_MSG_NOTICE([ Python bindings: no])] ++) --- bindings/Makefile.am.orig 2011-01-29 21:53:17.826282713 +0100 +++ bindings/Makefile.am 2011-01-29 21:53:52.951209371 +0100 @@ -1,2 +1,6 @@ |
