| 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 \
connection managers, and proxy classes for use in clients. \
Telepathy is a D-Bus framework for unifying real time communication, \
including instant messaging, voice calls and video calls. It abstracts \
differences between protocols to provide a unified interface for \
applications.
|
|---|
| 19 | |
|---|
| 20 | distname ${my_name}-${version} |
|---|
| 21 | |
|---|
| 22 | checksums md5 7f38d41abc9ce2a8f2eda820c002d0c4 \ |
|---|
| 23 | sha1 3650640fded7337d43f80d7747e9d56208d3e893 \ |
|---|
| 24 | rmd160 b3916eeaf1f008ff69dc595429d5fb87883288b4 |
|---|
| 25 | |
|---|
| 26 | depends_lib port:python26 \ |
|---|
| 27 | port:dbus-python26 |
|---|
| 28 | |
|---|
| 29 | set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6 |
|---|
| 30 | |
|---|
| 31 | configure.pre_args-delete --prefix=${prefix} |
|---|
| 32 | configure.pre_args-append --prefix=${python_prefix} |
|---|
| 33 | configure.args-append --includedir=${python_prefix}/include/python2.6 |
|---|
| 34 | configure.pkg_config_path ${python_prefix}/lib/pkgconfig |
|---|
| 35 | |
|---|
| 36 | configure.python ${prefix}/bin/python2.6 |
|---|
| 37 | |
|---|
| 38 | post-destroot { |
|---|
| 39 | set docdir ${prefix}/share/doc/${name} |
|---|
| 40 | xinstall -d ${destroot}${docdir} |
|---|
| 41 | xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README \ |
|---|
| 42 | ${destroot}${docdir} |
|---|
| 43 | xinstall -d ${destroot}${prefix}/share/gtk-doc/html |
|---|
| 44 | system "ln -s ${python_prefix}/share/${my_name} ${destroot}${prefix}/share/${my_name}26" |
|---|
| 45 | system "ln -s ${python_prefix}/share/gtk-doc/html/${my_name} ${destroot}${prefix}/share/gtk-doc/html/${my_name}26" |
|---|
| 46 | } |
|---|
| 47 | |
|---|
| 48 | livecheck.type regex |
|---|
| 49 | livecheck.url ${master_sites} |
|---|
| 50 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
|---|