Git-core version 1.6.5.1 - How to Download and Install on Mac OS X
Saturday the 7th of November, 2009

    git-core  most recent diff


    version 1.6.5.1

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


      # -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
      The git-core Portfile 59644 2009-10-18 14:38:50Z jmr macports.org $

      PortSystem 1.0

      Name: git-core
      Version: 1.6.5.1
      Description: A fast version control system
      Long Description: Git is a fast, scalable, distributed open source version control system focusing on speed and efficiency.
      Maintainers: larsen.st:bryan gmail.com:maccheck openmaintainer
      Category: devel
      Platform: darwin
      Homepage: http://git.or.cz/
      use_bzip2 yes
      Master Sites: http://www.kernel.org/pub/software/scm/git/
      distname git-${version}
      distfiles git-${version}${extract.suffix} git-manpages-${version}${extract.suffix}

      Checksums: git-${version}${extract.suffix} sha1 c955aa579be9bf5991adf465e6e4a2d6ba173fc1 git-manpages-${version}${extract.suffix} sha1 e0dc828f2ec4a4ab47ee7f56ba305843e4f7fa8b

      depends_run port:rsync path:bin/perl:perl5 port:p5-error
      depends_lib port:curl port:zlib port:openssl port:expat port:libiconv

      Patch Files: patch-Makefile.diff

      extract.only git-${version}${extract.suffix} git-manpages-${version}${extract.suffix}

      use_configure no

      build.args CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib" CC=${configure.cc} prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} ICONVDIR=${prefix} PERL_PATH="${prefix}/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1

      test.run yes
      test.cmd make
      test.target test
      test.dir ${worksrcpath}
      test.args prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} ICONVDIR=${prefix} PERL_PATH="${prefix}/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1

      destroot.destdir DESTDIR=${destroot} prefix=${prefix}
      destroot.target install
      destroot.args CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib" prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} ICONVDIR=${prefix} PERL_PATH="${prefix}/bin/perl" NO_FINK=1 NO_DARWIN_PORTS=1 NO_R_TO_GCC_LINKER=1

      post-destroot {
      foreach f {1 5 7} {
      xinstall -d ${destroot}${prefix}/share/man/man${f}
      foreach m [glob -directory ${workpath} man${f}/*.${f}] {
      xinstall ${m} ${destroot}${prefix}/share/man/man${f}
      }
      }
      if {![variant_isset svn]} {
      system "rm ${destroot}${prefix}/libexec/git-core/git-svn*"
      }
      set docdestroot ${destroot}${prefix}/share/doc/${name}
      xinstall -d ${docdestroot}
      if {[variant_isset doc]} {
      system "cd ${docdestroot} && ${extract.cmd} ${extract.pre_args} ${distpath}/git-htmldocs-${version}${extract.suffix} ${extract.post_args}"
      }

      file copy ${worksrcpath}/contrib ${docdestroot}

      foreach badfile [exec find ${destroot} -name perllocal.pod] {
      ui_info "Removing ${badfile}"
      file delete ${badfile}
      }
      }

      Variant: doc description {Install HTML and plaintext documentation} {
      distfiles-append git-htmldocs-${version}${extract.suffix}
      checksums-append git-htmldocs-${version}${extract.suffix} sha1 34ff79cb18f48aa062996e82d3fa2e3547b096c4
      }

      Variant: gitweb description {Install gitweb.cgi} {
      build.target-append gitweb/gitweb.cgi

      post-destroot {
      xinstall -d ${destroot}${prefix}/share/${name}/gitweb
      xinstall -m 444 -W ${worksrcpath}/gitweb gitweb.cgi gitweb.css git-favicon.png git-logo.png ${destroot}${prefix}/share/${name}/gitweb
      xinstall -d ${destroot}${prefix}/share/doc/${name}/gitweb
      xinstall -m 444 -W ${worksrcpath}/gitweb README INSTALL ${destroot}${prefix}/share/doc/${name}/gitweb
      }
      }

      Variant: svn description {Bi-directional subversion repository support} {
      depends_run-append port:subversion port:p5-libwww-perl port:p5-svn-simple port:p5-term-readkey
      }

      Variant: bash_completion {
      depends_run-append port:bash-completion

      post-destroot {
      xinstall -d ${destroot}${prefix}/etc/bash_completion.d
      xinstall -m 644 ${worksrcpath}/contrib/completion/git-completion.bash ${destroot}${prefix}/etc/bash_completion.d/git
      }
      }

      default_variants +doc

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

     Where to find more information:

    Darwin Ports



    Lightbox this page.