Ignore:
Timestamp:
Oct 7, 2009, 10:43:18 PM (11 years ago)
Author:
ryandesign@…
Message:

minivmac, minivmac-devel: handle my_variation_dirs as a list not a string

Location:
trunk/dports/emulators
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/emulators/minivmac-devel/Portfile

    r58968 r58969  
    231231post-configure {
    232232    file mkdir ${build.dir}
    233     set my_variation_dirs ""
     233    set my_variation_dirs {}
    234234    set my_output_disk_mount [my_attach_disk_image ${worksrcpath}/output.img]
    235235    foreach my_arch ${my_archs} {
     
    240240            if {[file isdirectory ${my_src_dir}]} {
    241241                set my_variation_dir ${my_arch}/${my_machine}
    242                 set my_variation_dirs "${my_variation_dirs} [strsed ${my_variation_dir} {g/ /\\\\ /}]"
     242                lappend my_variation_dirs [strsed ${my_variation_dir} {g/ /\\\\ /}]
    243243               
    244244                # Get the configured source code.
     
    258258    # Set up the global Makefile.
    259259    xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
    260     reinplace "s|@SUBDIRS@|${my_variation_dirs}|" ${build.dir}/Makefile
     260    reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
    261261   
    262262    # If no variation directoriess were produced by configuration, either the flags we
  • trunk/dports/emulators/minivmac/Portfile

    r58968 r58969  
    206206post-configure {
    207207    file mkdir ${build.dir}
    208     set my_variation_dirs ""
     208    set my_variation_dirs {}
    209209    set my_src_disk_mount [my_attach_disk_image ${worksrcpath}/${my_src}/${my_src}.img]
    210210    foreach my_arch ${my_archs} {
     
    215215            if {[file isdirectory ${my_src_dir}]} {
    216216                set my_variation_dir ${my_arch}/${my_machine}
    217                 set my_variation_dirs "${my_variation_dirs} [strsed ${my_variation_dir} {g/ /\\\\ /}]"
     217                lappend my_variation_dirs [strsed ${my_variation_dir} {g/ /\\\\ /}]
    218218               
    219219                # Get the configured source code.
     
    233233    # Set up the global Makefile.
    234234    xinstall ${filespath}/Makefile.in ${build.dir}/Makefile
    235     reinplace "s|@SUBDIRS@|${my_variation_dirs}|" ${build.dir}/Makefile
     235    reinplace "s|@SUBDIRS@|[join ${my_variation_dirs}]|" ${build.dir}/Makefile
    236236   
    237237    # If no variation directoriess were produced by configuration, either the flags we
Note: See TracChangeset for help on using the changeset viewer.