nixpkgs/pkgs/applications/misc/crow-translate/dont-fetch-external-libs.patch

58 lines
1.7 KiB
Diff
Raw Normal View History

2021-02-05 00:02:12 +01:00
diff --git i/CMakeLists.txt w/CMakeLists.txt
index 2576203..26162a0 100644
--- i/CMakeLists.txt
+++ w/CMakeLists.txt
@@ -91,12 +91,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)
add_executable(${PROJECT_NAME}
${QM_FILES}
data/icons/engines/engines.qrc
- ${CircleFlags_SOURCE_DIR}/flags/flags.qrc
+ data/icons/flags.qrc
src/addlanguagedialog.cpp
src/addlanguagedialog.ui
src/cli.cpp
2020-11-29 23:17:24 +01:00
diff --git i/cmake/ExternalLibraries.cmake w/cmake/ExternalLibraries.cmake
2021-02-05 00:02:12 +01:00
index 21eba0a..b613d3e 100644
2020-11-29 23:17:24 +01:00
--- i/cmake/ExternalLibraries.cmake
+++ w/cmake/ExternalLibraries.cmake
2021-02-05 00:02:12 +01:00
@@ -2,29 +2,24 @@ include(FetchContent)
2020-11-29 23:17:24 +01:00
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.4.1
+ SOURCE_DIR @qonlinetranslator@
)
2021-02-05 00:02:12 +01:00
FetchContent_Declare(CircleFlags
- GIT_REPOSITORY https://github.com/HatScripts/circle-flags
- GIT_TAG v2.0.0
+ SOURCE_DIR @circleflags@
)
FetchContent_MakeAvailable(SingleApplication QTaskbarControl QHotkey QOnlineTranslator CircleFlags)