diff --git a/devel/qgit/Portfile b/devel/qgit/Portfile
index 7b8fe1c52ab..e27a73019a6 100644
a
|
b
|
|
1 | 1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
2 | 2 | |
3 | 3 | PortSystem 1.0 |
4 | | PortGroup qt4 1.0 |
| 4 | PortGroup github 1.0 |
| 5 | PortGroup cmake 1.1 |
| 6 | PortGroup qt5 1.0 |
| 7 | |
| 8 | github.setup tibirna qgit 2.9 |
| 9 | github.master_sites ${github.homepage}/archive |
| 10 | checksums rmd160 b629af85aec2653acf0ef13178278794e70fb102 \ |
| 11 | sha256 69788efda7d434d1bc094bb414bd92c269dc7894326320634500b05d63c008e8 \ |
| 12 | size 263875 |
5 | 13 | |
6 | | name qgit |
7 | | version 2.5.20140910 |
8 | 14 | categories devel |
9 | 15 | license GPL-2 |
10 | 16 | maintainers nomaintainer |
11 | 17 | description A Qt graphical interface to git repositories |
12 | 18 | long_description {*}${description} |
13 | 19 | |
14 | | homepage http://libre.tibirna.org/projects/qgit |
15 | | |
16 | | fetch.type git |
17 | | git.url git://repo.or.cz/qgit4/redivivus.git |
18 | | git.branch c83cb5819443adf0e3b60d1ac3a63d9cbb22e124 |
19 | | |
20 | 20 | platforms darwin |
21 | 21 | |
22 | 22 | depends_lib-append port:git |
23 | 23 | |
24 | | patchfiles patch_src_qgit.cpp.diff |
| 24 | patchfiles patch_src_qgit.cpp.diff \ |
| 25 | patch_src_namespace_def.cpp.diff \ |
| 26 | patch-build-app-bundle.diff |
25 | 27 | |
26 | 28 | variant debug description "Build as both release and debug" {} |
27 | 29 | |
… |
… |
post-patch { |
35 | 37 | # nothing to do if +debug is specified; this is the default. |
36 | 38 | } |
37 | 39 | |
38 | | # --disable-dependency-tracking is not recognized. |
39 | | configure.universal_args-delete --disable-dependency-tracking |
40 | | |
41 | | pre-configure { |
42 | | configure.args-append CONFIG+=\"${qt_arch_types}\" |
43 | | } |
44 | | |
45 | | configure.cmd ${qt_qmake_cmd} |
46 | | configure.pre_args |
47 | | configure.post_args |
| 40 | cmake.out_of_source yes |
48 | 41 | |
49 | 42 | destroot { |
50 | 43 | xinstall -m 755 -d ${destroot}${qt_apps_dir} |
51 | | copy ${worksrcpath}/bin/qgit.app ${destroot}${qt_apps_dir} |
| 44 | copy ${build.dir}/qgit.app ${destroot}${qt_apps_dir} |
52 | 45 | |
53 | 46 | # Also link to ${prefix}/bin for easier access from the command line |
54 | 47 | # Especially useful since qgit is supposed to be started from |
… |
… |
destroot { |
56 | 49 | ln -s ${qt_apps_dir}/qgit.app/Contents/MacOS/qgit ${destroot}${prefix}/bin |
57 | 50 | } |
58 | 51 | |
59 | | livecheck.type none |
| 52 | github.tag_prefix ${name}- |
diff --git a/devel/qgit/files/patch_src_namespace_def.cpp.diff b/devel/qgit/files/patch_src_namespace_def.cpp.diff
index 34a1403c262..a0eef8f2c12 100644
a
|
b
|
|
1 | | diff -ru src/namespace_def.cpp.org src/namespace_def.cpp |
2 | | --- src/namespace_def.cpp.org 2008-03-21 03:19:30.000000000 +0100 |
3 | | +++ src/namespace_def.cpp 2008-10-11 17:11:09.000000000 +0200 |
4 | | @@ -51,6 +51,33 @@ |
| 1 | --- src/namespace_def.cpp.orig 2019-08-24 15:15:06.000000000 -0400 |
| 2 | +++ src/namespace_def.cpp 2020-06-24 10:37:03.000000000 -0400 |
| 3 | @@ -77,6 +77,33 @@ |
5 | 4 | } |
6 | 5 | } |
7 | 6 | |
diff --git a/devel/qgit/files/patch_src_qgit.cpp.diff b/devel/qgit/files/patch_src_qgit.cpp.diff
index 125f5a4e1f9..6485d680acb 100644
a
|
b
|
|
1 | | diff -ru src/qgit.cpp.org src/qgit.cpp |
2 | | --- src/qgit.cpp.org 2007-12-31 07:12:57.000000000 +0100 |
3 | | +++ src/qgit.cpp 2008-10-11 17:14:05.000000000 +0200 |
4 | | @@ -16,11 +16,11 @@ |
5 | | QCoreApplication::setOrganizationName(ORG_KEY); |
| 1 | --- src/qgit.cpp.orig 2019-08-24 15:15:06.000000000 -0400 |
| 2 | +++ src/qgit.cpp 2020-06-19 15:53:13.000000000 -0400 |
| 3 | @@ -24,11 +24,11 @@ |
| 4 | QCoreApplication::setOrganizationName(ORG_KEY); |
6 | 5 | QCoreApplication::setApplicationName(APP_KEY); |
7 | 6 | |
8 | 7 | - /* On Windows msysgit exec directory is set up |