[100207] trunk/dports/python
elelay at macports.org
elelay at macports.org
Mon Dec 3 12:01:55 PST 2012
Revision: 100207
https://trac.macports.org/changeset/100207
Author: elelay at macports.org
Date: 2012-12-03 12:01:55 -0800 (Mon, 03 Dec 2012)
Log Message:
-----------
fix #37099 and #37098
#37098 : enhancement: py26-notify-python, py27-notify-python: unify
#37099 : defect: py26-notify-python installs to the wrong directory
Modified Paths:
--------------
trunk/dports/python/py-notify-python/Portfile
Added Paths:
-----------
trunk/dports/python/py-notify-python/
Removed Paths:
-------------
trunk/dports/python/py26-notify-python/
trunk/dports/python/py27-notify-python/
Modified: trunk/dports/python/py-notify-python/Portfile
===================================================================
--- trunk/dports/python/py27-notify-python/Portfile 2012-11-26 06:57:43 UTC (rev 100066)
+++ trunk/dports/python/py-notify-python/Portfile 2012-12-03 20:01:55 UTC (rev 100207)
@@ -2,11 +2,12 @@
# $Id$
PortSystem 1.0
+PortGroup python 1.0
-name py27-notify-python
+name py-notify-python
set myname notify-python
version 0.1.1
-revision 2
+revision 3
categories-append python devel
license GPL-2
maintainers elelay
@@ -32,17 +33,44 @@
rmd160 52f5b5cc7c01be32525db7a2edc0f3dee41911ef
depends_build port:pkgconfig
-depends_lib port:libnotify\
- port:py27-gtk
patchfiles patch-src-pynotifymodule-c.diff
-
-set my_python "${frameworks_dir}/Python.framework/Versions/2.7"
-configure.python ${my_python}/bin/python
-configure.pkg_config_path ${my_python}/lib/pkgconfig
-configure.pre_args --prefix=${my_python}
+# 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 26 27
+python.default_version 27
+
+if {$subport != $name} {
+
+ depends_lib port:libnotify\
+ port:py${python.version}-gtk
-livecheck.type regex
-livecheck.url ${master_sites}
-livecheck.regex "${myname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
+
+ 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
+
+ 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}"
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20121203/c9f02036/attachment.html>
More information about the macports-changes
mailing list