source: trunk/dports/net/gajim-devel/Portfile @ 57378

Last change on this file since 57378 was 57378, checked in by ryandesign@…, 11 years ago

Change deprecated svn.tag to svn.revision
See http://lists.macosforge.org/pipermail/macports-dev/2009-August/009699.html

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-off    set: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 57378 2009-09-10 08:38:23Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gajim-devel
7version             0.12-alpha1-r10268
8homepage            http://www.gajim.org/
9categories          net chat
10
11description         A full featured and easy to use Jabber client.
12long_description    The goal of Gajim is to provide a full featured and \
13                    easy to use Jabber client. Gajim works nicely with \
14                    GNOME, but does not require it to run.
15
16maintainers         rene
17
18platforms           darwin
19
20fetch.type          svn
21svn.url             svn://svn.gajim.org/gajim/trunk
22svn.revision        10268
23worksrcdir          trunk
24
25patchfiles          patch-src-osx-Makefile.am.diff \
26                    patch-src-osx-growl-Makefile.am.diff \
27                    patch-src-osx-syncmenu-Makefile.am.diff \
28                    patch-setup_osx.py.diff
29
30depends_build       port:intltool \
31                    port:autoconf \
32                    port:automake \
33                    port:py25-setuptools \
34                    port:py25-macholib-devel \
35                    port:py25-py2app-devel
36
37depends_lib         port:gettext \
38                    port:gtk2 \
39                    port:py25-gtk \
40                    port:py25-gobject \
41                    port:py25-docutils \
42                    port:py25-openssl \
43                    port:Growl
44
45post-patch {
46    set oldgtkpath "/Library/Frameworks/GTK+.framework/Versions/Current"
47    reinplace "s|@PYTHON@|${prefix}/bin/python2.5|" \
48        ${worksrcpath}/scripts/gajim-remote.in
49    reinplace "s|@PYTHON@|${prefix}/bin/python2.5|" \
50        ${worksrcpath}/scripts/gajim.in
51    reinplace "s|${oldgtkpath}|${prefix}|" \
52        ${worksrcpath}/src/osx/syncmenu/Makefile.am
53    reinplace "s|${oldgtkpath}|${prefix}|" \
54        ${worksrcpath}/setup_osx.py
55}
56
57pre-configure {
58    set aclocal "${prefix}/bin/aclocal"
59    system "cd ${worksrcpath} && ${aclocal} -I m4/ -I ${prefix}/share/aclocal/"
60    system "cd ${worksrcpath} && ./autogen.sh"
61}
62
63use_autoconf        yes
64use_automake        yes
65automake.args       --foreign --add-missing --copy
66
67configure.args      --disable-dependency-tracking \
68                    --with-x \
69                    --disable-remote \
70                    CC=gcc CPP=cpp CXX=g++
71
72destroot {
73    system "cd ${worksrcpath} && ${prefix}/bin/python2.5 setup_osx.py build"
74    xinstall -d ${destroot}${applications_dir}
75    file rename ${worksrcpath}/dist/Gajim.app \
76        ${destroot}${applications_dir}/
77    ui_msg "********************************************************"
78    ui_msg "* Gajim has been installed to ${applications_dir}"
79    ui_msg "* Double click Gajim.app to start using it."
80    ui_msg "********************************************************"
81}
82
83variant no_x11 description {Disable X11 support} {
84    configure.args-delete   --with-x
85}
86
87variant dbus description {Enable dbus support} {
88    depends_lib-append      port:dbus-python25
89}
90
91variant remote description {Enable remote support} {
92    configure.args-delete   --disable-remote
93    configure.args-append   --enable-remote
94}
95
Note: See TracBrowser for help on using the repository browser.