diff options
| author | Andrew Wong <wongandj@runbox.com> | 2026-06-18 01:37:51 -0400 |
|---|---|---|
| committer | Maxim Cournoyer <maxim@guixotic.coop> | 2026-06-21 10:02:42 +0900 |
| commit | cfd388999192e3e3d2a920b7ef5b95ece83d0e64 (patch) | |
| tree | 8b0ce8bed9eb2e91a0ebce0705af744cfe0dc868 | |
| parent | b5875c82d27a738337cc991467b294100db2e708 (diff) | |
gnu: psi-plus: Update to 1.5.2140.
* gnu/packages/messaging.scm (psi-plus): Update to 1.5.2140.
[origin]: Move substitutions to snippet.
Signed-off-by: Maxim Cournoyer <maxim@guixotic.coop>
| -rw-r--r-- | gnu/packages/messaging.scm | 60 |
1 files changed, 20 insertions, 40 deletions
diff --git a/gnu/packages/messaging.scm b/gnu/packages/messaging.scm index 1b2f19cf880..d5e9050bdb6 100644 --- a/gnu/packages/messaging.scm +++ b/gnu/packages/messaging.scm | |||
| @@ -2979,7 +2979,7 @@ implementation of an MQTT version client class.") | |||
| 2979 | (define-public psi-plus | 2979 | (define-public psi-plus |
| 2980 | (package | 2980 | (package |
| 2981 | (name "psi-plus") | 2981 | (name "psi-plus") |
| 2982 | (version "1.5.2115") | 2982 | (version "1.5.2140") |
| 2983 | (source | 2983 | (source |
| 2984 | (origin | 2984 | (origin |
| 2985 | (method git-fetch) | 2985 | (method git-fetch) |
| @@ -2990,10 +2990,26 @@ implementation of an MQTT version client class.") | |||
| 2990 | (file-name (git-file-name name version)) | 2990 | (file-name (git-file-name name version)) |
| 2991 | (modules '((guix build utils))) | 2991 | (modules '((guix build utils))) |
| 2992 | (snippet | 2992 | (snippet |
| 2993 | `(begin | 2993 | #~(begin |
| 2994 | (delete-file-recursively "3rdparty"))) | 2994 | (delete-file-recursively "3rdparty") |
| 2995 | (substitute* "CMakeLists.txt" | ||
| 2996 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty.*") "") | ||
| 2997 | (("add_subdirectory\\( 3rdparty \\)") "")) | ||
| 2998 | (substitute* "src/CMakeLists.txt" | ||
| 2999 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty.*") "") | ||
| 3000 | (("add_dependencies\\(\\$\\{PROJECT_NAME\\} qhttp\\)") | ||
| 3001 | "target_link_libraries(${PROJECT_NAME} qhttp)")) | ||
| 3002 | (substitute* "src/src.cmake" | ||
| 3003 | (("include\\(\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/libqite/libqite.cmake\\)") | ||
| 3004 | "list(APPEND EXTRA_LIBS qite)")) | ||
| 3005 | (substitute* '("src/filesharingmanager.h" "src/widgets/psirichtext.cpp" | ||
| 3006 | "src/filesharingmanager.cpp" "src/widgets/psitextview.cpp" | ||
| 3007 | "src/chatview_te.cpp" "src/msgmle.cpp") | ||
| 3008 | (("qite.h") "qite/qite.h") | ||
| 3009 | (("qiteaudio.h") "qite/qiteaudio.h") | ||
| 3010 | (("qiteaudiorecorder.h") "qite/qiteaudiorecorder.h")))) | ||
| 2995 | (sha256 | 3011 | (sha256 |
| 2996 | (base32 "14za9rh7nszv5px5a2w43ysi9977zws8a5mxsh7wc8ksr693faz2")))) | 3012 | (base32 "084nl0808mhz0vndsp504mvnvhwn2gvmp0qz2iw1rvfv86r26y3i")))) |
| 2997 | (build-system qt-build-system) | 3013 | (build-system qt-build-system) |
| 2998 | (arguments | 3014 | (arguments |
| 2999 | `(#:tests? #f ; No target | 3015 | `(#:tests? #f ; No target |
| @@ -3014,42 +3030,6 @@ implementation of an MQTT version client class.") | |||
| 3014 | "-DUSE_CCACHE=OFF") ; Not required | 3030 | "-DUSE_CCACHE=OFF") ; Not required |
| 3015 | #:phases | 3031 | #:phases |
| 3016 | (modify-phases %standard-phases | 3032 | (modify-phases %standard-phases |
| 3017 | (add-after 'unpack 'patch-source | ||
| 3018 | (lambda _ | ||
| 3019 | (substitute* "CMakeLists.txt" | ||
| 3020 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/http-parser/http_parser.h") | ||
| 3021 | "") | ||
| 3022 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qhttp/qhttp.pro") | ||
| 3023 | "") | ||
| 3024 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/qite.pro") | ||
| 3025 | "") | ||
| 3026 | (("add_subdirectory\\( 3rdparty \\)") | ||
| 3027 | "")) | ||
| 3028 | (substitute* "src/CMakeLists.txt" | ||
| 3029 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/libqite") | ||
| 3030 | "") | ||
| 3031 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/http-parser") | ||
| 3032 | "") | ||
| 3033 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qhttp/src/private") | ||
| 3034 | "") | ||
| 3035 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qhttp/src") | ||
| 3036 | "") | ||
| 3037 | (("\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty") | ||
| 3038 | "") | ||
| 3039 | (("add_dependencies\\(\\$\\{PROJECT_NAME\\} qhttp\\)") | ||
| 3040 | "target_link_libraries(${PROJECT_NAME} qhttp)")) | ||
| 3041 | (substitute* "src/src.cmake" | ||
| 3042 | (("include\\(\\$\\{PROJECT_SOURCE_DIR\\}/3rdparty/qite/libqite/libqite.cmake\\)") | ||
| 3043 | "list(APPEND EXTRA_LIBS qite)")) | ||
| 3044 | (substitute* '("src/filesharingmanager.h" "src/widgets/psirichtext.cpp" | ||
| 3045 | "src/filesharingmanager.cpp" "src/widgets/psitextview.cpp" | ||
| 3046 | "src/chatview_te.cpp" "src/msgmle.cpp") | ||
| 3047 | (("qite.h") | ||
| 3048 | "qite/qite.h") | ||
| 3049 | (("qiteaudio.h") | ||
| 3050 | "qite/qiteaudio.h") | ||
| 3051 | (("qiteaudiorecorder.h") | ||
| 3052 | "qite/qiteaudiorecorder.h")))) | ||
| 3053 | (add-after 'install 'wrap-executable | 3033 | (add-after 'install 'wrap-executable |
| 3054 | (lambda* (#:key outputs #:allow-other-keys) | 3034 | (lambda* (#:key outputs #:allow-other-keys) |
| 3055 | (let ((out (assoc-ref outputs "out"))) | 3035 | (let ((out (assoc-ref outputs "out"))) |
