# -*- 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 PortSystem 1.0 PortGroup muniversal 1.0 PortGroup clang_dependency 1.0 name readline set milestone 8.2 set patchlevel 001 version ${milestone}.${patchlevel} distname ${name}-${milestone} categories devel platforms darwin freebsd maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer license GPL-3+ description Library that provides command line editing long_description \ The GNU Readline library provides a set of functions for use by \ applications that allow users to edit command lines as they are typed \ in. Both Emacs and vi editing modes are available. The Readline library \ includes additional functions to maintain a list of previously-entered \ command lines, to recall and perhaps reedit those lines, and perform \ csh-like history expansion on previous commands. homepage https://tiswww.case.edu/php/chet/readline/rltop.html master_sites gnu patch_sites gnu:${name}/${distname}-patches/ set i 1 set patchname ${name}[join [split $milestone .] ""] if {![regexp {0*([1-9]+)} $patchlevel -> lastpatch]} { set lastpatch 0 } while {$i <= $lastpatch} { patchfiles-append ${patchname}-[format "%03d" $i] incr i } checksums ${patchname}-001 \ rmd160 1e3ed3a965558298487eec2b3bf582723f608b7c \ sha256 bbf97f1ec40a929edab5aa81998c1e2ef435436c597754916e6a5868f273aff7 \ size 1198 \ ${distname}${extract.suffix} \ rmd160 1865998241027e94ba2d55bd628eb67b245d20d5 \ sha256 3feb7171f16a84ee82ca18a36d7b9be109a52c04f492a053331d7d1095007c35 \ size 3043952 if {${os.platform} eq "darwin" && ${os.major} < 11 && ${cxx_stdlib} eq "libc++"} { # This port is in the dependency chain for clang 3.7 and later clang_dependency.extra_versions 3.7 } configure.args --with-curses configure.universal_args-delete --disable-dependency-tracking configure.checks.implicit_function_declaration.whitelist-append strchr depends_lib port:ncurses post-destroot { set docdir ${prefix}/share/doc/${name} xinstall -d ${destroot}${docdir}/html xinstall -m 0644 -W ${worksrcpath} CHANGELOG CHANGES COPYING NEWS README \ ${destroot}${docdir} xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.html] \ ${destroot}${docdir}/html } livecheck.regex ${name}-(\[\\d.\]+)${extract.suffix} livecheck.version ${milestone}