Ignore:
Timestamp:
May 20, 2013, 8:55:10 PM (5 years ago)
Author:
sean@…
Message:

gdb: add python variants (#39050)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/devel/gdb/Portfile

    r106261 r106262  
    6262}
    6363
     64set pythons_suffixes {25 26 27 31 32 33}
     65
     66set pythons_ports {}
     67foreach s ${pythons_suffixes} {
     68    lappend pythons_ports python${s}
     69}
     70
     71foreach s ${pythons_suffixes} {
     72    set p python${s}
     73    set v [string index ${s} 0].[string index ${s} 1]
     74    set i [lsearch -exact ${pythons_ports} ${p}]
     75    set c [lreplace ${pythons_ports} ${i} ${i}]
     76    eval [subst {
     77        variant ${p} description "Build GDB with Python ${v} Scripting" conflicts ${c} {
     78            depends_lib-append      port:${p}
     79            configure.args-append   --with-python=${prefix}/bin/python${v}
     80            patchfiles-append       patch-python-config.py.diff
     81        }
     82    }]
     83}
     84
    6485livecheck.type  regex
    6586livecheck.url   http://ftp.gnu.org/gnu/gdb/
Note: See TracChangeset for help on using the changeset viewer.