Cgit version 0.8.2.1 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    version 0.8.2.1

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


      # -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
      The cgit Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: cgit
      Version: 0.8.2.1
      set git-version 1.6.3
      Category: www devel
      Maintainers: sfiera openmaintainer
      Description: A fast web interface for the git source code management system
      Homepage: http://hjemli.net/git/cgit/
      Platform: darwin
      dist_subdir git-core

      Long Description: cgit is an attempt to create a fast web interface for the git scm, using a builtin cache to decrease server io-pressure. It can run on any CGI-capable web server.

      use_bzip2 yes
      set cgit-dist ${distfiles}
      set git-dist [suffix git-${git-version}]
      distfiles ${cgit-dist}:cgit ${git-dist}:git
      Master Sites: ${homepage}snapshot:cgit http://www.kernel.org/pub/software/scm/git:git
      Checksums: ${cgit-dist} md5 33e56f0621e53327f89233c7ccb7d8be sha1 1c40de81530a3c0513bc963cc81f14685448f6f9 rmd160 2e83250130aa1d4f087c853567c794b58a24368c ${git-dist} md5 a5e6165506cddd94954277cf81f44b14 sha1 1dab1068d1886828bdb512e9b809bc779de35609 rmd160 b496878b113ae8d13d2eaa1b65e4dd2d8e72834d

      depends_lib port:git-core port:openssl port:zlib port:libiconv

      post-extract {
      file delete ${worksrcpath}/git
      file rename ${worksrcpath}/../git-${git-version} ${worksrcpath}/git
      }

      post-patch {
      file copy ${filespath}/cgit.conf ${worksrcpath}/cgit.conf
      reinplace "s| PREFIX |${prefix}|g" ${worksrcpath}/cgit.conf
      reinplace "s| GIT_VER |${git-version}|g" ${worksrcpath}/cgit.conf
      }

      post-destroot {
      xinstall -m 444 ${worksrcpath}/cgitrc.5.txt ${destroot}${prefix}/etc/cgitrc.sample
      xinstall -m 700 -o www -g www -d ${destroot}${prefix}/var/cache/cgit
      destroot.keepdirs ${destroot}${prefix}/var/cache/cgit
      }

      use_configure no
      configure.ldflags-append -liconv
      build.env CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
      destroot.env CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"

      livecheck.type regex
      livecheck.url ${homepage}
      livecheck.regex {stable.>CGIT ([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/cgit
      % sudo port install cgit
      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 cgit
      ---> Verifying checksum for cgit
      ---> Extracting cgit
      ---> Configuring cgit
      ---> Building cgit with target all
      ---> Staging cgit into destroot
      ---> Installing cgit
    - 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 cgit with these commands:
      %  man cgit
      % apropos cgit
      % which cgit
      % locate cgit

     Where to find more information:

    Darwin Ports



    Lightbox this page.