Download and Install nano version 2.0.7 on Mac OS X
Thursday the 24th of July, 2008

    nano  most recent diff


      View the most recent changes for the nano port at: nano.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for nano.
      The raw portfile for nano 2.0.7 is located here:
      http://nano.darwinports.com/dports/editors/nano/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/nano
      Google
      Web Darwinports.com



      # $Id: Portfile 33497 2008-01-28 03:59:23Z nox macports.org $

      PortSystem 1.0

      Name: nano
      Version: 2.0.7
      Category: editors
      Platform: darwin freebsd
      Maintainers: nox
      Description: Nano's ANOther editor - enhanced free Pico Clone

      Long Description: GNU nano is a small and friendly text editor. Besides basic text editing, nano offers many extra features like an interactive search and replace, goto line number, auto-indentation, feature toggles, internationalization support, and filename tab completion.

      Homepage: http://www.nano-editor.org/
      master_sites ${homepage}dist/v[strsed ${version} {/\.[0-9]*$//}]/ gnu

      checksums md5 16187fed2bdefec6275ece6401ce4cd2 sha1 6616c6496e6f21e61df6bb991c0be84eda5c6a0c rmd160 96ff5a88288451ed24f679d88d59a752616ce94c

      depends_lib port:ncursesw port:gettext port:libiconv

      configure.args --enable-nanorc --disable-wrapping-as-root --disable-mouse --disable-wrapping --disable-speller

      destroot.target install-strip

      set docdir ${prefix}/share/doc/${name}-${version}

      post-destroot {
      xinstall -m 0755 -d ${destroot}${docdir}/html
      xinstall -m 0644 -W ${worksrcpath} AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README THANKS TODO doc/nanorc.sample ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath}/doc faq.html texinfo/nano.html ${destroot}${docdir}/html
      }

      post-install {
      ui_msg "A sample configuration file is available at ${docdir}/nanorc.sample ."
      }

      Variant: wrap description {Enable wrapping (lines will be splitted to fit into the terminal width)} {
      configure.args-delete --disable-wrapping
      }

      Variant: spell description {Add spell-checking support (needs a spellchecker (e.g. aspell, ispell...)} {
      configure.args-delete --disable-speller
      }

      Variant: mouse description {Add mouse support} {
      configure.args-delete --disable-mouse

      post-install {
      ui_msg "Mouse support is enabled. ${name} need to be launched inside an x11 console to use it."
      }
      }

      Variant: multibuffer description {Add multibuffer support (allow multiple files to be opened in a single nano instance)} {
      configure.args-append --enable-multibuffer
      }

      Variant: color description {Enable color syntax highlighting} {
      configure.args-append --enable-color

      post-install {
      ui_msg "Color syntax is enabled."
      ui_msg "You should take a look at the syntax definitions in ${prefix}/share/${name} ."
      }
      }

    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/nano
      % sudo port install nano
      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 nano
      ---> Verifying checksum for nano
      ---> Extracting nano
      ---> Configuring nano
      ---> Building nano with target all
      ---> Staging nano into destroot
      ---> Installing nano
    - 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 nano with these commands:
      %  man nano
      % apropos nano
      % which nano
      % locate nano

     Where to find more information:

    Darwin Ports



    image test