[72383] trunk/dports/devel/gtk-osx-application/Portfile
elelay at macports.org
elelay at macports.org
Tue Oct 12 10:52:24 PDT 2010
Revision: 72383
http://trac.macports.org/changeset/72383
Author: elelay at macports.org
Date: 2010-10-12 10:52:21 -0700 (Tue, 12 Oct 2010)
Log Message:
-----------
new (default) python27 variant of gtk-osx-application
Modified Paths:
--------------
trunk/dports/devel/gtk-osx-application/Portfile
Modified: trunk/dports/devel/gtk-osx-application/Portfile
===================================================================
--- trunk/dports/devel/gtk-osx-application/Portfile 2010-10-12 17:49:32 UTC (rev 72382)
+++ trunk/dports/devel/gtk-osx-application/Portfile 2010-10-12 17:52:21 UTC (rev 72383)
@@ -51,7 +51,7 @@
configure.python ${python_prefix}/bin/python2.5
configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
- configure.pkg_config_path ${frameworks_dir}/Python.framework/Versions/2.5/lib/pkgconfig/
+ configure.pkg_config_path ${python_prefix}/lib/pkgconfig/
configure.pre_args --prefix=${python_prefix}
}
@@ -62,15 +62,26 @@
configure.python ${python_prefix}/bin/python2.6
configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
- configure.pkg_config_path ${frameworks_dir}/Python.framework/Versions/2.6/lib/pkgconfig/
+ configure.pkg_config_path ${python_prefix}/lib/pkgconfig/
configure.pre_args --prefix=${python_prefix}
}
-if {![variant_isset python25]} {
- default_variants +python26
+variant python27 conflicts python26 conflicts python25 description {Use Python 2.7} {
+ depends_lib-append port:py27-gtk
+ set python_prefix ${frameworks_dir}/Python.framework/Versions/2.7
+
+ configure.python ${python_prefix}/bin/python2.7
+ configure.env-append PYGTK_CODEGEN=${python_prefix}/bin/pygtk-codegen-2.0
+ configure.env-append PYGOBJECT_CODEGEN=${python_prefix}/bin/pygobject-codegen-2.0
+ configure.pkg_config_path ${python_prefix}/lib/pkgconfig/
+ configure.pre_args --prefix=${python_prefix}
}
+if {![variant_isset python25] && ![variant_isset python26]} {
+ default_variants +python27
+}
+
configure.ccache no
configure.cmd-append --libdir=${prefix}/lib --includedir=${prefix}/include
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20101012/48944d45/attachment.html>
More information about the macports-changes
mailing list