It's KDE_VERSION, not KDEVERSION...

Remove original CMakeLists.txt after patching it.

svn path=/trunk/extragear/sysadmin/partitionmanager/; revision=908188
This commit is contained in:
Volker Lanz 2009-01-09 12:51:24 +00:00
parent 0d8078b1be
commit c5313eedc8
1 changed files with 6 additions and 3 deletions

View File

@ -41,17 +41,20 @@ class PartitionManagerApp < Application
IO.foreach('CMakeLists.txt.orig') do |line|
if line =~ /\s*macro_optional_add_subdirectory\s*\(\s*doc\s*\)\s*/i
newFile.print <<END_OF_TEXT
if (KDEVERSION VERSION_GREATER "4.1.3")
if (KDE_VERSION VERSION_GREATER "4.1.3")
macro_optional_add_subdirectory(doc)
else (KDEVERSION VERSION_GREATER "4.1.3")
else (KDE_VERSION VERSION_GREATER "4.1.3")
message (STATUS "No documentation built for KDE libs < 4.1.4")
endif (KDEVERSION VERSION_GREATER "4.1.3")
endif (KDE_VERSION VERSION_GREATER "4.1.3")
END_OF_TEXT
else
newFile << line
end
end
FileUtils.rm_rf 'CMakeLists.txt.orig'
newFile.close
end
end