source: trunk/dports/net/mcabber/Portfile

Last change on this file was 153823, checked in by khindenburg@…, 14 months ago

mcabber: update to 1.0.3

  • 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 153823 2016-10-12 14:05:41Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                mcabber
7version             1.0.3
8license             GPL-2+
9categories          net
10maintainers         nomaintainer
11description         Console Jabber client
12long_description    mcabber is a small Jabber console client. It includes features like \
13                    SSL, MUC, history logging, command completion, OpenPGP encryption, \
14                    OTR and external action triggers.
15homepage            http://mcabber.com/
16platforms           darwin
17master_sites        http://mcabber.com/files/
18use_bzip2           yes
19
20checksums           rmd160  38895b85cb27976ad650e88f229e41dcfa5f479f \
21                    sha256  44e6bb0aa0c399261fc212c386a3c2540db133e7593592247ee1621df659139a
22
23depends_lib         port:libiconv \
24                    port:ncurses \
25                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
26                    port:gettext \
27                    port:libotr \
28                    port:gpgme \
29                    port:libgcrypt \
30                    port:loudmouth
31
32depends_build       port:autoconf \
33                    port:automake \
34                    port:coreutils \
35                    bin:gawk:gawk \
36                    port:libtool \
37                    port:pkgconfig \
38                    port:cctools \
39                    port:grep \
40                    port:gsed
41
42configure.args      --enable-otr \
43                    --with-libotr-prefix=${prefix}/lib \
44                    --with-libotr-inc-prefix=${prefix}/include
45
46configure.env       LIBTOOL=glibtool
47
48patchfiles          patch-autogen.sh.diff
49
50pre-configure {
51    system -W ${worksrcpath} "./autogen.sh"
52}
53
54# TODO
55# Bug #26 on mcabber - see pre-configure section for a workaround
56variant aspell description {Use aspell spell checking - remember to install a dictionary, too} {
57    configure.args-append   --enable-aspell
58    depends_lib-append      port:aspell
59}
60
61post-configure {
62    reinplace "s|#define HAVE_LOCALCHARSET_H 1|\/\* #undef HAVE_LOCALCHARSET_H \*\/|g" ${worksrcpath}/${name}/config.h
63}
64
65post-destroot {
66     copy ${worksrcpath}/mcabberrc.example \
67          ${destroot}${prefix}/share/${name}/
68}
69
70notes "
71If this is your first install, follow the below instructions to get started:
72    mkdir ~/.mcabber
73    chmod 0700 ~/.mcabber
74    cp ${prefix}/share/${name}/mcabberrc.example ~/.mcabber/mcabberrc
75Then edit that file to set your username and server (or only the 'jid' option).
76"
77
78livecheck.type      regex
79livecheck.url       ${homepage}
80livecheck.regex     {<tt>mcabber ([0-9.]*)</tt>}
Note: See TracBrowser for help on using the repository browser.