| 1 | # $Id: Portfile 24796 2007-05-04 13:35:14Z pipping@macports.org $ |
| 2 | |
| 3 | PortSystem 1.0 |
| 4 | name git |
| 5 | version 1.5.2 |
| 6 | description The stupid content tracker. |
| 7 | long_description A stupid (but extremely fast) directory \ |
| 8 | content manager. It doesn't do a whole lot, \ |
| 9 | but what it _does_ do is track directory contents \ |
| 10 | efficiently. |
| 11 | maintainers bryan@larsen.st zacheryph@gmail.com |
| 12 | categories devel |
| 13 | platforms darwin |
| 14 | homepage http://git.or.cz/ |
| 15 | use_bzip2 yes |
| 16 | master_sites http://www.kernel.org/pub/software/scm/git/ |
| 17 | distname git-${version} |
| 18 | distfiles git-${version}${extract.suffix} \ |
| 19 | git-manpages-${version}${extract.suffix} |
| 20 | |
| 21 | checksums git-${version}${extract.suffix} sha1 f60d8dbf0926a3c12a1658bac177b383939d8e54 \ |
| 22 | git-manpages-${version}${extract.suffix} sha1 025a4a65e6a1c9aa1abfd64007ba3559655bb629 |
| 23 | depends_run port:curl port:openssh port:rsync |
| 24 | depends_lib port:curl port:zlib port:openssl port:expat port:libiconv |
| 25 | |
| 26 | patchfiles patch-Makefiles patch-curl |
| 27 | |
| 28 | use_configure no |
| 29 | |
| 30 | build.env CFLAGS="-Wall -O2 -I${prefix}/include" LDFLAGS="-L${prefix}/lib" |
| 31 | build.args prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} \ |
| 32 | ICONVDIR=${prefix} PERL_PATH="/usr/bin/env perl" NO_FINK=1 NO_DARWIN_PORTS=1 |
| 33 | |
| 34 | test.run yes |
| 35 | test.cmd make |
| 36 | test.target test |
| 37 | test.dir ${worksrcpath} |
| 38 | test.args prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} \ |
| 39 | ICONVDIR=${prefix} PERL_PATH="/usr/bin/env perl" NO_FINK=1 NO_DARWIN_PORTS=1 |
| 40 | |
| 41 | destroot.destdir DESTDIR=${destroot} prefix=${prefix} |
| 42 | destroot.target install |
| 43 | destroot.args prefix=${prefix} CURLDIR=${prefix} OPENSSLDIR=${prefix} \ |
| 44 | ICONVDIR=${prefix} PERL_PATH="/usr/bin/env perl" NO_FINK=1 NO_DARWIN_PORTS=1 |
| 45 | |
| 46 | post-destroot { |
| 47 | cd ${workpath} |
| 48 | foreach f {1 5 7} { |
| 49 | xinstall -d ${destroot}${prefix}/share/man/man${f} |
| 50 | foreach m [glob man${f}/*.${f}] { |
| 51 | xinstall ${m} ${destroot}${prefix}/share/man/man${f} |
| 52 | } |
| 53 | } |
| 54 | if {![variant_isset svn]} { |
| 55 | system "rm ${destroot}${prefix}/bin/git-svn*" |
| 56 | system "rm ${destroot}${prefix}/share/man/man1/git-svn*" |
| 57 | } |
| 58 | } |
| 59 | |
| 60 | variant doc { |
| 61 | depends_build port:asciidoc port:xmlto |
| 62 | build.target-append doc |
| 63 | destroot.target-append install-doc |
| 64 | } |
| 65 | |
| 66 | variant svn { |
| 67 | depends_run port:p5-svn-simple port:subversion port:perl port:p5-libwww-perl |
| 68 | } |