Coreutils version 7.6 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    coreutils  most recent diff


    version 7.6

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
      The coreutils Portfile 58659 2009-10-02 14:52:39Z nox macports.org $

      PortSystem 1.0

      Name: coreutils
      Version: 7.6
      Category: sysutils
      Platform: darwin
      Maintainers: nox openmaintainer
      Description: GNU File, Shell, and Text utilities

      Long Description: The GNU Core Utilities are the basic file, shell, and text manipulation utilities of the GNU operating system. These are the core utilities which are expected to exist on every operating system. Previously these utilities were offered as three individual sets of GNU utilities, fileutils, shellutils, and textutils. Those three have been combined into a single set of utilities called the coreutils.

      Homepage: http://www.gnu.org/software/${name}/
      Master Sites: gnu

      Checksums: md5 3d82f979229365f880da750642e67cf3 sha1 98880651bee000b1b31e1ee55ff8fabdad8eeecd rmd160 8d0741aabfc7bea9adc1e7d71ff36100c4afc3a2

      depends_lib port:gettext port:gmp port:libiconv

      configure.args --program-prefix=g

      use_parallel_build yes

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

      post-destroot {
      if {[file exists ${destroot}${prefix}/share/info/dir]} {
      delete ${destroot}${prefix}/share/info/dir
      }

      if {[file exists ${destroot}${prefix}/lib/charset.alias]} {
      delete ${destroot}${prefix}/lib/charset.alias
      }

      xinstall -d ${destroot}${docdir}
      xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README THANKS THANKS-to-translators TODO ${destroot}${docdir}
      }

      # Set the RUN_EXPENSIVE_TESTS environmental variable to 'yes' to run more
      # expensive tests. Set the RUN_VERY_EXPENSIVE_TESTS environmental variable
      # to 'yes' to run even more expensive tests.
      test.run yes
      test.target check

      Variant: with_default_names description {Install files without 'g' prefix, use with extreme caution} {
      post-destroot {
      foreach {d} {bin share/man/man1} {
      foreach {f} [glob -tails -directory ${destroot}${prefix}/${d} g*] {
      ln -sf ${f} ${destroot}${prefix}/${d}/[string range ${f} 1 end]
      }
      }
      }
      }

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

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.