Ticket #62231: Portfile

File Portfile, 2.7 KB (added by Aloisius (Jordan Mendelson), 3 years ago)

Stripped down portfile for port test git, uses /usr/bin/git to test

Line 
1# -*- 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
2
3PortSystem          1.0
4PortGroup           perl5 1.0
5
6name                git
7version             2.30.0
8revision            1
9
10description         A fast version control system
11long_description    Git is a fast, scalable, distributed open source version \
12                    control system focusing on speed and efficiency.
13maintainers         {ciserlohn @ci42} openmaintainer
14categories          devel
15license             GPL-2 LGPL-2.1+
16installs_libs       no
17platforms           darwin
18homepage            https://git-scm.com/
19master_sites        https://www.kernel.org/pub/software/scm/git/ \
20                    https://cdn.kernel.org/pub/software/scm/git/
21distname            git-${version}
22use_xz              yes
23distfiles           git-${version}${extract.suffix} \
24                    git-manpages-${version}${extract.suffix}
25
26checksums           git-${version}.tar.xz \
27                    rmd160  17081fb3ca73aa9aa486994a07c7e6f61c781046 \
28                    sha256  55735021109565721af805af382c45cce73c3cfaa59daad22443d1477d334d19 \
29                    size    6325652 \
30                    git-manpages-${version}.tar.xz \
31                    rmd160  a54a6b774f1b65011e1ce0a92091d2e745368334 \
32                    sha256  7b2b8405d5bdd149e3891617053de37f7e8d5a5b3834317a5af9f30ccc93cf76 \
33                    size    481792
34
35extract.only        git-${version}${extract.suffix} \
36                    git-manpages-${version}${extract.suffix}
37
38use_configure       no
39
40variant universal   {}
41
42use_parallel_build  no
43compiler.cpath
44compiler.library_path
45configure.developer_dir
46configure.sdkroot
47macosx_deployment_target
48
49
50build.args           CURL_CONFIG=/usr/bin/curl-config \
51                     PERL_PATH="/usr/bin/perl" \
52                     PYTHON_PATH="/usr/bin/python3" \
53                     NO_GETTEXT=1 \
54                     NO_FINK=1 \
55                     NO_DARWIN_PORTS=1 \
56                     V=1
57
58#                     GIT_TEST_OPTS="-v -x -i" \
59#                     GIT_SKIP_TESTS="t\[0-6\]??? t70\[0-5\]? 706\[0-2\]"
60                     
61
62test.run            yes
63test.cmd            make
64test.args           -C t GIT_TEST_OPTS="-v -d -x -i -r 1,2,3,4,5,6" GIT_TEST_INSTALLED="/usr/bin"
65test.target         t7063-status-untracked-cache.sh
66
67#test.target         test
68#test.target         test
69test.dir            ${worksrcpath}
70#pre-test {
71#    test.args  {*}${build.args}
72#}
73pre-test                { system "env && rm ${worksrcpath}/git" }
74
75
76destroot.target     install
77
78livecheck.type          regexm
79livecheck.regex         {<span class="version">.*?(\d+\.\d+\.\d+).*?</span>}