source: trunk/dports/irc/quassel/Portfile

Last change on this file was 149653, checked in by cal@…, 13 months ago

quassel: use qt5

Especially on high-DPI displays, Qt5 performs a lot better than Qt4.

Unfortunately, our list of dependencies supporting Qt5 is not very long at
the moment; notably we do not have phonon or dbusmenu-qt for Qt5 (although
the latter seems to be used for clickable menus which seems to work without
DBus on OS X). For QCA we only have a variant for Qt5 support, which would
require using the active_variants PortGroup and manual user interaction.
Since QCA is only needed for client-side encrypted IRC communication, which
isn't widely used, I think we can get away without it for now.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 KB
Line 
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 ryandesign@macports.org $
3
4PortSystem 1.0
5PortGroup cmake 1.0
6PortGroup cxx11 1.0
7PortGroup qt5 1.0
8
9name            quassel
10version         0.12.4
11revision        1
12categories      irc
13license         GPL-2 GPL-3
14platforms       darwin
15maintainers     nomaintainer
16homepage        http://quassel-irc.org
17master_sites    ${homepage}/pub
18
19checksums       rmd160  f7282c07716342b235ab506722c17675854569fb \
20                sha256  93e4e54cb3743cbe2e5684c2fcba94fd2bc2cd739f7672dee14341b49c29444d
21
22depends_lib-append \
23                port:qt5-qtscript \
24                path:lib/libssl.dylib:openssl \
25                port:zlib
26
27use_bzip2       yes
28
29# Do not use git to find out the program version - there is no ".git" directory
30# in the source tarball
31patchfiles      patch-scripts-build-macosx_makebundle.py.diff
32
33post-patch {
34    reinplace "s|@@VERSION@@|${version}|" \
35        ${worksrcpath}/scripts/build/macosx_makebundle.py
36}
37
38cmake.out_of_source yes
39
40configure.args  -DWANT_CORE=OFF \
41                -DWANT_QTCLIENT=OFF \
42                -DWANT_MONO=OFF \
43                -DWITH_KDE=OFF \
44                -DUSE_QT5=ON
45
46if {${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
62subport ${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
83livecheck.type  regex
84livecheck.url   http://quassel-irc.org/pub/
85livecheck.regex "${name}-(\[0-9\.\]+)\.tar\.bz2"
Note: See TracBrowser for help on using the repository browser.