Changeset 125961


Ignore:
Timestamp:
Sep 30, 2014, 11:47:49 AM (5 years ago)
Author:
jmr@…
Message:

change warning to error in deprecated python25 portgroup

File:
1 edited

Legend:

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

    r108190 r125961  
    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 'python25'\
    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 'python25'\
     37PortGroup. The maintainer should switch to the 'python' PortGroup."
     38    error "obsolete PortGroup"
    4339}
    4440
     
    5450dist_subdir             python
    5551
    56 depends_lib             port:python25
    57 
    5852# we want the default universal variant added despite not using configure
    5953use_configure   no
     
    6458options python.add_archflags
    6559default python.add_archflags yes
    66 pre-build {
    67     if {${python.add_archflags}} {
    68         if {[variant_exists universal] && [variant_isset universal]} {
    69             build.env-append CFLAGS="${configure.universal_cflags}" \
    70                              OBJCFLAGS="${configure.universal_cflags}" \
    71                              CXXFLAGS="${configure.universal_cxxflags}" \
    72                              LDFLAGS="${configure.universal_ldflags}"
    73         } else {
    74             build.env-append CFLAGS="${configure.cc_archflags}" \
    75                              OBJCFLAGS="${configure.objc_archflags}" \
    76                              CXXFLAGS="${configure.cxx_archflags}" \
    77                              FFLAGS="${configure.f77_archflags}" \
    78                              F90FLAGS="${configure.f90_archflags}" \
    79                              FCFLAGS="${configure.fc_archflags}" \
    80                              LDFLAGS="${configure.ld_archflags}"
    81         }
    82     }
    83 }
    8460
    8561destroot.cmd    ${python.bin} setup.py --no-user-cfg
    8662destroot.destdir        --prefix=${prefix} --root=${destroot}
    8763
    88 pre-destroot    {
    89         xinstall -d -m 755 ${destroot}${prefix}/share/doc/${name}/examples
    90 }
    91 
    9264options         python.move_binaries python.move_binaries_suffix
    9365default python.move_binaries yes
    9466default python.move_binaries_suffix {-${python.branch}}
    95 post-destroot {
    96     if {${python.move_binaries}} {
    97         foreach bin [glob -nocomplain -tails -directory "${destroot}${prefix}/bin" *] {
    98             move ${destroot}${prefix}/bin/${bin} \
    99                 ${destroot}${prefix}/bin/${bin}${python.move_binaries_suffix}
    100         }
    101     }
    102 }
Note: See TracChangeset for help on using the changeset viewer.