summaryrefslogtreecommitdiffstats
path: root/pykdeconfig.py
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 00:17:19 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2011-12-05 00:17:19 -0600
commitd070aee4c277d331e54b81ac2881977a8d8cb7c0 (patch)
tree81fc5f857e6f4eafafd48f2ae70a787e02d10c5d /pykdeconfig.py
parent01bd7e2ffdc3caa95228e03ad501d778b05270a9 (diff)
downloadpytde-d070aee4c277d331e54b81ac2881977a8d8cb7c0.tar.gz
pytde-d070aee4c277d331e54b81ac2881977a8d8cb7c0.zip
Finish pykde to pytde rename
Diffstat (limited to 'pykdeconfig.py')
-rw-r--r--pykdeconfig.py225
1 files changed, 0 insertions, 225 deletions
diff --git a/pykdeconfig.py b/pykdeconfig.py
deleted file mode 100644
index fe44ff0..0000000
--- a/pykdeconfig.py
+++ /dev/null
@@ -1,225 +0,0 @@
-# Copyright (c) 2004
-# Riverbank Computing Limited <info@riverbankcomputing.co.uk>
-# Jim Bublitz <jbublitz@nwinternet.com>
-#
-# This file is part of PyKDE.
-#
-# This copy of PyKDE is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License as published by the Free
-# Software Foundation; either version 2, or (at your option) any later
-# version.
-#
-# PyKDE is supplied in the hope that it will be useful, but WITHOUT ANY
-# WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
-# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
-# details.
-#
-# You should have received a copy of the GNU General Public License along with
-# PyKDE; see the file LICENSE. If not, write to the Free Software Foundation,
-# Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-#
-# This module is intended to be used by the configuration scripts of extension
-# modules that %Import PyKDE modules.
-
-
-import sipconfig, pyqtconfig
-
-
-# These are installation specific values created when PyTQt was configured.
-_pkg_config = {
- 'dist_name': '',
- 'kde_version': 0x030503,
- 'kde_version_extra': 'kde353',
- 'kde_version_sfx': '-kde353.diff',
- 'kde_version_str': '3.5.3',
- 'tdebasedir': '/opt/trinity',
- 'kdeincdir': '/opt/trinity/include',
- 'kdelibdir': '/opt/trinity/lib',
- 'libdir': 'lib',
- 'pytde_kde_sip_flags': '-t ALL -x TQt_STYLE_WINDOWSXP -x TQt_STYLE_INTERLACE -x TQt_STYLE_WINDOWSXP -x TQt_SIP_PRE_4_7_2 -x VendorID -t WS_X11 -t TQt_3_3_6 -t KDE_3_5_3',
- 'pytde_mod_dir': '/usr/lib/python2.5/site-packages',
- 'pytde_modules': 'dcop tdecore tdefx tdeui kio kresources kabc kutils kfile kparts khtml kspell tdeprint kmdi',
- 'pytde_sip_dir': '/usr/share/sip',
- 'pytde_version': 0x031000,
- 'pytde_version_str': '3.16.0'
-}
-
-_default_macros = None
-
-
-class Configuration(pyqtconfig.Configuration):
- """The class that represents PyTQt configuration values.
- """
- def __init__(self, sub_cfg=None):
- """Initialise an instance of the class.
-
- sub_cfg is the list of sub-class configurations. It should be None
- when called normally.
- """
- if sub_cfg:
- cfg = sub_cfg
- else:
- cfg = []
-
- cfg.append(_pkg_config)
-
- pyqtconfig.Configuration.__init__(self, cfg)
-
-
-class DCOPModuleMakefile(pyqtconfig.TQtModuleMakefile):
- """The Makefile class for modules that %Import DCOP.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pytde_mod_dir)
- self.LIBDIR.append(self.config.pytde_lib_dir)
- self.extra_libs.append(self.module_as_lib("DCOP"))
-
- pyqtconfig.TQtModuleMakefile.finalise(self)
-
-class KdecoreModuleMakefile(DCOPModuleMakefile):
- """The Makefile class for modules that %Import tdecore.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("tdecore"))
-
- DCOPModuleMakefile.finalise(self)
-
-class KdesuModuleMakefile(KdecoreModuleMakefile):
- """The Makefile class for modules that %Import tdesu.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("tdesu"))
-
- KdecoreModuleMakefile.finalise(self)
-
-class KdefxModuleMakefile(KdecoreModuleMakefile):
- """The Makefile class for modules that %Import tdefx.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("tdefx"))
-
- KdecoreModuleMakefile.finalise(self)
-
-class KdeuiModuleMakefile(KdefxModuleMakefile):
- """The Makefile class for modules that %Import tdeui.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("tdeui"))
-
- if self.config.sip_version < 0x040000:
- self.extra_libs.append(self.module_as_lib("qtxml"))
-
- KdefxModuleMakefile.finalise(self)
-
-class KioModuleMakefile(KdeuiModuleMakefile):
- """The Makefile class for modules that %Import kio.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("kio"))
-
- KdeuiModuleMakefile.finalise(self)
-
-class KfileModuleMakefile(KioModuleMakefile):
- """The Makefile class for modules that %Import kfile.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("kfile"))
-
- KioModuleMakefile.finalise(self)
-
-class KpartsModuleMakefile(KfileModuleMakefile):
- """The Makefile class for modules that %Import kparts.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("kparts"))
-
- KfileModuleMakefile.finalise(self)
-
-class KhtmlModuleMakefile(KpartsModuleMakefile):
- """The Makefile class for modules that %Import khtml.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("khtml"))
-
- KpartsModuleMakefile.finalise(self)
-
-class KjsModuleMakefile(KhtmlModuleMakefile):
- """The Makefile class for modules that %Import kjs.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("kjs"))
-
- KjsModuleMakefile.finalise(self)
-
-class KdeprintModuleMakefile(KdeuiModuleMakefile):
- """The Makefile class for modules that %Import tdeprint.
- """
- def finalise(self):
- """Finalise the macros.
- """
- if self.config.sip_version < 0x040000:
- # Note that we don't use self.extra_lib_dirs because we don't want
- # it to be added to the rpath.
- self.LIBDIR.append(self.config.pyqt_mod_dir)
- self.extra_libs.append(self.module_as_lib("tdeprint"))
-
- KdeuiModuleMakefile.finalise(self)