Ignore:
Timestamp:
Feb 28, 2015, 4:39:11 PM (4 years ago)
Author:
jmr@…
Message:

change warnings to errors in remaining old pythonXY portgroups

Location:
trunk/dports/_resources/port1.0/group
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/_resources/port1.0/group/python26-1.0.tcl

    r125960 r133393  
    3333#
    3434
    35 # This PortGroup is DEPRECATED. Please do not use for new development.
    36 # Please switch existing ports using this to 'PortGroup python 1.0' (which
    37 # supports multiple python versions) at your earliest convenience.
    38 
    3935pre-fetch {
    40     ui_warn "The $name port is using the deprecated 'python26'\
    41 PortGroup, which will be disabled in the near future and eventually removed.\
    42 The maintainer should switch to the 'python' PortGroup."
     36    ui_error "The $name port is using the obsolete 'python26'\
     37PortGroup. The maintainer should switch to the 'python' PortGroup."
     38    error "obsolete PortGroup"
    4339}
    4440
     
    5551dist_subdir             python
    5652
    57 depends_lib             port:python26
    58 
    5953# we want the default universal variant added despite not using configure
    6054use_configure   no
     
    6559options python.add_archflags
    6660default python.add_archflags yes
    67 pre-build {
    68     if {${python.add_archflags}} {
    69         if {[variant_exists universal] && [variant_isset universal]} {
    70             build.env-append CFLAGS="${configure.universal_cflags}" \
    71                              OBJCFLAGS="${configure.universal_cflags}" \
    72                              CXXFLAGS="${configure.universal_cxxflags}" \
    73                              LDFLAGS="${configure.universal_ldflags}"
    74         } else {
    75             build.env-append CFLAGS="${configure.cc_archflags}" \
    76                              OBJCFLAGS="${configure.objc_archflags}" \
    77                              CXXFLAGS="${configure.cxx_archflags}" \
    78                              FFLAGS="${configure.f77_archflags}" \
    79                              F90FLAGS="${configure.f90_archflags}" \
    80                              FCFLAGS="${configure.fc_archflags}" \
    81                              LDFLAGS="${configure.ld_archflags}"
    82         }
    83     }
    84 }
    8561
    8662destroot.cmd    ${python.bin} setup.py --no-user-cfg
    8763destroot.destdir        --prefix=${python.prefix} --root=${destroot}
    8864
    89 pre-destroot    {
    90         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    91 }
    92 
    9365options         python.link_binaries python.link_binaries_suffix
    9466default python.link_binaries yes
    9567default python.link_binaries_suffix {-${python.branch}}
    96 post-destroot {
    97     if {${python.link_binaries}} {
    98         foreach bin [glob -nocomplain -tails -directory "${destroot}${python.prefix}/bin" *] {
    99             if {[catch {file type "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"}]} {
    100                 ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"
    101             }
    102         }
    103     }
    104 }
  • trunk/dports/_resources/port1.0/group/python27-1.0.tcl

    r126668 r133393  
    3333#
    3434
    35 # This PortGroup is DEPRECATED. Please do not use for new development.
    36 # Please switch existing ports using this to 'PortGroup python 1.0' (which
    37 # supports multiple python versions) at your earliest convenience.
    38 
    3935pre-fetch {
    40     ui_warn "The $name port is using the deprecated 'python27'\
    41 PortGroup, which will be disabled in the near future and eventually removed.\
    42 The maintainer should switch to the 'python' PortGroup."
     36    ui_error "The $name port is using the obsolete 'python27'\
     37PortGroup. The maintainer should switch to the 'python' PortGroup."
     38    error "obsolete PortGroup"
    4339}
    4440
     
    5551dist_subdir             python
    5652
    57 depends_lib             port:python27
    58 
    5953# we want the default universal variant added despite not using configure
    6054use_configure   no
     
    6559options python.add_archflags
    6660default python.add_archflags yes
    67 pre-build {
    68     if {${python.add_archflags}} {
    69         if {[variant_exists universal] && [variant_isset universal]} {
    70             build.env-append CFLAGS="${configure.universal_cflags}" \
    71                              OBJCFLAGS="${configure.universal_cflags}" \
    72                              CXXFLAGS="${configure.universal_cxxflags}" \
    73                              LDFLAGS="${configure.universal_ldflags}"
    74         } else {
    75             build.env-append CFLAGS="${configure.cc_archflags}" \
    76                              OBJCFLAGS="${configure.objc_archflags}" \
    77                              CXXFLAGS="${configure.cxx_archflags}" \
    78                              FFLAGS="${configure.f77_archflags}" \
    79                              F90FLAGS="${configure.f90_archflags}" \
    80                              FCFLAGS="${configure.fc_archflags}" \
    81                              LDFLAGS="${configure.ld_archflags}"
    82         }
    83     }
    84 }
    8561
    8662destroot.cmd    ${python.bin} setup.py --no-user-cfg
    8763destroot.destdir        --prefix=${python.prefix} --root=${destroot}
    8864
    89 pre-destroot    {
    90         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    91 }
    92 
    9365options         python.link_binaries python.link_binaries_suffix
    9466default python.link_binaries yes
    9567default python.link_binaries_suffix {-${python.branch}}
    96 post-destroot {
    97     if {${python.link_binaries}} {
    98         foreach bin [glob -nocomplain -tails -directory "${destroot}${python.prefix}/bin" *] {
    99             if {[catch {file type "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"}]} {
    100                 ln -s "${python.prefix}/bin/${bin}" "${destroot}${prefix}/bin/${bin}${python.link_binaries_suffix}"
    101             }
    102         }
    103     }
    104 }
Note: See TracChangeset for help on using the changeset viewer.