public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in x11-libs/libwnck/files: libwnck-2.26.2-automagic.patch
@ 2009-08-08 22:02 Gilles Dartiguelongue (eva)
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Dartiguelongue (eva) @ 2009-08-08 22:02 UTC (permalink / raw
  To: gentoo-commits

eva         09/08/08 22:02:42

  Added:                libwnck-2.26.2-automagic.patch
  Log:
  Version bump. Make startup-notification non-automagic, bug #278464. Clean up old revisions.
  (Portage version: 2.2_rc33/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  x11-libs/libwnck/files/libwnck-2.26.2-automagic.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libwnck/files/libwnck-2.26.2-automagic.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/x11-libs/libwnck/files/libwnck-2.26.2-automagic.patch?rev=1.1&content-type=text/plain

Index: libwnck-2.26.2-automagic.patch
===================================================================
From e02c2e1e79a3687865266bdbd28318b263f9b381 Mon Sep 17 00:00:00 2001
From: Gilles Dartiguelongue <eva@gentoo.org>
Date: Sat, 8 Aug 2009 23:34:01 +0200
Subject: [PATCH] Make startup-notification non-automagic

See description at http://www.gentoo.org/proj/en/qa/automagic.xml

This patch makes startup-notification properly switchable at configure
time while retaining auto-detection capability.

Gentoo: https://bugs.gentoo.org/show_bug.cgi?id=278464
---
 configure.in |   30 +++++++++++++++++++++---------
 1 files changed, 21 insertions(+), 9 deletions(-)

diff --git a/configure.in b/configure.in
index 731ac3f..75fad2d 100644
--- a/configure.in
+++ b/configure.in
@@ -82,15 +82,27 @@ AC_SUBST(wncklocaledir)
 
 AC_PATH_PROG(PKG_CONFIG, pkg-config)
 
-AC_MSG_CHECKING([if building with libstartup-notification])
-STARTUP_NOTIFICATION_REQUIRED=0.4
-if $PKG_CONFIG --atleast-version $STARTUP_NOTIFICATION_REQUIRED libstartup-notification-1.0; then
-  AC_MSG_RESULT([yes])
-  AC_DEFINE_UNQUOTED(HAVE_STARTUP_NOTIFICATION, 1, [Define if you have libstartup-notification])
-  STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0
-else
-  AC_MSG_RESULT([no])
-  STARTUP_NOTIFICATION_PACKAGE=
+AC_ARG_ENABLE(startup-notification,
+              [AC_HELP_STRING([--enable-startup-notification],
+                              [startup notification library @<:@default=auto@:>@])],,
+              [enable_startup_notification=auto])
+
+STARTUP_NOTIFICATION_PACKAGE=
+if test "$enable_startup_notification" != "no"; then
+   STARTUP_NOTIFICATION_REQUIRED=0.4
+   PKG_CHECK_MODULES(STARTUP_NOTIFICATION,
+      [libstartup-notification-1.0 >= $STARTUP_NOTIFICATION_REQUIRED],
+      [have_sn=yes]
+      [have_sn=no])
+
+   if test "$have_sn" = "no" -a "$enable_start_notification" = "yes"; then
+      AC_MSG_ERROR([startup-notification support required but not found])
+   fi
+
+   if test "$have_sn" = "yes"; then
+      AC_DEFINE_UNQUOTED(HAVE_STARTUP_NOTIFICATION, 1, [Define if you have libstartup-notification])
+      STARTUP_NOTIFICATION_PACKAGE=libstartup-notification-1.0
+   fi
 fi
 AC_SUBST(STARTUP_NOTIFICATION_PACKAGE)
 
-- 
1.6.3.3







^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in x11-libs/libwnck/files: libwnck-2.26.2-automagic.patch
@ 2010-10-08 23:12 Gilles Dartiguelongue (eva)
  0 siblings, 0 replies; 2+ messages in thread
From: Gilles Dartiguelongue (eva) @ 2010-10-08 23:12 UTC (permalink / raw
  To: gentoo-commits

eva         10/10/08 23:12:38

  Removed:              libwnck-2.26.2-automagic.patch
  Log:
  Clean up old revisions.
  
  (Portage version: 2.2_rc91/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-09  0:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-08 22:02 [gentoo-commits] gentoo-x86 commit in x11-libs/libwnck/files: libwnck-2.26.2-automagic.patch Gilles Dartiguelongue (eva)
  -- strict thread matches above, loose matches on Subject: below --
2010-10-08 23:12 Gilles Dartiguelongue (eva)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox