1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id: Portfile 63036 2010-01-24 10:43:40Z jmr@macports.org $ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name py26-telepathy |
---|
7 | set my_name telepathy-python |
---|
8 | version 0.15.17 |
---|
9 | set branch [join [lrange [split ${version} .] 0 1] .] |
---|
10 | categories python comms |
---|
11 | platforms darwin |
---|
12 | maintainers openmaintainer |
---|
13 | description Python language bindings for telepathy |
---|
14 | homepage http://telepathy.freedesktop.org/wiki/ |
---|
15 | master_sites http://telepathy.freedesktop.org/releases/${my_name}/ |
---|
16 | |
---|
17 | long_description \ |
---|
18 | Telepathy-python is a Python package containing base classes for use in \ |
---|
19 | connection managers, and proxy classes for use in clients. \ |
---|
20 | Telepathy is a D-Bus framework for unifying real time communication, \ |
---|
21 | including instant messaging, voice calls and video calls. It abstracts \ |
---|
22 | differences between protocols to provide a unified interface for \ |
---|
23 | applications. |
---|
24 | |
---|
25 | distname ${my_name}-${version} |
---|
26 | |
---|
27 | checksums md5 7f38d41abc9ce2a8f2eda820c002d0c4 \ |
---|
28 | sha1 3650640fded7337d43f80d7747e9d56208d3e893 \ |
---|
29 | rmd160 b3916eeaf1f008ff69dc595429d5fb87883288b4 |
---|
30 | |
---|
31 | depends_lib port:python26 \ |
---|
32 | port:dbus-python26 |
---|
33 | |
---|
34 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 |
---|
35 | |
---|
36 | configure.pre_args-delete --prefix=${prefix} |
---|
37 | configure.pre_args-append --prefix=${python_prefix} |
---|
38 | configure.args-append --includedir=${python_prefix}/include/python2.6 |
---|
39 | configure.pkg_config_path ${python_prefix}/lib/pkgconfig |
---|
40 | |
---|
41 | configure.python ${prefix}/bin/python2.6 |
---|
42 | |
---|
43 | post-destroot { |
---|
44 | set docdir ${prefix}/share/doc/${name} |
---|
45 | xinstall -d ${destroot}${docdir} |
---|
46 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ |
---|
47 | ${destroot}${docdir} |
---|
48 | xinstall -d ${destroot}${prefix}/share/gtk-doc/html |
---|
49 | system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26" |
---|
50 | system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26" |
---|
51 | } |
---|
52 | |
---|
53 | livecheck.type regex |
---|
54 | livecheck.url ${master_sites} |
---|
55 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|