[106262] trunk/dports/devel/gdb
sean at macports.org
sean at macports.org
Mon May 20 13:55:10 PDT 2013
Revision: 106262
https://trac.macports.org/changeset/106262
Author: sean at macports.org
Date: 2013-05-20 13:55:10 -0700 (Mon, 20 May 2013)
Log Message:
-----------
gdb: add python variants (#39050)
Modified Paths:
--------------
trunk/dports/devel/gdb/Portfile
Added Paths:
-----------
trunk/dports/devel/gdb/files/
trunk/dports/devel/gdb/files/patch-python-config.py.diff
Modified: trunk/dports/devel/gdb/Portfile
===================================================================
--- trunk/dports/devel/gdb/Portfile 2013-05-20 20:55:00 UTC (rev 106261)
+++ trunk/dports/devel/gdb/Portfile 2013-05-20 20:55:10 UTC (rev 106262)
@@ -61,6 +61,27 @@
}
}
+set pythons_suffixes {25 26 27 31 32 33}
+
+set pythons_ports {}
+foreach s ${pythons_suffixes} {
+ lappend pythons_ports python${s}
+}
+
+foreach s ${pythons_suffixes} {
+ set p python${s}
+ set v [string index ${s} 0].[string index ${s} 1]
+ set i [lsearch -exact ${pythons_ports} ${p}]
+ set c [lreplace ${pythons_ports} ${i} ${i}]
+ eval [subst {
+ variant ${p} description "Build GDB with Python ${v} Scripting" conflicts ${c} {
+ depends_lib-append port:${p}
+ configure.args-append --with-python=${prefix}/bin/python${v}
+ patchfiles-append patch-python-config.py.diff
+ }
+ }]
+}
+
livecheck.type regex
livecheck.url http://ftp.gnu.org/gnu/gdb/
livecheck.regex gdb-(\\d+(?:\\.\\d+)+)\\.tar
Added: trunk/dports/devel/gdb/files/patch-python-config.py.diff
===================================================================
--- trunk/dports/devel/gdb/files/patch-python-config.py.diff (rev 0)
+++ trunk/dports/devel/gdb/files/patch-python-config.py.diff 2013-05-20 20:55:10 UTC (rev 106262)
@@ -0,0 +1,11 @@
+--- gdb/python/python-config.py-orig 2013-05-20 15:34:28.000000000 -0500
++++ gdb/python/python-config.py 2013-05-20 15:35:05.000000000 -0500
+@@ -72,8 +72,8 @@
+ libs.insert(0, '-L' + getvar('LIBPL'))
+ elif os.name == 'nt':
+ libs.insert(0, '-L' + sysconfig.PREFIX + '/libs')
+- if getvar('LINKFORSHARED') is not None:
++ if not getvar('PYTHONFRAMEWORK'):
+ libs.extend(getvar('LINKFORSHARED').split())
+ print (to_unix_path(' '.join(libs)))
+
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130520/3558b37d/attachment.html>
More information about the macports-changes
mailing list