Sword version 1.5.11 - How to Download and Install on Mac OS X
Sunday the 21st of March, 2010

    version 1.5.11

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
      The sword Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: sword
      Version: 1.5.11
      Revision: 2
      Category: textproc
      Maintainers: nomaintainer
      Description: cross-platform API/library for Bible software
      Long Description: The SWORD Project is an open source, cross-platform (Linux, Windows, Solaris, etc.) API/library for Bible software with a constantly growing list of front-ends (GUI, textmode, web-based, etc.) and a library of over 200 text modules.
      Homepage: http://www.crosswire.org/${name}/index.jsp
      Master Sites: http://www.crosswire.org/ftpmirror/pub/${name}/source/v1.5/
      Checksums: md5 84a13fd3cf767902de91368424f30baa sha1 d0ff7f039e27c6be5727d548abee929f648ced79 rmd160 3c3278b477542b40413d4936ad0e066c6e50b475
      Platform: darwin

      depends_build port:autoconf port:automake port:libtool port:pkgconfig
      depends_lib port:curl port:icu port:openssl port:zlib

      Patch Files: patch-include_Makefile.am.diff

      pre-configure {
      system "cd ${worksrcpath} && env LTIZE=${prefix}/bin/glibtoolize ./autogen.sh"
      }
      configure.args --with-zlib --with-conf --with-curl --with-icu --without-clucene

      use_parallel_build yes

      destroot.keepdirs ${destroot}${prefix}/share/${name}/mods.d ${destroot}${prefix}/share/${name}/modules
      post-destroot {
      xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/mods.d
      xinstall -d -m 0755 ${destroot}${prefix}/share/${name}/modules

      xinstall -d -m 0755 ${destroot}${prefix}/share/doc/${name}
      xinstall -m 0644 -W ${worksrcpath} README INSTALL LICENSE ${destroot}${prefix}/share/doc/${name}
      copy ${worksrcpath}/samples ${destroot}${prefix}/share/doc/${name}/
      delete ${destroot}${prefix}/share/${name}/mods.d/globals.conf
      move ${destroot}${prefix}/etc/sword.conf ${destroot}${prefix}/etc/sword.conf.sample
      }

      post-activate {
      if {![file exists ${prefix}/share/${name}/mods.d/globals.conf]} {
      copy ${prefix}/share/doc/${name}/samples/mods.d/globals.conf ${prefix}/share/${name}/mods.d/
      }
      if {![file exists ${prefix}/etc/sword.conf]} {
      copy ${prefix}/etc/sword.conf.sample ${prefix}/etc/sword.conf
      }
      }

      livecheck.type regex
      livecheck.url http://www.crosswire.org/sword/software/swordapi.jsp
      livecheck.regex {SWORD Engine / API v([0-9\.]+)}

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.