Skip to content
This repository has been archived by the owner on Mar 3, 2022. It is now read-only.

Commit

Permalink
Suru is Yaru for ubuntu - but don't install icon by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
CDrummond committed Aug 2, 2018
1 parent d74a5d8 commit f5cb0b4
Show file tree
Hide file tree
Showing 16 changed files with 19 additions and 16 deletions.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@
drive.
14. If a dynamic playlist has rating 0..5 stars, then include all songs (even
those without an explicit rating).
15. Ubuntu icon theme is now named Yaru, so install there.
16. Don't install Yaru icon by default.

2.3.1
-----
Expand Down
5 changes: 3 additions & 2 deletions INSTALL
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ The following options may be passed to CMake:
Build UDisks2 backend for solid-lite.
Default: ON

-DINSTALL_UBUNTU_ICONS=<ON if Ubuntu, OFF otherwise>
Install Suru icons for Ubuntu.
-DINSTALL_UBUNTU_ICONS=ON
Install Yaru icons for Ubuntu.
Default: OFF

-DCANTATA_HELPERS_LIB_DIR=<subdir>
For 64 bit builds, this may be used to control the lib sub-dir
Expand Down
26 changes: 13 additions & 13 deletions icons/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,21 @@ if (NOT HAIKU AND NOT WIN32 AND NOT APPLE)
endforeach()
update_iconcache(hicolor)

if (EXISTS /etc/lsb-release)
file(READ "/etc/lsb-release" LSB_RELEASE_CONTENTS)
string(REGEX MATCH "DISTRIB_ID=Ubuntu" IS_UBUNTU ${LSB_RELEASE_CONTENTS})
if (IS_UBUNTU)
set(INSTALL_UBUNTU_ICONS_DEFAULT ON)
else(IS_UBUNTU)
set(INSTALL_UBUNTU_ICONS_DEFAULT OFF)
endif(IS_UBUNTU)
else(EXISTS /etc/lsb-release)
#if (EXISTS /etc/lsb-release)
# file(READ "/etc/lsb-release" LSB_RELEASE_CONTENTS)
# string(REGEX MATCH "DISTRIB_ID=Ubuntu" IS_UBUNTU ${LSB_RELEASE_CONTENTS})
# if (IS_UBUNTU)
# set(INSTALL_UBUNTU_ICONS_DEFAULT ON)
# else(IS_UBUNTU)
# set(INSTALL_UBUNTU_ICONS_DEFAULT OFF)
# endif(IS_UBUNTU)
#else(EXISTS /etc/lsb-release)
set(INSTALL_UBUNTU_ICONS_DEFAULT OFF)
endif(EXISTS /etc/lsb-release)
option(INSTALL_UBUNTU_ICONS "Install the Ubuntu Suru icons" ${INSTALL_UBUNTU_ICONS_DEFAULT})
#endif(EXISTS /etc/lsb-release)
option(INSTALL_UBUNTU_ICONS "Install the Ubuntu Yaru icons" ${INSTALL_UBUNTU_ICONS_DEFAULT})

if (INSTALL_UBUNTU_ICONS)
add_subdirectory(suru)
update_iconcache(Suru)
add_subdirectory(yaru)
update_iconcache(Yaru)
endif ()
endif ()
2 changes: 1 addition & 1 deletion icons/suru/CMakeLists.txt → icons/yaru/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
set(CANTATA_SURU_ICON_INSTALL_PREFIX ${SHARE_INSTALL_PREFIX}/icons/Suru)
set(CANTATA_SURU_ICON_INSTALL_PREFIX ${SHARE_INSTALL_PREFIX}/icons/Yaru)
install(FILES ../cantata-symbolic.svg DESTINATION ${CANTATA_SURU_ICON_INSTALL_PREFIX}/scalable/apps)

foreach (SIZE 16 24 32 48 256)
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.

0 comments on commit f5cb0b4

Please sign in to comment.