summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregorio Guidi <greg_g@gentoo.org>2005-06-07 13:01:02 +0000
committerGregorio Guidi <greg_g@gentoo.org>2005-06-07 13:01:02 +0000
commit59d839e8154f5fd46cd157c84f27fd3de43ab493 (patch)
tree94867709ae7a76563ba57f60eceed6d06b892089 /kde-base/kdebase/files
parentRevision bump. Added support for the debug USE flag, bug 95100. Changed the b... (diff)
downloadgentoo-2-59d839e8154f5fd46cd157c84f27fd3de43ab493.tar.gz
gentoo-2-59d839e8154f5fd46cd157c84f27fd3de43ab493.tar.bz2
gentoo-2-59d839e8154f5fd46cd157c84f27fd3de43ab493.zip
Add patch to properly respect USE flags (#81966, #92433).
(Portage version: 2.0.51.19)
Diffstat (limited to 'kde-base/kdebase/files')
-rw-r--r--kde-base/kdebase/files/digest-kdebase-3.4.1-r11
-rw-r--r--kde-base/kdebase/files/kdebase-3.4.1-configure.patch171
2 files changed, 172 insertions, 0 deletions
diff --git a/kde-base/kdebase/files/digest-kdebase-3.4.1-r1 b/kde-base/kdebase/files/digest-kdebase-3.4.1-r1
new file mode 100644
index 000000000000..df3b0dedb416
--- /dev/null
+++ b/kde-base/kdebase/files/digest-kdebase-3.4.1-r1
@@ -0,0 +1 @@
+MD5 8fbe0b943721b79f2549064b580acdde kdebase-3.4.1.tar.bz2 22433034
diff --git a/kde-base/kdebase/files/kdebase-3.4.1-configure.patch b/kde-base/kdebase/files/kdebase-3.4.1-configure.patch
new file mode 100644
index 000000000000..e1bed84f7deb
--- /dev/null
+++ b/kde-base/kdebase/files/kdebase-3.4.1-configure.patch
@@ -0,0 +1,171 @@
+diff -Nur kdebase-3.4.1.orig/kcontrol/input/configure.in.bot kdebase-3.4.1/kcontrol/input/configure.in.bot
+--- kdebase-3.4.1.orig/kcontrol/input/configure.in.bot 2005-05-23 14:13:38.000000000 +0200
++++ kdebase-3.4.1/kcontrol/input/configure.in.bot 2005-06-05 22:22:40.000000000 +0200
+@@ -1,10 +1,4 @@
+-if test "$LUSBLIB" = "no"; then
+- echo
+- echo " Problem! libusb library not found, get it from"
+- echo " http://libusb.sourceforge.net"
+-fi
+-
+-if (test x"$USB_LIBS" = x""); then
++if test "x$with_libusb" = xcheck && test "x$have_libusb" = xno; then
+ echo ""
+ echo "Logitech mouse support is disabled. Provide libusb to enable it."
+ echo ""
+diff -Nur kdebase-3.4.1.orig/kcontrol/input/configure.in.in kdebase-3.4.1/kcontrol/input/configure.in.in
+--- kdebase-3.4.1.orig/kcontrol/input/configure.in.in 2005-05-23 14:13:38.000000000 +0200
++++ kdebase-3.4.1/kcontrol/input/configure.in.in 2005-06-05 22:22:40.000000000 +0200
+@@ -1,19 +1,26 @@
+-LIBUSBCONFIG=""
+-AC_PATH_PROG(LIBUSBCONFIG,libusb-config,no)
+-if test $LIBUSBCONFIG = "no" ; then
+- AC_MSG_WARN(Can't find libusb-config)
+- AC_MSG_WARN(Check your libusb installation)
+- USB_LIBS=""
+- USB_CFLAGS=""
+-else
+- USB_LIBS="$($LIBUSBCONFIG --libs)"
+- USB_CFLAGS="$($LIBUSBCONFIG --cflags)"
+-AC_CHECK_LIB(usb,main,
+- AC_DEFINE(HAVE_LIBUSB, 1, [Defined if you have libusb]),
+- [],
+- $USB_LIBS
+-)
++AC_ARG_WITH(libusb,
++ [AS_HELP_STRING(--with-libusb,
++ [enable control of some mouse models through libusb @<:@default=check@:>@])],
++ [], with_libusb=check)
++
++USB_LIBS=
++USB_CFLAGS=
++have_libusb=no
++if test "x$with_libusb" != xno; then
++ AC_PATH_PROG(LIBUSBCONFIG,libusb-config,no)
++ if test $LIBUSBCONFIG != "no"; then
++ USB_LIBS="$($LIBUSBCONFIG --libs)"
++ USB_CFLAGS="$($LIBUSBCONFIG --cflags)"
++
++ AC_CHECK_LIB(usb,main,
++ [have_libusb=yes
++ AC_DEFINE(HAVE_LIBUSB, 1, [Defined if you have libusb])],
++ [], [$USB_LIBS]
++ )
++ fi
++ if test "x$with_libusb" != xcheck && test "x$have_libusb" = xno; then
++ AC_MSG_FAILURE([--with-libusb was given, but test for libusb failed])
++ fi
+ fi
+ AC_SUBST(USB_LIBS)
+ AC_SUBST(USB_CFLAGS)
+-
+diff -Nur kdebase-3.4.1.orig/kcontrol/view1394/configure.in.in kdebase-3.4.1/kcontrol/view1394/configure.in.in
+--- kdebase-3.4.1.orig/kcontrol/view1394/configure.in.in 2005-05-23 14:13:48.000000000 +0200
++++ kdebase-3.4.1/kcontrol/view1394/configure.in.in 2005-06-05 22:22:48.000000000 +0200
+@@ -1,3 +1,15 @@
++AC_ARG_WITH(libraw1394,
++ [AS_HELP_STRING(--with-libraw1394,
++ [enable visualization of ieee1394 devices through libraw1394 @<:@default=check@:>@])],
++ [], with_libraw1394=check)
++
+ VIEW1394_SUBDIR=
+-KDE_CHECK_HEADER(libraw1394/raw1394.h, VIEW1394_SUBDIR=view1394)
++if test "x$with_libraw1394" != xno; then
++ KDE_CHECK_HEADER(libraw1394/raw1394.h, VIEW1394_SUBDIR=view1394)
++
++ if test "x$with_libraw1394" != xcheck && test -z "$VIEW1394_SUBDIR"; then
++ AC_MSG_FAILURE([--with-libraw1394 was given, but test for libraw1394 failed])
++ fi
++fi
++
+ AM_CONDITIONAL(include_kcontrol_view1394, test -n "$VIEW1394_SUBDIR")
+diff -Nur kdebase-3.4.1.orig/kioslave/smb/configure.in.bot kdebase-3.4.1/kioslave/smb/configure.in.bot
+--- kdebase-3.4.1.orig/kioslave/smb/configure.in.bot 2005-05-23 14:14:19.000000000 +0200
++++ kdebase-3.4.1/kioslave/smb/configure.in.bot 2005-06-05 22:22:43.000000000 +0200
+@@ -1,4 +1,4 @@
+-if test "$have_libsmbclient" = no; then
++if test "x$with_samba" = xcheck && test "x$have_libsmbclient" = xno; then
+ echo ""
+ echo "You're missing libsmbclient from samba 3.0"
+ echo "KDE will not be able to browse windows shares without it,"
+diff -Nur kdebase-3.4.1.orig/kioslave/smb/configure.in.in kdebase-3.4.1/kioslave/smb/configure.in.in
+--- kdebase-3.4.1.orig/kioslave/smb/configure.in.in 2005-05-23 14:14:19.000000000 +0200
++++ kdebase-3.4.1/kioslave/smb/configure.in.in 2005-06-05 22:22:43.000000000 +0200
+@@ -1,20 +1,34 @@
+ AC_DEFUN([SMB_CHECK],
+ [
+ AC_REQUIRE([KDE_CHECK_LARGEFILE])
+-have_libsmbclient=yes
+-KDE_CHECK_HEADER(libsmbclient.h, ,[have_libsmbclient=no] )
+-KDE_CHECK_LIB(smbclient, smbc_new_context, [] ,[have_libsmbclient=no])
+
+-AM_CONDITIONAL(include_kioslave_smb, test "$have_libsmbclient" = yes)
++AC_ARG_WITH(samba,
++ [AS_HELP_STRING(--with-samba,
++ [enable the samba ioslave @<:@default=check@:>@])],
++ [], with_samba=check)
+
+-SMBCLIENT_EXTRA_LIBS=""
+-AC_CHECK_FUNC(yp_get_default_domain, [],
++have_libsmbclient=no
++if test "x$with_samba" != xno; then
++ have_libsmbclient=yes
++ KDE_CHECK_HEADER(libsmbclient.h, [], [have_libsmbclient=no])
++ KDE_CHECK_LIB(smbclient, smbc_new_context, [], [have_libsmbclient=no])
++
++ SMBCLIENT_EXTRA_LIBS=""
++ AC_CHECK_FUNC(yp_get_default_domain, [],
+ [
+ KDE_CHECK_LIB(nsl, yp_get_default_domain,
+ [SMBCLIENT_EXTRA_LIBS="-lnsl"] )
+ ])
+
+-AC_SUBST(SMBCLIENT_EXTRA_LIBS)
++ AC_SUBST(SMBCLIENT_EXTRA_LIBS)
++
++ if test "x$with_samba" != xcheck && test "x$have_libsmbclient" = xno; then
++ AC_MSG_FAILURE([--with-samba was given, but test for libsmbclient failed])
++ fi
++fi
++
++AM_CONDITIONAL(include_kioslave_smb, test "x$have_libsmbclient" = xyes)
++
+ ])
+
+ SMB_CHECK
+diff -Nur kdebase-3.4.1.orig/ksysguard/configure.in.in kdebase-3.4.1/ksysguard/configure.in.in
+--- kdebase-3.4.1.orig/ksysguard/configure.in.in 2005-05-23 14:15:09.000000000 +0200
++++ kdebase-3.4.1/ksysguard/configure.in.in 2005-06-05 22:22:46.000000000 +0200
+@@ -23,11 +23,19 @@
+ AM_CONDITIONAL(include_ksysguardd_openbsd, test "$UNAME" = OpenBSD)
+ AC_SUBST(UNAME)
+
+-KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"])
+-AC_SUBST(LIBSENSORS)
++AC_ARG_WITH(sensors,
++ [AS_HELP_STRING(--with-sensors,
++ [enable support for lm_sensors @<:@default=check@:>@])],
++ [], with_sensors=check)
+
+-dnl Check for dell laptop support
+-AM_CONDITIONAL(supports_i8k, test -f /proc/i8k)
++if test "x$with_sensors" != xno; then
++ KDE_CHECK_HEADERS(sensors/sensors.h)
++ KDE_CHECK_LIB(sensors, sensors_init, [LIBSENSORS="-lsensors"])
++
++ if test "x$with_readline" != xcheck && test -z "$LIBSENSORS"; then
++ AC_MSG_FAILURE([--with-sensors was given, but test for lm_sensors failed])
++ fi
++fi
+
+ case "$UNAME" in
+ Linux) LIBHOSTS="$LIBSENSORS" ;;
+@@ -35,5 +43,7 @@
+ Solaris) LIBHOSTS="$LIBSENSORS -lkstat -lsocket" ;;
+ esac
+ AC_SUBST(LIBHOSTS)
++AC_SUBST(LIBSENSORS)
+
+-KDE_CHECK_HEADERS(sensors/sensors.h)
++dnl Check for dell laptop support
++AM_CONDITIONAL(supports_i8k, test -f /proc/i8k)