# -*- 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 # $Id$ PortSystem 1.0 name git-core version 1.6.6.1 revision 0 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 categories devel platforms darwin homepage http://git-scm.com 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} \ md5 9d254bfdae56c6fa124d8a1312a1b034 \ sha1 6941f1b675ea2047286437c834e6272175102c19 \ rmd160 50c38a5790367ed66eacd1741b651d7fddaa1a2d \ git-manpages-${version}${extract.suffix} \ md5 18cbc20056058ef4d336896f628fc3b8 \ sha1 7447d89130e6506a8f0dc3dc198aa4a5a86a93fd \ rmd160 a25109904f9813d43907dad261c516eeae0fba47 depends_run port:rsync path:bin/perl:perl5 port:p5-error depends_lib port:curl port:zlib port:openssl port:expat port:libiconv patchfiles patch-Makefile.diff extract.only git-${version}${extract.suffix} \ git-manpages-${version}${extract.suffix} use_configure no set CFLAGS "-Wall -O2 -I${prefix}/include ${configure.cc_archflags}" set LDFLAGS "-L${prefix}/lib" build.args CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ 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="${CFLAGS}" LDFLAGS="${LDFLAGS}" \ 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} \ md5 b27bc68e1ee1e44fae7455d069475a76 \ sha1 e4bdd13fca2aa47d70c4c0645d0aae9b1c16c72f \ rmd160 892d02428f72e2d133c2b3f10c0d870701439b6c } 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 {