diff options
author | Slávek Banko <[email protected]> | 2020-06-18 00:52:47 +0200 |
---|---|---|
committer | Slávek Banko <[email protected]> | 2020-06-18 00:53:32 +0200 |
commit | 1463c34d97a28247996d085a535535358afee3cf (patch) | |
tree | bf589e4ad00eaa9c570fbc91216040bd1506f7ef /kworldclock | |
parent | 06d1578a8726c4ed5b367d2486c9aa87631e2d61 (diff) | |
download | tdeartwork-1463c34d97a28247996d085a535535358afee3cf.tar.gz tdeartwork-1463c34d97a28247996d085a535535358afee3cf.zip |
Use common rules for kworldclock themes.
Install SVG and SVGZ wallpapers.
This addresses the shortcomings of the recent commit.
Signed-off-by: Slávek Banko <[email protected]>
(cherry picked from commit a37036141b3ab08fd5aba8a5ebf473e04690886d)
Diffstat (limited to 'kworldclock')
-rw-r--r-- | kworldclock/CMakeLists.txt | 30 | ||||
-rw-r--r-- | kworldclock/alt/CMakeLists.txt | 23 | ||||
-rw-r--r-- | kworldclock/bio/CMakeLists.txt | 23 | ||||
-rw-r--r-- | kworldclock/caida/CMakeLists.txt | 23 | ||||
-rw-r--r-- | kworldclock/caida_bw/CMakeLists.txt | 23 | ||||
-rw-r--r-- | kworldclock/mggd/CMakeLists.txt | 23 | ||||
-rw-r--r-- | kworldclock/rainfall/CMakeLists.txt | 23 |
7 files changed, 24 insertions, 144 deletions
diff --git a/kworldclock/CMakeLists.txt b/kworldclock/CMakeLists.txt index a255f2da..2f359034 100644 --- a/kworldclock/CMakeLists.txt +++ b/kworldclock/CMakeLists.txt @@ -3,15 +3,33 @@ # (C) 2010 Serghei Amelian # serghei (DOT) amelian (AT) gmail.com # +# (C) 2020 Slávek Banko +# slavek.banko (AT) axis.cz +# # Improvements and feedback are welcome # # This file is released under GPL >= 2 # ################################################# -add_subdirectory( alt ) -add_subdirectory( bio ) -add_subdirectory( caida ) -add_subdirectory( caida_bw ) -add_subdirectory( mggd ) -add_subdirectory( rainfall ) +file( GLOB _themes RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} * ) +list( SORT _themes ) + +foreach( _theme IN LISTS _themes ) + if( IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/${_theme} AND + EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${_theme}/${_theme}.desktop ) + file( GLOB _map_images RELATIVE ${CMAKE_CURRENT_SOURCE_DIR} ${_theme}/*.jpg ) + list( SORT _map_images ) + + install( + FILES ${_map_images} + DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}" + ) + + tde_create_translated_desktop( + SOURCE ${_theme}/${_theme}.desktop + DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/${_theme}" + PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes + ) + endif() +endforeach() diff --git a/kworldclock/alt/CMakeLists.txt b/kworldclock/alt/CMakeLists.txt deleted file mode 100644 index b8cbe7eb..00000000 --- a/kworldclock/alt/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -################################################# -# -# (C) 2011 Golubev Alexander -# fatzer2 (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - 1200.jpg - 200.jpg - 400.jpg - 800.jpg - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" ) - -tde_create_translated_desktop( - SOURCE alt.desktop - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes -) diff --git a/kworldclock/bio/CMakeLists.txt b/kworldclock/bio/CMakeLists.txt deleted file mode 100644 index 433f4155..00000000 --- a/kworldclock/bio/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -################################################# -# -# (C) 2011 Golubev Alexander -# fatzer2 (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - 1600.jpg - 200.jpg - 400.jpg - 800.jpg - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/bio" ) - -tde_create_translated_desktop( - SOURCE bio.desktop - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes -) diff --git a/kworldclock/caida/CMakeLists.txt b/kworldclock/caida/CMakeLists.txt deleted file mode 100644 index db551fe6..00000000 --- a/kworldclock/caida/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -################################################# -# -# (C) 2011 Golubev Alexander -# fatzer2 (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - 1280.jpg - 200.jpg - 400.jpg - 800.jpg - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/caida" ) - -tde_create_translated_desktop( - SOURCE caida.desktop - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes -) diff --git a/kworldclock/caida_bw/CMakeLists.txt b/kworldclock/caida_bw/CMakeLists.txt deleted file mode 100644 index c10798b1..00000000 --- a/kworldclock/caida_bw/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -################################################# -# -# (C) 2011 Golubev Alexander -# fatzer2 (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - 1280.jpg - 200.jpg - 400.jpg - 800.jpg - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/caida_bw" ) - -tde_create_translated_desktop( - SOURCE caida_bw.desktop - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes -) diff --git a/kworldclock/mggd/CMakeLists.txt b/kworldclock/mggd/CMakeLists.txt deleted file mode 100644 index 5e123d3e..00000000 --- a/kworldclock/mggd/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -################################################# -# -# (C) 2011 Golubev Alexander -# fatzer2 (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - 1440.jpg - 200.jpg - 400.jpg - 800.jpg - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/mggd" ) - -tde_create_translated_desktop( - SOURCE mggd.desktop - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes -) diff --git a/kworldclock/rainfall/CMakeLists.txt b/kworldclock/rainfall/CMakeLists.txt deleted file mode 100644 index 78f2984e..00000000 --- a/kworldclock/rainfall/CMakeLists.txt +++ /dev/null @@ -1,23 +0,0 @@ -################################################# -# -# (C) 2011 Golubev Alexander -# fatzer2 (AT) gmail.com -# -# Improvements and feedback are welcome -# -# This file is released under GPL >= 2 -# -################################################# - -install( FILES - 1600.jpg - 200.jpg - 400.jpg - 800.jpg - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/rainfall" ) - -tde_create_translated_desktop( - SOURCE rainfall.desktop - DESTINATION "${DATA_INSTALL_DIR}/kworldclock/maps/alt" - PO_DIR ${CMAKE_SOURCE_DIR}/translations/desktop_files/kworldclock-themes -) |