source: trunk/dports/irc/weechat/Portfile @ 104704

Last change on this file since 104704 was 104704, checked in by jeremyhu@…, 6 years ago

gnutls: Bump to 3.1.10 and revbump dependents

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.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 104704 2013-04-01 03:14:41Z jeremyhu@macports.org $
3
4PortSystem  1.0
5PortGroup   cmake 1.0
6
7name        weechat
8version     0.4.0
9revision    1
10categories  irc
11maintainers otherware.org:nefar openmaintainer
12license     GPL-3
13description Fast, light & extensible IRC client
14long_description    \
15    WeeChat (Wee Enhanced Environment for Chat) is a fast and light IRC client\
16     for many operating systems. Everything can be done with a keyboard.\
17     It is customizable and extensible with plugins/scripts, and includes:\
18      - nicklist\
19      - smart hotlist\
20      - infobar with highlight notification\
21      - horizontal and vertical split\
22      - double charset support (decode/encode)\
23      - FIFO pipe for remote control\
24      - and much more!
25homepage    http://weechat.org/
26platforms   darwin
27master_sites    ${homepage}files/src
28
29checksums           rmd160  70a3b67762227c8408b8ca880ea1af15fcc7fe81 \
30                    sha256  1df12201d8b0ac25f62ddbfb675e8f3d978e52bc5b644d55ccf4c755956fa60d
31
32depends_lib-append  port:gettext \
33                    port:libgcrypt \
34                    port:libiconv \
35                    port:ncurses
36
37patchfiles          patch-src_plugins_Makefile.diff
38
39configure.args-append   -DENABLE_GNUTLS=OFF \
40                        -DENABLE_LUA=OFF \
41                        -DENABLE_GUILE=OFF \
42                        -DENABLE_PERL=OFF \
43                        -DENABLE_PYTHON=OFF \
44                        -DENABLE_RUBY=OFF \
45                        -DENABLE_ASPELL=OFF
46
47use_bzip2   yes
48
49variant aspell description {Support for aspell} {
50    configure.args-delete   -DENABLE_ASPELL=OFF
51    configure.args-append   -DENABLE_ASPELL=ON
52    depends_lib-append      port:aspell
53}
54
55variant lua description {Bindings for lua plugins} {
56    configure.args-delete -DENABLE_LUA=OFF
57    configure.args-append -DENABLE_LUA=ON
58    depends_lib-append    port:lua
59}
60
61variant scheme description {Bindings for Scheme (guile) plugins} {
62    configure.args-delete -DENABLE_GUILE=OFF
63    configure.args-append -DENABLE_GUILE=ON
64    depends_lib-append    port:guile
65}
66
67variant perl description {Bindings for perl plugins} {
68    configure.args-delete -DENABLE_PERL=OFF
69    configure.args-append -DENABLE_PERL=ON
70    depends_lib-append    path:bin/perl:perl5
71}
72
73variant python description {Bindings for python plugins} {
74    configure.args-delete   -DENABLE_PYTHON=OFF
75    configure.args-append   -DENABLE_PYTHON=ON
76    depends_lib-append      path:bin/python:python26
77}
78
79variant ruby description {Bindings for ruby plugins} {
80    configure.args-delete -DENABLE_RUBY=OFF
81    configure.args-append -DENABLE_RUBY=ON
82    depends_lib-append    port:ruby
83}
84
85variant tls description {Support for secure connecting} {
86    configure.args-delete -DENABLE_GNUTLS=OFF
87    configure.args-append -DENABLE_GNUTLS=ON
88    depends_lib-append    port:gnutls
89}
90
91post-destroot {
92    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
93    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \
94        ${destroot}${prefix}/share/doc/${name}
95    eval xinstall -m 644 -W ${worksrcpath} [glob doc/en/weechat*.txt] \
96        ${destroot}${prefix}/share/doc/${name}
97}
98
99post-install {
100    # if present then remove file previously installed outside destroot
101    foreach file {include/weechat/weechat-plugin.h} {
102        set filepath ${prefix}/${file}
103        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
104            if {[catch {delete ${filepath}}]} {
105                ui_warn "Cannot delete ${filepath}; please remove it manually"
106            }
107        }
108    }
109}
110
Note: See TracBrowser for help on using the repository browser.