~ubuntu-branches/ubuntu/maverick/sip4-qt3/maverick

« back to all changes in this revision

Viewing changes to .pc/siputils_debian_changes.diff/siputils.py

  • Committer: Bazaar Package Importer
  • Author(s): Jonathan Riddell
  • Date: 2010-07-21 10:18:00 UTC
  • mfrom: (1.3.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20100721101800-9lk0k2t6hx6pq0dh
Tags: 4.10.5-0ubuntu1
New upstream release

Show diffs side-by-side

added added

removed removed

Lines of Context:
582
582
                    "QtCore":       "LIBS_CORE",
583
583
                    "QtGui":        "LIBS_GUI",
584
584
                    "QtNetwork":    "LIBS_NETWORK",
585
 
                    "QtOpenGL":     "LIBS_OPENGL"
 
585
                    "QtOpenGL":     "LIBS_OPENGL",
 
586
                    "QtWebKit":     "LIBS_WEBKIT"
586
587
                }
587
588
 
588
589
                # For Windows: the dependencies between Qt libraries.
702
703
            libs.extend(self.optional_list("LIBS_OPENGL"))
703
704
 
704
705
        if self._qt or self._opengl:
705
 
            if self.config.qt_version < 0x040000 or "QtGui" in self._qt:
 
706
            if self.config.qt_version < 0x040000 or self._opengl or "QtGui" in self._qt:
706
707
                incdir.extend(self.optional_list("INCDIR_X11"))
707
708
                libdir.extend(self.optional_list("LIBDIR_X11"))
708
709
                libs.extend(self.optional_list("LIBS_X11"))
2299
2300
        if line and line[0] != "#":
2300
2301
            assstart = line.find("+")
2301
2302
            if assstart > 0 and line[assstart + 1] == '=':
 
2303
                adding = True
2302
2304
                assend = assstart + 1
2303
2305
            else:
 
2306
                adding = False
2304
2307
                assstart = line.find("=")
2305
2308
                assend = assstart
2306
2309
 
2311
2314
                # Remove the escapes for any quotes.
2312
2315
                rhs = rhs.replace(r'\"', '"').replace(r"\'", "'")
2313
2316
 
 
2317
                if adding and rhs != "":
 
2318
                    orig_rhs = raw.get(lhs)
 
2319
                    if orig_rhs is not None:
 
2320
                        rhs = orig_rhs + " " + rhs
 
2321
 
2314
2322
                raw[lhs] = rhs
2315
2323
 
2316
2324
        line = f.readline()