Ignore:
Timestamp:
May 1, 2013, 10:21:55 PM (6 years ago)
Author:
jmr@…
Message:

change warnings in deprecated python portgroups to errors

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

Legend:

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

    r102184 r105683  
    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 
    39 pre-archivefetch {
    40     ui_warn "The $name port is using the deprecated 'python24'\
    41 PortGroup, which will be disabled in the near future and eventually removed.\
    42 The maintainer should switch to the 'python' PortGroup."
     35pre-fetch {
     36    ui_error "The $name port is using the obsolete 'python24'\
     37PortGroup. The maintainer should switch to the 'python' PortGroup."
     38    error "obsolete PortGroup"
    4339}
    4440
     
    5955dist_subdir             python
    6056
    61 depends_lib             port:python24
    62 
    6357# we want the default universal variant added despite not using configure
    6458use_configure   no
     
    6963options python.add_archflags
    7064default python.add_archflags yes
    71 pre-build {
    72     if {${python.add_archflags}} {
    73         if {[variant_exists universal] && [variant_isset universal]} {
    74             build.env-append CFLAGS="${configure.universal_cflags}" \
    75                              OBJCFLAGS="${configure.universal_cflags}" \
    76                              CXXFLAGS="${configure.universal_cxxflags}" \
    77                              LDFLAGS="${configure.universal_ldflags}"
    78         } else {
    79             build.env-append CFLAGS="${configure.cc_archflags}" \
    80                              OBJCFLAGS="${configure.objc_archflags}" \
    81                              CXXFLAGS="${configure.cxx_archflags}" \
    82                              FFLAGS="${configure.f77_archflags}" \
    83                              F90FLAGS="${configure.f90_archflags}" \
    84                              FCFLAGS="${configure.fc_archflags}" \
    85                              LDFLAGS="${configure.ld_archflags}"
    86         }
    87     }
    88 }
    8965
    9066destroot.cmd    ${python.bin} setup.py
    9167destroot.destdir        --prefix=${prefix} --root=${destroot}
    92 
    93 pre-destroot    {
    94         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    95 }
  • trunk/dports/_resources/port1.0/group/python31-1.0.tcl

    r102237 r105683  
    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 
    39 pre-archivefetch {
    40     ui_warn "The $name port is using the deprecated 'python31'\
    41 PortGroup, which will be disabled in the near future and eventually removed.\
    42 The maintainer should switch to the 'python' PortGroup."
     35pre-fetch {
     36    ui_error "The $name port is using the obsolete 'python31'\
     37PortGroup. The maintainer should switch to the 'python' PortGroup."
     38    error "obsolete PortGroup"
    4339}
    4440
     
    5551dist_subdir             python
    5652
    57 depends_lib             port:python31
    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/python32-1.0.tcl

    r102184 r105683  
    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 
    39 pre-archivefetch {
    40     ui_warn "The $name port is using the deprecated 'python32'\
    41 PortGroup, which will be disabled in the near future and eventually removed.\
    42 The maintainer should switch to the 'python' PortGroup."
     35pre-fetch {
     36    ui_error "The $name port is using the obsolete 'python32'\
     37PortGroup. The maintainer should switch to the 'python' PortGroup."
     38    error "obsolete PortGroup"
    4339}
    4440
     
    5551dist_subdir             python
    5652
    57 depends_lib             port:python32
    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.