3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/misc/crow-translate/dont-fetch-external-libs.patch
2021-12-05 21:27:05 +03:00

66 lines
2 KiB
Diff

diff --git i/CMakeLists.txt w/CMakeLists.txt
index 375b17c..106efa9 100644
--- i/CMakeLists.txt
+++ w/CMakeLists.txt
@@ -114,13 +114,11 @@ qt5_add_translation(QM_FILES
)
configure_file(src/cmake.h.in cmake.h)
-configure_file(data/icons/flags.qrc ${CircleFlags_SOURCE_DIR}/flags/flags.qrc COPYONLY)
-configure_file(data/icons/fluent-icon-theme.qrc ${FluentIconTheme_SOURCE_DIR}/src/fluent-icon-theme.qrc COPYONLY)
add_executable(${PROJECT_NAME}
- ${CircleFlags_SOURCE_DIR}/flags/flags.qrc
+ data/icons/flags.qrc
${QM_FILES}
- ${FluentIconTheme_SOURCE_DIR}/src/fluent-icon-theme.qrc
+ data/icons/fluent-icon-theme.qrc
data/icons/engines/engines.qrc
src/addlanguagedialog.cpp
src/addlanguagedialog.ui
diff --git i/cmake/ExternalLibraries.cmake w/cmake/ExternalLibraries.cmake
index c92e745..f265f03 100644
--- i/cmake/ExternalLibraries.cmake
+++ w/cmake/ExternalLibraries.cmake
@@ -2,34 +2,28 @@ include(FetchContent)
set(QAPPLICATION_CLASS QApplication)
FetchContent_Declare(SingleApplication
- GIT_REPOSITORY https://github.com/itay-grudev/SingleApplication
- GIT_TAG v3.2.0
+ SOURCE_DIR @singleapplication@
)
FetchContent_Declare(QTaskbarControl
- GIT_REPOSITORY https://github.com/Skycoder42/QTaskbarControl
- GIT_TAG 2.0.2
+ SOURCE_DIR @qtaskbarcontrol@
)
option(QHOTKEY_INSTALL OFF)
FetchContent_Declare(QHotkey
- GIT_REPOSITORY https://github.com/Skycoder42/QHotkey
- GIT_TAG 1.4.2
+ SOURCE_DIR @qhotkey@
)
FetchContent_Declare(QOnlineTranslator
- GIT_REPOSITORY https://github.com/crow-translate/QOnlineTranslator
- GIT_TAG 1.5.2
+ SOURCE_DIR @qonlinetranslator@
)
FetchContent_Declare(CircleFlags
- GIT_REPOSITORY https://github.com/HatScripts/circle-flags
- GIT_TAG v2.3.0
+ SOURCE_DIR @circleflags@
)
FetchContent_Declare(FluentIconTheme
- GIT_REPOSITORY https://github.com/vinceliuice/Fluent-icon-theme
- GIT_TAG 2021-08-15
+ SOURCE_DIR @fluent@
)
FetchContent_MakeAvailable(SingleApplication QTaskbarControl QHotkey QOnlineTranslator CircleFlags FluentIconTheme)