[gentoo-commits] proj/kde:master commit in: kde-base/print-manager/

2014-11-17 Thread Michael Palimaka
commit: ae7cc637ba91b776ac282172c6274738d15e
Author: Michael Palimaka kensington AT gentoo DOT org
AuthorDate: Mon Nov 17 08:39:02 2014 +
Commit: Michael Palimaka kensington AT gentoo DOT org
CommitDate: Mon Nov 17 08:39:02 2014 +
URL:http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=ae7cc637

[kde-base/print-manager] Restore 896009a47447bc00c15a7b597152968b34e9f433 which 
was accidentally never applied to the live ebuild.

Package-Manager: portage-2.2.14

---
 .../print-manager/print-manager-4.14.49..ebuild | 21 +++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/kde-base/print-manager/print-manager-4.14.49..ebuild 
b/kde-base/print-manager/print-manager-4.14.49..ebuild
index c436164..4c7ad8c 100644
--- a/kde-base/print-manager/print-manager-4.14.49..ebuild
+++ b/kde-base/print-manager/print-manager-4.14.49..ebuild
@@ -8,7 +8,7 @@ inherit kde4-base
 
 DESCRIPTION=Manage print jobs and printers in KDE
 KEYWORDS=
-IUSE=debug
+IUSE=debug +gtk
 
 DEPEND=
=net-print/cups-1.5.0[dbus]
@@ -17,5 +17,22 @@ RDEPEND=${DEPEND}
!kde-base/printer-applet:4
!kde-base/system-config-printer-kde:4
!kde-misc/print-manager
-   app-admin/system-config-printer-gnome
+   gtk? ( app-admin/system-config-printer-gnome )
 
+
+pkg_postinst(){
+   if ! use gtk ; then
+   ewarn
+   ewarn By switching off \gtk\ USE flag, you have chosen to do 
without
+   ewarn an important, though optional, runtime dependency:
+   ewarn
+   ewarn app-admin/system-config-printer-gnome
+   ewarn
+   ewarn ${PN} will work nevertheless, but is going to be less 
comfortable
+   ewarn and will show the following error status during runtime:
+   ewarn
+   ewarn \Failed to group devices: 'The name 
org.fedoraproject.Config.Printing
+   ewarn was not provided by any .service files'\
+   ewarn
+   fi
+}



[gentoo-commits] proj/kde:master commit in: kde-base/print-manager/

2014-10-25 Thread Michael Palimaka
commit: 896009a47447bc00c15a7b597152968b34e9f433
Author: Andreas Sturmlechner andreas.sturmlechner AT gmail DOT com
AuthorDate: Sun Oct 19 17:11:43 2014 +
Commit: Michael Palimaka kensington AT gentoo DOT org
CommitDate: Sat Oct 25 16:29:09 2014 +
URL:http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=896009a4

[kde-base/print-manager] Make s-c-p optional according to upstream comments

https://bugs.kde.org/show_bug.cgi?id=320326

---
 kde-base/print-manager/print-manager-4.14.2.ebuild | 21 +++--
 1 file changed, 19 insertions(+), 2 deletions(-)

diff --git a/kde-base/print-manager/print-manager-4.14.2.ebuild 
b/kde-base/print-manager/print-manager-4.14.2.ebuild
index 680616e..c976a3f 100644
--- a/kde-base/print-manager/print-manager-4.14.2.ebuild
+++ b/kde-base/print-manager/print-manager-4.14.2.ebuild
@@ -8,7 +8,7 @@ inherit kde4-base
 
 DESCRIPTION=Manage print jobs and printers in KDE
 KEYWORDS=~amd64 ~arm ~ppc ~ppc64 ~x86 ~amd64-linux ~x86-linux
-IUSE=debug
+IUSE=debug +gtk
 
 DEPEND=
=net-print/cups-1.5.0[dbus]
@@ -17,7 +17,24 @@ RDEPEND=${DEPEND}
!kde-base/printer-applet:4
!kde-base/system-config-printer-kde:4
!kde-misc/print-manager
-   app-admin/system-config-printer-gnome
+   gtk? ( app-admin/system-config-printer-gnome )
 
 
 PATCHES=( ${FILESDIR}/${PN}-4.14.1-cups20.patch )
+
+pkg_postinst(){
+   if ! use gtk ; then
+   ewarn
+   ewarn By switching off \gtk\ USE flag, you have chosen to do 
without
+   ewarn an important, though optional, runtime dependency:
+   ewarn
+   ewarn app-admin/system-config-printer-gnome
+   ewarn
+   ewarn ${PN} will work nevertheless, but is going to be less 
comfortable
+   ewarn and will show the following error status during runtime:
+   ewarn
+   ewarn \Failed to group devices: 'The name 
org.fedoraproject.Config.Printing
+   ewarn was not provided by any .service files'\
+   ewarn
+   fi
+}



[gentoo-commits] proj/kde:master commit in: kde-base/print-manager/files/, kde-base/print-manager/

2014-10-17 Thread Andreas Hüttel
commit: 386a341614bd6f89919a122eabe31cbb13f27822
Author: Andreas K. Huettel (dilfridge) dilfridge AT gentoo DOT org
AuthorDate: Fri Oct 17 18:52:34 2014 +
Commit: Andreas Hüttel dilfridge AT gentoo DOT org
CommitDate: Fri Oct 17 18:52:34 2014 +
URL:http://sources.gentoo.org/gitweb/?p=proj/kde.git;a=commit;h=386a3416

[kde-base/print-manager] Fix build with cups-2.0, bug525598

Package-Manager: portage-2.2.14_rc1

---
 .../files/print-manager-4.14.1-cups20.patch| 72 ++
 kde-base/print-manager/print-manager-4.14.2.ebuild |  2 +
 2 files changed, 74 insertions(+)

diff --git a/kde-base/print-manager/files/print-manager-4.14.1-cups20.patch 
b/kde-base/print-manager/files/print-manager-4.14.1-cups20.patch
new file mode 100644
index 000..58c59dd
--- /dev/null
+++ b/kde-base/print-manager/files/print-manager-4.14.1-cups20.patch
@@ -0,0 +1,72 @@
+diff --git a/libkcups/KCupsConnection.cpp b/libkcups/KCupsConnection.cpp
+index 713be2f..335fc46 100644
+--- a/libkcups/KCupsConnection.cpp
 b/libkcups/KCupsConnection.cpp
+@@ -377,11 +377,11 @@ int KCupsConnection::renewDBusSubscription(int 
subscriptionId, int leaseDuration
+ response = request.sendIppRequest();
+ } while (retry(/, operation));
+ 
+-#if CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#if !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ if (response  ippGetStatusCode(response) == IPP_OK) {
+ #else
+ if (response  response-request.status.status_code == IPP_OK) {
+-#endif // CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#endif // !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ ipp_attribute_t *attr;
+ if (subscriptionId = 0) {
+ // Request was ok, just return the current subscription
+@@ -392,7 +392,7 @@ int KCupsConnection::renewDBusSubscription(int 
subscriptionId, int leaseDuration
+ kWarning()  No notify-subscription-id in response!;
+ ret = -1;
+ } else {
+-#if CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#if !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ ret = ippGetInteger(attr, 0);
+ }
+ } else if (subscriptionId = 0  response  ippGetStatusCode(response) 
== IPP_NOT_FOUND) {
+@@ -406,7 +406,7 @@ int KCupsConnection::renewDBusSubscription(int 
subscriptionId, int leaseDuration
+ kDebug()  Subscription not found;
+ // When the subscription is not found try to get a new one
+ return renewDBusSubscription(-1, leaseDuration, events);
+-#endif // CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#endif // !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ } else {
+ kDebug()  Request failed  cupsLastError()  
httpGetStatus(CUPS_HTTP_DEFAULT);
+ // When the server stops/restarts we will have some error so ignore it
+@@ -582,7 +582,7 @@ ReturnArguments KCupsConnection::parseIPPVars(ipp_t 
*response, ipp_tag_t group_t
+ ipp_attribute_t *attr;
+ ReturnArguments ret;
+ 
+-#if CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#if !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ QVariantHash destAttributes;
+ for (attr = ippFirstAttribute(response); attr != NULL; attr = 
ippNextAttribute(response)) {
+ // We hit an attribute sepparator
+@@ -659,7 +659,7 @@ ReturnArguments KCupsConnection::parseIPPVars(ipp_t 
*response, ipp_tag_t group_t
+ break;
+ }
+ }
+-#endif // CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#endif // !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ 
+ return ret;
+ }
+@@ -667,7 +667,7 @@ ReturnArguments KCupsConnection::parseIPPVars(ipp_t 
*response, ipp_tag_t group_t
+ QVariant KCupsConnection::ippAttrToVariant(ipp_attribute_t *attr)
+ {
+ QVariant ret;
+-#if CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#if !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ switch (ippGetValueTag(attr)) {
+ case IPP_TAG_INTEGER:
+ case IPP_TAG_ENUM:
+@@ -760,7 +760,7 @@ QVariant KCupsConnection::ippAttrToVariant(ipp_attribute_t 
*attr)
+ ret = values;
+ }
+ }
+-#endif // CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR = 6
++#endif // !(CUPS_VERSION_MAJOR == 1  CUPS_VERSION_MINOR  6)
+ return ret;
+ }
+ 

diff --git a/kde-base/print-manager/print-manager-4.14.2.ebuild 
b/kde-base/print-manager/print-manager-4.14.2.ebuild
index abba251..680616e 100644
--- a/kde-base/print-manager/print-manager-4.14.2.ebuild
+++ b/kde-base/print-manager/print-manager-4.14.2.ebuild
@@ -19,3 +19,5 @@ RDEPEND=${DEPEND}
!kde-misc/print-manager
app-admin/system-config-printer-gnome
 
+
+PATCHES=( ${FILESDIR}/${PN}-4.14.1-cups20.patch )