source: trunk/dports/irc/bitlbee/Portfile @ 90951

Last change on this file since 90951 was 90951, checked in by yeled@…, 8 years ago

update to latest. closes #33676. see http://bugs.bitlbee.org/bitlbee/browser/devel/doc/CHANGES for changes

  • 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 90951 2012-03-19 10:13:34Z yeled@macports.org $
3
4PortSystem          1.0
5
6name                bitlbee
7version             3.0.5
8categories          irc net
9platforms           darwin
10maintainers         yeled
11description         An IRC to other chat networks gateway
12long_description    bitlbee is an IRC server that can connect to IM \
13                    networks such as AIM and MSN. Its intention is you \
14                    only have to use one client application for all your \
15                    instant messaging.
16
17homepage            http://www.bitlbee.org/
18master_sites        http://get.bitlbee.org/src/
19checksums           md5     9ff97260a2a7f3a7d102db158a8d9887 \
20                    sha1    74afdff87be49ce060771a6ae10d7643cd57b9b6 \
21                    rmd160  4e3ac7d396c400328300b9c43581bdb890190814
22
23depends_build       port:pkgconfig
24depends_lib         port:gnutls \
25                    port:gettext \
26                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
27                    port:libgcrypt \
28                    port:libgpg-error \
29                    port:libiconv
30
31patchfiles          patch-configure.diff
32configure.args      --config=${prefix}/var/lib/bitlbee/ --ssl=gnutls --otr=0
33configure.universal_args
34
35destroot.target     install install-etc
36
37# see #27598
38# this block is taken from the nodejs port
39pre-configure {
40    foreach {badport badfile} "libproxy ${prefix}/include/proxy.h" {
41        if {[file exists ${badfile}]} {
42            ui_error "${name} cannot be built while ${badport} is active."
43            ui_error "Please deactivate ${badport} and try again."
44            ui_error "You can reactivate ${badport} again later."
45            return -code error "${badport} is installed"
46        }
47    }
48}
49
50post-destroot {
51    destroot.keepdirs ${destroot}${prefix}/var/lib/bitlbee
52    set etcdir ${destroot}${prefix}/etc/bitlbee
53    move ${etcdir}/bitlbee.conf ${etcdir}/bitlbee.conf.sample
54    move ${etcdir}/motd.txt ${etcdir}/motd.txt.sample
55}
56
57post-activate {
58    ui_msg "To complete installation, run"
59    ui_msg "sudo cp ${prefix}/etc/bitlbee/bitlbee.conf.sample ${prefix}/etc/bitlbee/bitlbee.conf"
60    ui_msg "and edit ${prefix}/etc/bitlbee/bitlbee.conf to taste"
61}
62
63livecheck.type      regex
64livecheck.url       ${master_sites}
65livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
66
67default_variants +otr
68
69variant otr description {Off-the-Record messaging} {
70    configure.args-delete --otr=0
71    configure.args-append --otr=1
72    depends_lib-append    port:libotr
73}
Note: See TracBrowser for help on using the repository browser.