Ticket #57484: tclreadline-2.3.1.diff

File tclreadline-2.3.1.diff, 2.7 KB (added by DanielO (Daniel O'Connor), 6 years ago)
  • ports/devel/tclreadline/Portfile

    diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/ports/devel/tclreadline/Portfile /Users/oconnd1/ports/devel/tclreadline/Portfile
    old new  
    11# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
    22
    33PortSystem                  1.0
     4PortGroup                   github 1.0
    45
    56name                        tclreadline
    6 version                     2.1.0
    7 revision                    3
     7version                     2.3.1
     8revision                    0
    89
    910categories                  devel
    1011platforms                   darwin
     
    2425                            In this case the ::tclreadline::readline read \
    2526                            command has to be called explicitly.
    2627
    27 homepage                    http://tclreadline.sourceforge.net/
    28 master_sites                sourceforge
     28github.setup                flightaware tclreadline ${version} v
    2929
    30 checksums                   sha1    3b44f92ce1921ebccebab9b44d7cda6992cf8923 \
    31                             rmd160  9967f7d7aa18fcd822f5701306f3a75a6001fdc5
     30homepage                    https://github.com/flightaware/tclreadline
     31
     32checksums                   sha1    c0a8f1351faae921a69fa5934a469761058c5e5c \
     33                            rmd160  7973aa63fa521c8437b43712ce1798c9f66b050b \
     34                            sha256  d702e3b8acfebd588b93348e220fc98f4181346c7f9a56ea7aeda334f107bbc5 \
     35                            size    153243
    3236
    3337depends_lib                 port:readline \
    3438                            port:tcl
    3539
    36 post-extract {
    37     move ${worksrcpath}/configure.in ${worksrcpath}/configure.ac
    38 }
    39 
    4040use_autoreconf              yes
    4141
    42 configure.args-append       --with-tcl=${prefix}/lib/
     42configure.args-append       --with-tcl=${prefix}/lib/ \
     43                            --with-readline-includes=${prefix}/include/readline
    4344
    44 # Patch readline to use malloc/free instead of
    45 # Tcl_Alloc/Tcl_Free. Required for threaded-enabled Tcl.
    46 # Use rl_completion_func_t instead of CPPFunction for compatibility with readline 6.3+.
    47 patchfiles                  patch-tclreadline.c.diff
    48 
    49 patchfiles-append           patch-configure.ac.diff
    50 
    51 livecheck.type              regex
    52 livecheck.url               http://sourceforge.net/projects/${name}/files/
    53 livecheck.regex             /${name}-(\[0-9.\]+)${extract.suffix}