|
|
|
@ -540,10 +540,10 @@ class BuildKControlModule(Command):
|
|
|
|
|
canidatepaths.append(os.path.join(install.prefix,"include"))
|
|
|
|
|
canidatepaths.append('/opt/trinity/include')
|
|
|
|
|
canidatepaths.append('/opt/kde/include')
|
|
|
|
|
self.kde_inc_dir = FindFileInPaths('kapplication.h',canidatepaths)
|
|
|
|
|
self.kde_inc_dir = FindFileInPaths('tdeapplication.h',canidatepaths)
|
|
|
|
|
if self.kde_inc_dir is None:
|
|
|
|
|
raise SystemExit, "Failed to find the KDE header file directory."
|
|
|
|
|
if FindFileInPaths('kapplication.h',[self.kde_inc_dir]) is None:
|
|
|
|
|
if FindFileInPaths('tdeapplication.h',[self.kde_inc_dir]) is None:
|
|
|
|
|
raise SystemExit, "Failed to find KDE header files in: %s" % self.kde_inc_dir
|
|
|
|
|
self.announce("Using %s for KDE header files" % self.kde_inc_dir)
|
|
|
|
|
|
|
|
|
@ -1481,10 +1481,10 @@ class BuildTdeioslave(Command):
|
|
|
|
|
canidatepaths.append(os.path.join(install.prefix,"include"))
|
|
|
|
|
canidatepaths.append('/opt/trinity/include')
|
|
|
|
|
canidatepaths.append('/opt/kde/include')
|
|
|
|
|
self.kde_inc_dir = FindFileInPaths('kapplication.h',canidatepaths)
|
|
|
|
|
self.kde_inc_dir = FindFileInPaths('tdeapplication.h',canidatepaths)
|
|
|
|
|
if self.kde_inc_dir is None:
|
|
|
|
|
raise SystemExit, "Failed to find the KDE header file directory."
|
|
|
|
|
if FindFileInPaths('kapplication.h',[self.kde_inc_dir]) is None:
|
|
|
|
|
if FindFileInPaths('tdeapplication.h',[self.kde_inc_dir]) is None:
|
|
|
|
|
raise SystemExit, "Failed to find KDE header files in: %s" % self.kde_inc_dir
|
|
|
|
|
self.announce("Using %s for KDE header files" % self.kde_inc_dir)
|
|
|
|
|
|
|
|
|
|