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

    version 4.2.1

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


      # -*- 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 gsed Portfile 53040 2009-06-28 18:26:07Z nox macports.org $

      PortSystem 1.0
      PortGroup muniversal 1.0

      Name: gsed
      set my_name sed
      Version: 4.2.1
      Category: textproc
      Platform: darwin
      Maintainers: nox openmaintainer
      Description: GNU version of the stream editor, sed

      Long Description: Sed (streams editor) isn't really a true text editor or text processor. Instead, it is used to filter text, i.e., it takes text input and performs some operation (or set of operations) on it and outputs the modified text. Sed is typically used for extracting part of a file using pattern matching or substituting multiple occurrences of a string within a file.

      Homepage: http://www.gnu.org/software/${my_name}/
      Master Sites: gnu:${my_name}
      distname ${my_name}-${version}

      Checksums: md5 f0fd4d7da574d4707e442285fd2d3b86 sha1 502f5fa9aff891f0383baaeb1958b66dbc4b05c8 rmd160 c7ee3b5d4e4faab966c7af092d783889f10afcaa

      depends_lib port:gettext port:libiconv

      configure.args --infodir=${prefix}/share/info --mandir=${prefix}/share/man --program-prefix=g

      use_parallel_build yes

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

      post-destroot {
      foreach i [glob -tails -directory ${destroot}${prefix}/share/info *.info*] {
      move ${destroot}${prefix}/share/info/${i} ${destroot}${prefix}/share/info/g${i}
      }

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

      test.run yes
      test.target check

      platform darwin 8 {
      # Bad things happen running 64-bit gsed on Tiger. Fine on Leopard.
      # See https://trac.macports.org/ticket/18297.
      set universal_archs_supported {i386 ppc}
      }

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

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.