diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-08-16 14:30:35 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-08-16 14:30:35 +0100 |
commit | 2cb26483945211e812d7a0351ae472a676cd9592 (patch) | |
tree | 72a35b7eca392d91567814afb0b89a9e8194a6fe /games-util/slade | |
parent | 930cc7d721b1ea68468608da3ce2b4e891926834 (diff) |
gentoo auto-resync : 16:08:2022 - 14:30:35
Diffstat (limited to 'games-util/slade')
-rw-r--r-- | games-util/slade/Manifest | 4 | ||||
-rw-r--r-- | games-util/slade/files/slade-3.2.0-bundled-libs.patch | 176 | ||||
-rw-r--r-- | games-util/slade/slade-3.2.1-r1.ebuild (renamed from games-util/slade/slade-3.2.1.ebuild) | 5 |
3 files changed, 143 insertions, 42 deletions
diff --git a/games-util/slade/Manifest b/games-util/slade/Manifest index 424125262e95..9b832e5ec5ab 100644 --- a/games-util/slade/Manifest +++ b/games-util/slade/Manifest @@ -1,5 +1,5 @@ -AUX slade-3.2.0-bundled-libs.patch 2238 BLAKE2B 06395fcbe6dbcd7e3e2e8651fa4386e9b244c2a8b1501195692e0f1f8c7fb5ab6ab1cf9487536599ccc5f1af0d396f2d7bd3ccee13fc7b5bdfe9c86d407629c6 SHA512 a905785b11686a54ec89ad3b2be8911fba6b8a52e2f1fee6ae21651e6f822ce3fc8d2615a55c339c2d7f2feb521bf2f8ff38e07330d8520e4319b0d1828f7b52 +AUX slade-3.2.0-bundled-libs.patch 5490 BLAKE2B 567cacdb298c1d2183d507fdf8349a79f6856d6464254b6ece42a441be32796b6fe499f70d43c25c38864a8eaab515571b1b5935deb40d04264c81eda037f2a6 SHA512 b195290fa9229dc2da9488c85b377d0206ffe93a2db4a551bfe4ee9cc5f903af4c50a9a9cd2eee9a1bc5f4cbe894d567fc4070cc9021030527692f7e47fd2d68 AUX slade-3.2.0_beta2-fluidsynth-driver.patch 790 BLAKE2B ea84ff6515b4b80cbce021624c27dbd4c067758b7e5861402d42628ddee85385a260396163838b1504e2196c3b275977ad5ddde3d684e49de600270d7990a1c0 SHA512 3de05beafc060891d674d388cbb07107ead138ef2a89812dfffabfc8c9de2beb939290b1064b75e14d3cc42621c8ee66ced06eacdcb2afd376a9539fa74c54c8 DIST slade-3.2.1.tar.gz 6471666 BLAKE2B 17a4f2ec23699a56d4fd970605d7141d3f4593f7ced6fff205c87d9ecddc7b90e6da2991aeea32bd008e24cdfee95b7c16946f78b2701c94e51266afd78863d6 SHA512 b7d5a91c759c5a68af63aa9a8412452a5b2986e70f7189ca92ee99ce4953ef47381be907c8ce1166e479f24679904bf5f0e0b1a5da846fe7873c5b97f4315449 -EBUILD slade-3.2.1.ebuild 1614 BLAKE2B 2350932c2517f32c00a3bf08ef915661fbb1736492e3fd0e61a36f552e78cd8f63c02830b00e0cacf64b5840b88dad816d16141743bce47bbeb72315416155ae SHA512 f770c1c3c20be8f52799382a492aa6aa770f84a220ea399e8a99035f2918c7ceab32cb36de3c09e424d7e4f9fbc6d2777e84c43f6aa5e8731c64b85b393360b9 +EBUILD slade-3.2.1-r1.ebuild 1692 BLAKE2B fe4206570d58759ff61cd899c3fc896f55e41452bb3430d28e02b7a895329c3e55e92a6d2663392e9327e71048115ee69bfa395f06df2f80c17242b9648a9463 SHA512 3ddbb9e5640f2e6d5700c9594d9baf5e2038eed6f0102b312906220cd9381ea1c3cd8a869c2932063e9d664a4b77913fbd4e531febe52499861a841e578eb806 MISC metadata.xml 457 BLAKE2B 241e53a5b4e6b85472c19b5431bae365eb740632cc71c9c2df1fb1f6c7f4875e8cb6d7ce17cddef12377a306c7abd8787a9f8e4cdd21b2b892d639ef68e8c077 SHA512 ae81e2d7faa90358dfd5f6511650de78fae50b7356609e7c54b635515e2fd9fb1348e9f34931e1cd82a3ad37206e47a64a02969c7762f38e62c32ffb5512b769 diff --git a/games-util/slade/files/slade-3.2.0-bundled-libs.patch b/games-util/slade/files/slade-3.2.0-bundled-libs.patch index c4eae37f945f..c543f09e3fae 100644 --- a/games-util/slade/files/slade-3.2.0-bundled-libs.patch +++ b/games-util/slade/files/slade-3.2.0-bundled-libs.patch @@ -1,17 +1,7 @@ -From 5ecc80d27276ba978b8c0268aab722fe8f09b394 Mon Sep 17 00:00:00 2001 -From: James Le Cuirot <chewi@gentoo.org> -Date: Sat, 20 Feb 2021 12:22:24 +0000 -Subject: [PATCH] Unbundle the DUMB library - ---- - src/Application/App.cpp | 2 +- - src/Audio/ModMusic.cpp | 2 +- - src/CMakeLists.txt | 4 +++- - thirdparty/CMakeLists.txt | 1 - - 4 files changed, 5 insertions(+), 4 deletions(-) +https://github.com/sirjuddington/SLADE/pull/1413 diff --git a/src/Application/App.cpp b/src/Application/App.cpp -index 936a8212..2960ca1d 100644 +index dddaf875..ede8d73c 100644 --- a/src/Application/App.cpp +++ b/src/Application/App.cpp @@ -60,7 +60,7 @@ @@ -21,7 +11,7 @@ index 936a8212..2960ca1d 100644 -#include "thirdparty/dumb/dumb.h" +#include <dumb.h> #include <filesystem> - + using namespace slade; diff --git a/src/Audio/ModMusic.cpp b/src/Audio/ModMusic.cpp index cc4b60cf..6d54516d 100644 @@ -33,45 +23,126 @@ index cc4b60cf..6d54516d 100644 #include "ModMusic.h" -#include "thirdparty/dumb/dumb.h" +#include <dumb.h> - + using namespace slade; using namespace audio; diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt -index fef3d009..5363802c 100644 +index fef3d009..00dbb018 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt -@@ -107,6 +107,7 @@ if (NOT NO_LUA) - find_package(Lua REQUIRED) - endif() - find_package(MPG123 REQUIRED) -+pkg_check_modules(DUMB REQUIRED dumb>=1.0) - include_directories( - ${FREEIMAGE_INCLUDE_DIR} - ${SFML_INCLUDE_DIR} -@@ -114,9 +115,9 @@ include_directories( - ${FTGL_INCLUDE_DIR} - ${LUA_INCLUDE_DIR} +@@ -116,7 +116,6 @@ include_directories( ${MPG123_INCLUDE_DIR} -+ ${DUMB_INCLUDE_DIRS} . .. - ../thirdparty/dumb ../thirdparty/glad/include ./Application ) -@@ -201,6 +202,7 @@ target_link_libraries(slade - ${OPENGL_LIBRARIES} - ${LUA_LIBRARIES} - ${MPG123_LIBRARIES} -+ ${DUMB_LIBRARIES} - ) - - if(LINUX) +@@ -235,7 +234,7 @@ else(APPLE) + install(FILES "${SLADE_OUTPUT_DIR}/slade.pk3" + DESTINATION share/slade3 + ) +- ++ + install(FILES "${PROJECT_SOURCE_DIR}/dist/res/logo_icon.png" + DESTINATION share/icons/ + RENAME net.mancubus.SLADE.png +diff --git a/src/General/CVar.cpp b/src/General/CVar.cpp +index 460a7852..5e171446 100644 +--- a/src/General/CVar.cpp ++++ b/src/General/CVar.cpp +@@ -32,7 +32,7 @@ + // ----------------------------------------------------------------------------- + #include "Main.h" + #include "Utility/StringUtils.h" +-#include "thirdparty/fmt/include/fmt/format.h" ++#include <fmt/format.h> + + using namespace slade; + +diff --git a/src/General/Log.cpp b/src/General/Log.cpp +index 9ad0718f..8d39f644 100644 +--- a/src/General/Log.cpp ++++ b/src/General/Log.cpp +@@ -31,8 +31,8 @@ + // ----------------------------------------------------------------------------- + #include "Main.h" + #include "App.h" +-#include "thirdparty/fmt/include/fmt/chrono.h" +-#include "thirdparty/fmt/include/fmt/format.h" ++#include <fmt/chrono.h> ++#include <fmt/format.h> + #include <fstream> + + using namespace slade; +diff --git a/src/TextEditor/TextStyle.cpp b/src/TextEditor/TextStyle.cpp +index 09f4e405..ad51ec0a 100644 +--- a/src/TextEditor/TextStyle.cpp ++++ b/src/TextEditor/TextStyle.cpp +@@ -43,7 +43,7 @@ + #include "Utility/Parser.h" + #include "Utility/StringUtils.h" + #include "Utility/Tokenizer.h" +-#include "thirdparty/fmt/include/fmt/format.h" ++#include <fmt/format.h> + + using namespace slade; + +diff --git a/src/UI/Browser/BrowserItem.cpp b/src/UI/Browser/BrowserItem.cpp +index 89c0f39c..3f056f71 100644 +--- a/src/UI/Browser/BrowserItem.cpp ++++ b/src/UI/Browser/BrowserItem.cpp +@@ -126,7 +126,7 @@ void BrowserItem::draw( + // Create text box if needed + if (!text_box_) + text_box_ = std::make_unique<TextBox>( +- fmt::format("{}\n{}", index_, name_.c_str()), font, ui::scalePx(144), ui::scalePx(16)); ++ fmt::format("{}\n{}", index_, name_.mb_str()), font, ui::scalePx(144), ui::scalePx(16)); + + int top = y; + top += ((size - text_box_->height()) * 0.5); +diff --git a/src/UI/SToolBar/SToolBar.cpp b/src/UI/SToolBar/SToolBar.cpp +index f38710ad..c002bf97 100644 +--- a/src/UI/SToolBar/SToolBar.cpp ++++ b/src/UI/SToolBar/SToolBar.cpp +@@ -219,7 +219,7 @@ void SToolBarGroup::hide(bool hide) + + // Update 'hidden toolbars' cvar + string tb_hidden = toolbars_hidden; +- auto name = fmt::format("[{}]", name_.c_str()); ++ auto name = fmt::format("[{}]", name_.mb_str()); + if (hide) + tb_hidden += name; + else +diff --git a/src/common.h b/src/common.h +index 8c3c4b3b..d66cbc04 100644 +--- a/src/common.h ++++ b/src/common.h +@@ -129,7 +129,7 @@ + #endif + + // fmt +-#include "thirdparty/fmt/include/fmt/core.h" ++#include <fmt/core.h> + + // Sigslot + #include "thirdparty/sigslot/signal.hpp" diff --git a/thirdparty/CMakeLists.txt b/thirdparty/CMakeLists.txt -index f84cfc8a..2622852b 100644 +index f84cfc8a..6cb9e0af 100644 --- a/thirdparty/CMakeLists.txt +++ b/thirdparty/CMakeLists.txt -@@ -10,7 +10,6 @@ set(BZIP2_LIBRARIES ${BZIP2_LIBRARIES} PARENT_SCOPE) +@@ -6,20 +6,33 @@ find_package(BZip2 REQUIRED) + set(ZLIB_LIBRARY ${ZLIB_LIBRARY} PARENT_SCOPE) + set(BZIP2_LIBRARIES ${BZIP2_LIBRARIES} PARENT_SCOPE) + ++option(USE_SYSTEM_DUMB "Use system DUMB library" OFF) ++if(USE_SYSTEM_DUMB) ++ pkg_check_modules(DUMB REQUIRED IMPORTED_TARGET dumb>=1.0) ++else() ++ file(GLOB_RECURSE DUMB_SOURCES dumb/*.c) ++endif() ++ + # Roll the rest up into a big ball and compile it by itself set(EXTERNAL_SOURCES ) file(GLOB_RECURSE EXTERNAL_SOURCES @@ -79,6 +150,33 @@ index f84cfc8a..2622852b 100644 lzma/C/LzmaDec.c mus2mid/mus2mid.cpp zreaders/*.cpp --- -2.34.1 + glad/src/*.c ++ ${DUMB_SOURCES} + ${SLADE_HEADERS} + ) + + # Add fmt +-add_subdirectory(fmt) ++option(USE_SYSTEM_FMT "Use system fmt library" OFF) ++if(USE_SYSTEM_FMT) ++ find_package(fmt REQUIRED) ++else() ++ add_subdirectory(fmt) ++ target_include_directories(fmt INTERFACE ${CMAKE_CURRENT_LIST_DIR}/fmt/include) ++endif() + + # Add lunasvg + add_library(lunasvg STATIC) +@@ -29,5 +42,11 @@ add_subdirectory(lunasvg/3rdparty/software) + add_subdirectory(lunasvg/3rdparty/plutovg) + add_library(external STATIC ${EXTERNAL_SOURCES}) +-target_link_libraries(external ${ZLIB_LIBRARY} lunasvg fmt ${CMAKE_DL_LIBS}) ++target_link_libraries(external ${ZLIB_LIBRARY} lunasvg fmt::fmt ${CMAKE_DL_LIBS}) + set(EXTERNAL_LIBRARIES external PARENT_SCOPE) ++ ++if(USE_SYSTEM_DUMB) ++ target_link_libraries(external PkgConfig::DUMB) ++else() ++ target_include_directories(external PUBLIC ${CMAKE_CURRENT_LIST_DIR}/dumb) ++endif() diff --git a/games-util/slade/slade-3.2.1.ebuild b/games-util/slade/slade-3.2.1-r1.ebuild index e68c8e1e1a4e..285ef98db6f9 100644 --- a/games-util/slade/slade-3.2.1.ebuild +++ b/games-util/slade/slade-3.2.1-r1.ebuild @@ -54,7 +54,7 @@ src_prepare() { cmake_src_prepare # Delete bundled libraries just in case. - rm -r thirdparty/dumb/ || die + rm -r thirdparty/dumb/ thirdparty/fmt/ || die } @@ -66,9 +66,12 @@ src_configure() { -DLua_FIND_VERSION_MINOR=$(ver_cut 2 "${luav}") -DLua_FIND_VERSION_COUNT=2 -DLua_FIND_VERSION_EXACT=ON + -DNO_COTIRE=ON -DNO_FLUIDSYNTH=$(usex fluidsynth OFF ON) -DNO_WEBVIEW=$(usex webkit OFF ON) -DUSE_SFML_RENDERWINDOW=ON + -DUSE_SYSTEM_DUMB=ON + -DUSE_SYSTEM_FMT=ON -DWX_GTK3=ON ) |