Readline version ${milestone}.${patchlevel} - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    readline  most recent diff


    version ${milestone}.${patchlevel}

      View the most recent changes for the readline port at: readline.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for readline.
      The raw portfile for readline ${milestone}.${patchlevel} is located here:
      http://readline.darwinports.com/dports/devel/readline/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/readline


      The readline Portfile 58352 2009-09-27 03:42:48Z ryandesign macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: readline
      set milestone 6.0
      set patchlevel 000
      Version: ${milestone}.${patchlevel}
      Revision: 2
      distname ${name}-${milestone}
      Category: devel
      Platform: darwin freebsd
      Maintainers: mcalhoun openmaintainer
      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: http://cnswww.cns.cwru.edu/~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
      }

      Patch Files:-append patch-shobj-conf.diff
      while {$i <= $lastpatch} {
      patchfiles-append ${patchname}-[format "%03d" $i]
      incr i
      }

      post-patch {
      reinplace "s|__MACPORTS_PATCHLEVEL__|${patchlevel}|" ${worksrcpath}/support/shobj-conf
      }

      Checksums: md5 b7f65a48add447693be6e86f04a63019 sha1 1e511b091514ef631c539552316787c75ace5262 rmd160 9f886f437dfa3387cb3a4ce3439cefecffc2c789

      configure.args --with-curses

      use_parallel_build yes

      depends_lib port:ncurses

      post-destroot {
      set docdir ${prefix}/share/doc/${name}-${version}
      xinstall -d ${destroot}${docdir}/html
      xinstall -m 0644 -W ${worksrcpath} CHANGELOG CHANGES COPYING NEWS README ${destroot}${docdir}
      eval xinstall -m 0644 [glob ${worksrcpath}/doc/*.html] ${destroot}${docdir}/html
      }

      # Install symlinks to avoid breaking ports linked against the old versions
      platform darwin {
      post-destroot {
      foreach f {history readline} {
      foreach v {0 1 2} {
      ln -sf lib${f}.${milestone}.dylib ${destroot}${prefix}/lib/lib${f}.5.${v}.dylib
      }
      }
      }
      }

      if {[variant_isset universal]} {

      pre-configure {
      # Eliminate warning.
      configure.args-delete --disable-dependency-tracking
      }

      if { ${os.arch}=="i386" } {
      if { ${os.major} >= 10 } {
      set merger_configure_args(ppc) --config-cache
      }
      set merger_configure_args(ppc64) --config-cache
      } else {
      set merger_configure_args(i386) --config-cache
      set merger_configure_args(x86_64) --config-cache
      }

      post-extract {
      # Answers to questions configure can't determine without running a program.
      copy ${filespath}/config.cache ${worksrcpath}
      }
      } else {
      configure.ldflags-append "-arch ${configure.build_arch}"
      }

      livecheck.type regex
      livecheck.url http://ftp.gnu.org/pub/gnu/${name}/?C=M&O=D
      livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
      livecheck.version ${milestone}

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/readline
      % sudo port install readline
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching readline
      ---> Verifying checksum for readline
      ---> Extracting readline
      ---> Configuring readline
      ---> Building readline with target all
      ---> Staging readline into destroot
      ---> Installing readline
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using readline with these commands:
      %  man readline
      % apropos readline
      % which readline
      % locate readline

     Where to find more information:

    Darwin Ports



    Lightbox this page.