You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-03-31 14:42:53 -07:00
pkg-config is used to create all the linker flags but misses '-lpython2.7' which is required to fix the error in the ticket. It's not possible to change pkg-config output from this port's context (and dangerous). It's not possible to patch the generated src/Makefile because in it are paths relative to a specific MacPorts install. Appending to the variable in configure is therefore the simplest solution. Closes: https://trac.macports.org/ticket/65092
77 lines
2.4 KiB
Tcl
77 lines
2.4 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
PortGroup python 1.0
|
|
|
|
name py-notify-python
|
|
set myname notify-python
|
|
version 0.1.1
|
|
revision 6
|
|
categories-append python devel
|
|
license GPL-2
|
|
maintainers nomaintainer
|
|
platforms darwin
|
|
description libnotify python bindings
|
|
|
|
long_description libnotify sends desktop notifications\
|
|
to a notification daemon, as defined in\
|
|
the Desktop Notifications spec.\
|
|
These notifications can be used to inform \
|
|
the user about an event or display some form \
|
|
of information without getting in the user's way.\
|
|
python-notify provides the Python bindings for libnotify
|
|
|
|
homepage http://www.galago-project.org/
|
|
master_sites http://www.galago-project.org/files/releases/source/${myname}
|
|
|
|
distname ${myname}-${version}
|
|
use_bzip2 yes
|
|
|
|
checksums md5 d247cf79b46cef7495deb0a76334f81d \
|
|
sha1 490693cf601793f50cef1a3c82ba75025497fc00 \
|
|
rmd160 52f5b5cc7c01be32525db7a2edc0f3dee41911ef
|
|
|
|
# Use the python subports feature but notify-python uses make
|
|
# rather than setup.py for building since there are compiled libraries.
|
|
# So the build procedure must unravel the python PortGroup settings
|
|
# and revert to values compatible with a make environment.
|
|
|
|
python.versions 27
|
|
|
|
if {${name} ne ${subport}} {
|
|
|
|
depends_build-append \
|
|
port:pkgconfig
|
|
|
|
depends_lib-append port:libnotify \
|
|
port:py${python.version}-pygtk
|
|
|
|
|
|
use_configure yes
|
|
|
|
build.type gnu
|
|
build.cmd make
|
|
build.target all
|
|
build.args
|
|
|
|
destroot.cmd ${build.cmd}
|
|
destroot.target install
|
|
destroot.args
|
|
destroot.destdir DESTDIR=${destroot}
|
|
|
|
patchfiles patch-src-pynotifymodule-c.diff \
|
|
implicit.patch \
|
|
libnotify07.patch \
|
|
missing-python27-symbols.patch
|
|
|
|
configure.python ${python.bin}
|
|
configure.pkg_config_path ${python.prefix}/lib/pkgconfig
|
|
configure.pre_args --prefix=${python.prefix}
|
|
|
|
livecheck.type none
|
|
} else {
|
|
livecheck.type regex
|
|
livecheck.url ${master_sites}
|
|
livecheck.regex "${myname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
|
|
}
|