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 | # $Id: Portfile 149653 2016-06-28 19:38:13Z cal@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | PortGroup cmake 1.0 |
---|
6 | PortGroup cxx11 1.0 |
---|
7 | PortGroup qt5 1.0 |
---|
8 | |
---|
9 | name quassel |
---|
10 | version 0.12.4 |
---|
11 | revision 1 |
---|
12 | categories irc |
---|
13 | license GPL-2 GPL-3 |
---|
14 | platforms darwin |
---|
15 | maintainers nomaintainer |
---|
16 | homepage http://quassel-irc.org |
---|
17 | master_sites ${homepage}/pub |
---|
18 | |
---|
19 | checksums rmd160 f7282c07716342b235ab506722c17675854569fb \ |
---|
20 | sha256 93e4e54cb3743cbe2e5684c2fcba94fd2bc2cd739f7672dee14341b49c29444d |
---|
21 | |
---|
22 | depends_lib-append \ |
---|
23 | port:qt5-qtscript \ |
---|
24 | path:lib/libssl.dylib:openssl \ |
---|
25 | port:zlib |
---|
26 | |
---|
27 | use_bzip2 yes |
---|
28 | |
---|
29 | # Do not use git to find out the program version - there is no ".git" directory |
---|
30 | # in the source tarball |
---|
31 | patchfiles patch-scripts-build-macosx_makebundle.py.diff |
---|
32 | |
---|
33 | post-patch { |
---|
34 | reinplace "s|@@VERSION@@|${version}|" \ |
---|
35 | ${worksrcpath}/scripts/build/macosx_makebundle.py |
---|
36 | } |
---|
37 | |
---|
38 | cmake.out_of_source yes |
---|
39 | |
---|
40 | configure.args -DWANT_CORE=OFF \ |
---|
41 | -DWANT_QTCLIENT=OFF \ |
---|
42 | -DWANT_MONO=OFF \ |
---|
43 | -DWITH_KDE=OFF \ |
---|
44 | -DUSE_QT5=ON |
---|
45 | |
---|
46 | if {${name} eq ${subport}} { |
---|
47 | description \ |
---|
48 | Qt5 IRC client |
---|
49 | long_description \ |
---|
50 | Quassel IRC is a modern, cross-platform IRC client. This port installs \ |
---|
51 | the monolithic variant, which does not require a separate Quassel core. |
---|
52 | |
---|
53 | depends_run-append port:qt5-sqlite-plugin |
---|
54 | |
---|
55 | configure.args-replace -DWANT_MONO=OFF -DWANT_MONO=ON |
---|
56 | |
---|
57 | destroot { |
---|
58 | copy "${build.dir}/Quassel.app" "${destroot}${applications_dir}" |
---|
59 | } |
---|
60 | } |
---|
61 | |
---|
62 | subport ${name}-client { |
---|
63 | description \ |
---|
64 | Qt5 IRC client - client component |
---|
65 | long_description \ |
---|
66 | Quassel IRC is a modern, cross-platform, distributed IRC client, \ |
---|
67 | meaning that one (or multiple) client(s) can attach to and detach from \ |
---|
68 | a central core - much like the popular combination of screen and a \ |
---|
69 | text-based IRC client such as WeeChat, but graphical. |
---|
70 | |
---|
71 | # QCA is needed for chat encryption, but we only have a variant for Qt5 |
---|
72 | # QCA, so we'd have to use require_active_variants, which I think isn't |
---|
73 | # worth the additional effort. |
---|
74 | #depends_run-append port:qca-ossl |
---|
75 | |
---|
76 | configure.args-replace -DWANT_QTCLIENT=OFF -DWANT_QTCLIENT=ON |
---|
77 | |
---|
78 | destroot { |
---|
79 | copy "${build.dir}/Quassel Client.app" "${destroot}${applications_dir}" |
---|
80 | } |
---|
81 | } |
---|
82 | |
---|
83 | livecheck.type regex |
---|
84 | livecheck.url http://quassel-irc.org/pub/ |
---|
85 | livecheck.regex "${name}-(\[0-9\.\]+)\.tar\.bz2" |
---|