Fortune version 6.2.0-RELEASE - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    fortune  most recent diff


    version 6.2.0-RELEASE

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


      The fortune Portfile 54898 2009-08-04 07:59:52Z afb macports.org $

      PortSystem 1.0

      Name: fortune
      Version: 6.2.0-RELEASE
      Category: games
      Maintainers: nomaintainer
      Description: Infamous electronic fortune-cookie generator
      Long Description: ${description}
      Platform: darwin freebsd
      Homepage: http://www.freebsd.org/
      use_bzip2 yes

      Master Sites: macports

      Checksums: md5 6185fe31e512e8b23ac5cc58ede27919
      extract.only ${name}-${version}.tar.bz2
      worksrcdir ${name}
      dist_subdir ${name}

      Patch Files: patch-fortune-Makefile patch-strfile-Makefile patch-unstr-Makefile patch-datfiles-Makefile patch-strfile.h

      configure {
      reinplace "s|/usr|${prefix}|" ${worksrcpath}/fortune/pathnames.h
      reinplace "s|/usr/share|${prefix}/share|" ${worksrcpath}/fortune/fortune.6
      reinplace "s|/usr/games/fortune|${prefix}/bin/fortune|" ${worksrcpath}/fortune/fortune.6
      reinplace "s|XXPREFIX|${prefix}|" ${worksrcpath}/fortune/Makefile
      }

      build.type bsd

      set datfiles "fortunes fortunes.dat fortunes-o fortunes-o.dat fortunes2-o fortunes2-o.dat limerick limerick.dat murphy murphy.dat murphy-o murphy-o.dat startrek startrek.dat zippy zippy.dat"

      destroot {
      xinstall -m 755 -d ${destroot}${prefix}/share/games/fortune
      xinstall -m 755 ${worksrcpath}/fortune/fortune ${worksrcpath}/strfile/strfile ${worksrcpath}/unstr/unstr ${destroot}${prefix}/bin
      xinstall -m 644 ${worksrcpath}/fortune/fortune.6.gz ${destroot}${prefix}/share/man/man6
      xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz ${destroot}${prefix}/share/man/man8
      xinstall -m 644 ${worksrcpath}/strfile/strfile.8.gz ${destroot}${prefix}/share/man/man8/unstr.8.gz

      foreach datfile $datfiles {
      file copy ${worksrcpath}/datfiles/${datfile} ${destroot}${prefix}/share/games/fortune
      }
      }

      platform darwin {
      patchfiles-append patch-fortune.c patch-strfile.c patch-unstr.c
      }

      Variant: universal {
      build.env-append CFLAGS="${configure.universal_cppflags} ${configure.universal_cflags} ${configure.universal_ldflags}"
      }

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.