[79512] trunk/dports/print/pdflib/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Wed Jun 15 21:49:09 PDT 2011


Revision: 79512
          http://trac.macports.org/changeset/79512
Author:   mcalhoun at macports.org
Date:     2011-06-15 21:49:09 -0700 (Wed, 15 Jun 2011)
Log Message:
-----------
pdflib: Add support for Python 2.7.

Modified Paths:
--------------
    trunk/dports/print/pdflib/Portfile

Modified: trunk/dports/print/pdflib/Portfile
===================================================================
--- trunk/dports/print/pdflib/Portfile	2011-06-16 04:49:06 UTC (rev 79511)
+++ trunk/dports/print/pdflib/Portfile	2011-06-16 04:49:09 UTC (rev 79512)
@@ -73,7 +73,7 @@
 	}
 }
 
-variant python25 description {Enable Python language binding using version 2.5} conflicts python24 python26 {
+variant python25 description {Enable Python language binding using version 2.5} conflicts python24 python26 python27 {
 	set pyversion           2.5
 	depends_lib-append			port:python[strsed ${pyversion} {g/[.]//}]
 	configure.args-delete	--without-py
@@ -89,7 +89,7 @@
 	}
 }
 
-variant python26 description {Enable Python language binding using version 2.6} conflicts python24 python25 {
+variant python26 description {Enable Python language binding using version 2.6} conflicts python24 python25 python27 {
 	set pyversion           2.6
 	depends_lib-append			port:python[strsed ${pyversion} {g/[.]//}]
 	configure.args-delete	--without-py
@@ -99,6 +99,16 @@
 	configure.env-append	PYTHONBIN=${prefix}/bin/python${pyversion}
 }
 
+variant python27 description {Enable Python language binding using version 2.7} conflicts python24 python25 python26 {
+	set pyversion           2.7
+	depends_lib-append			port:python[strsed ${pyversion} {g/[.]//}]
+	configure.args-delete	--without-py
+	configure.args-append \
+        --with-py=${frameworks_dir}/Python.framework/Versions/${pyversion} \
+        --with-pyincl=${frameworks_dir}/Python.framework/Versions/${pyversion}/include/python${pyversion}
+	configure.env-append	PYTHONBIN=${prefix}/bin/python${pyversion}
+}
+
 variant tcl description {Enable Tcl language binding} {
 	depends_lib-append			path:bin/tclsh:tcl
 	configure.args-delete	--without-tcl
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20110615/b1e43230/attachment.html>


More information about the macports-changes mailing list