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