mirror of
https://git.freebsd.org/ports.git
synced 2025-04-29 18:16:48 -04:00
* Use upstream release archive as recommended by Porters Handbook and simplifies port * Fix usage of USE_GL helper * Add missing dependency USE_QT= network * Remove usage of git during build * Define version and sha checksum for build PR: 282093 Reviewed by: adridg (maintainer)
36 lines
930 B
Prolog
36 lines
930 B
Prolog
--- GitQlient.pro.orig 2024-10-14 22:38:13 UTC
|
|
+++ GitQlient.pro
|
|
@@ -4,11 +4,6 @@ DEFINES += QT_DEPRECATED_WARNINGS
|
|
QT += widgets core network gui
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
-if (!exists(src/git/.git) || !exists(src/AuxiliarCustomWidgets/.git) || !exists(src/QLogger/.git) || !exists(src/QPinnableTabWidget/.git)) {
|
|
- message("Submodule update:")
|
|
- system(git submodule update --init --recursive)
|
|
-}
|
|
-
|
|
unix:!macos {
|
|
TARGET = gitqlient
|
|
QMAKE_LFLAGS += -no-pie
|
|
@@ -57,19 +52,9 @@ OTHER_FILES += \
|
|
OTHER_FILES += \
|
|
$$PWD/LICENSE
|
|
|
|
-
|
|
-isEmpty(VERSION) {
|
|
- VERSION = $$system(git describe --abbrev=0)
|
|
- VERSION = $$replace(VERSION, "v", "")
|
|
-}
|
|
-
|
|
-!defined(GQ_SHA, var) {
|
|
- GQ_SHA = $$system(git rev-parse --short HEAD)
|
|
-}
|
|
-
|
|
DEFINES += \
|
|
- VER=\\\"$$VERSION\\\" \
|
|
- SHA_VER=\\\"$$GQ_SHA\\\"
|
|
+ VER=\\\"%%DISTVERSION%%\\\" \
|
|
+ SHA_VER=\\\"%%SHASHORT%%\\\"
|
|
|
|
!win32-msvc* {
|
|
debug {
|