source: trunk/dports/python/py-notify-python/Portfile @ 100207

Last change on this file since 100207 was 100207, checked in by elelay@…, 7 years ago

fix #37099 and #37098

#37098 : enhancement: py26-notify-python, py27-notify-python: unify
#37099 : defect: py26-notify-python installs to the wrong directory

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 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 100207 2012-12-03 20:01:55Z elelay@macports.org $
3
4PortSystem          1.0
5PortGroup           python 1.0
6
7name                py-notify-python
8set myname                      notify-python
9version             0.1.1
10revision            3
11categories-append   python devel
12license             GPL-2
13maintainers         elelay
14platforms           darwin
15description         libnotify python bindings
16
17long_description    libnotify sends desktop notifications\
18                                        to a notification daemon, as defined in\
19                                        the Desktop Notifications spec.\
20                                        These notifications can be used to inform \
21                                        the user about an event or display some form \
22                                        of information without getting in the user's way.\
23                                        python-notify provides the Python bindings for libnotify
24
25homepage            http://www.galago-project.org/
26master_sites        http://www.galago-project.org/files/releases/source/${myname}
27
28distname                        ${myname}-${version}
29use_bzip2                       yes
30
31checksums               md5     d247cf79b46cef7495deb0a76334f81d \
32                    sha1    490693cf601793f50cef1a3c82ba75025497fc00 \
33                    rmd160  52f5b5cc7c01be32525db7a2edc0f3dee41911ef
34
35depends_build       port:pkgconfig
36
37patchfiles                      patch-src-pynotifymodule-c.diff
38
39# Use the python subports feature but notify-python uses make
40# rather than setup.py for building since there are compiled libraries.
41# So the build procedure must unravel the python PortGroup settings
42# and revert to values compatible with a make environment.
43
44python.versions     26 27
45python.default_version 27
46
47if {$subport != $name} {
48
49    depends_lib         port:libnotify\
50                        port:py${python.version}-gtk
51   
52   
53    use_configure       yes
54
55    build.type          gnu
56    build.cmd           make
57    build.target        all
58    build.args          {}
59
60    destroot.cmd        ${build.cmd}
61    destroot.target     install
62    destroot.args       {}
63    destroot.destdir    DESTDIR=${destroot}
64
65    patchfiles                      patch-src-pynotifymodule-c.diff
66                   
67    configure.python    ${python.bin}
68    configure.pkg_config_path   ${python.prefix}/lib/pkgconfig
69    configure.pre_args      --prefix=${python.prefix}
70
71    livecheck.type      none
72} else {
73    livecheck.type      regex
74    livecheck.url       ${master_sites}
75    livecheck.regex     "${myname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
76}
Note: See TracBrowser for help on using the repository browser.