This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Oyranos: c++11 Qcmsevents.cpp patch

By: a guest on May 2nd, 2012  |  syntax: None  |  size: 1.81 KB  |  views: 54  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. qcmsevents.cpp.patch:
  2. =====================
  3. --- examples/xcmsevents/qcmsevents.cpp  2012-05-02 21:58:50.309004915 +0200
  4. +++ examples/xcmsevents/qcmsevents.cpp.new      2012-05-02 21:58:32.533739653 +0200
  5. @@ -118,8 +118,8 @@
  6.    else if (XCME_MSG_DISPLAY_STATUS)
  7.    {
  8.      int i;
  9. -    if(strstr(text, "atom: \""XCM_COLOR_DESKTOP"\":"))
  10. -      sscanf( text, "atom: \""XCM_COLOR_DESKTOP"\": %d %d", &i, &pid );
  11. +    if(strstr(text, "atom: \"" XCM_COLOR_DESKTOP "\":"))
  12. +      sscanf( text, "atom: \"" XCM_COLOR_DESKTOP "\": %d %d", &i, &pid );
  13.      if(pid == 0)
  14.      {
  15.        colour.setHsvF( 0.6, 0.4, 0.9 );
  16.  
  17. PKGBUILD:
  18. =========
  19. pkgname=oyranos
  20. pkgver=0.4.0
  21. pkgrel=1
  22. pkgdesc="A Colour Management System (CMS) on operating system level."
  23. url="http://oyranos.org/"
  24. arch=('i686' 'x86_64')  
  25. makedepends=()
  26. depends=(libxml2 libxinerama libxrandr libxfixes libxxf86vm doxygen graphviz lcms2 libraw xcalib libxcm)
  27. optdepends=(fltk qt elektra cups sane cairo openicc)
  28. source=("http://prdownloads.sourceforge.net/oyranos/$pkgname-$pkgver.tar.bz2"
  29.         "configure_tests.patch"
  30.         "makefile.in.patch"
  31.         "oyranos_file.cpp.patch"
  32.         "qcmsevents.cpp.patch")
  33. license=('MIT')
  34.  
  35. build() {
  36.     cd $srcdir/$pkgname-$pkgver
  37.     unset LDFLAGS
  38.     patch -Np0 <"$srcdir"/configure_tests.patch
  39.     patch -Np0 <"$srcdir"/makefile.in.patch
  40.     patch -Np0 <"$srcdir"/oyranos_file.cpp.patch
  41.     patch -Np0 <"$srcdir"/qcmsevents.cpp.patch
  42.  
  43.     ./configure --prefix=/usr --enable-threads --enable-xft --enable-shared || return 1
  44.     make -j1 || return 1
  45.     make DESTDIR=$pkgdir install
  46. }
  47.  
  48. md5sums=('4ec2c728c5ca7d450c47d95405de3ade'
  49.          '58c3487565aa10051aaa3692c03fe4c3'
  50.          '7534f58dcc71520a773d02967ccb9775'
  51.          '24a0f440f6dbc34a49ab98f70446d455'
  52.          '4860f10e693ca364f5b2cf8294b432a1')
clone this paste RAW Paste Data