Ticket #26124: Portfile

File Portfile, 2.2 KB (added by louis-francis.ratte-boulianne@…, 14 years ago)

Portfile

Line 
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
4PortSystem      1.0
5
6name            py26-telepathy
7set my_name     telepathy-python
8version         0.15.17
9set branch      [join [lrange [split ${version} .] 0 1] .]
10categories      python comms
11platforms       darwin
12maintainers     openmaintainer
13description     Python language bindings for telepathy
14homepage        http://telepathy.freedesktop.org/wiki/
15master_sites    http://telepathy.freedesktop.org/releases/${my_name}/
16
17long_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
25distname        ${my_name}-${version}
26
27checksums           md5     7f38d41abc9ce2a8f2eda820c002d0c4 \
28                    sha1    3650640fded7337d43f80d7747e9d56208d3e893 \
29                    rmd160  b3916eeaf1f008ff69dc595429d5fb87883288b4
30
31depends_lib     port:python26 \
32                port:dbus-python26
33
34set python_prefix ${frameworks_dir}/Python.framework/Versions/2.6
35
36configure.pre_args-delete  --prefix=${prefix}
37configure.pre_args-append  --prefix=${python_prefix}
38configure.args-append      --includedir=${python_prefix}/include/python2.6
39configure.pkg_config_path  ${python_prefix}/lib/pkgconfig
40
41configure.python    ${prefix}/bin/python2.6
42
43post-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
53livecheck.type  regex
54livecheck.url   ${master_sites}
55livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"