source: trunk/dports/www/cgit/Portfile @ 120912

Last change on this file since 120912 was 120912, checked in by ciserlohn@…, 6 years ago

git, git-core: update to version 2.0.0; rename to git (closes #37279) and update all dependent ports

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2# $Id: Portfile 120912 2014-06-11 13:10:52Z ciserlohn@macports.org $
3
4PortSystem 1.0
5
6name            cgit
7version         0.9.0.3
8revision        1
9set git_version 1.7.4
10categories      www devel
11maintainers     sfiera openmaintainer
12description     A fast web interface for the git source code management system
13homepage        http://hjemli.net/git/cgit/
14platforms       darwin
15dist_subdir     git
16
17long_description \
18    cgit is an attempt to create a fast web interface for the git scm, using a \
19    builtin cache to decrease server io-pressure. It can run on any \
20    CGI-capable web server.
21
22use_bzip2       yes
23set cgit_distfile   ${distfiles}
24set git_distname    git-${git_version}
25set git_distfile    ${git_distname}${extract.suffix}
26distfiles       ${cgit_distfile}:cgit ${git_distfile}:git
27master_sites    ${homepage}snapshot:cgit \
28                http://www.kernel.org/pub/software/scm/git:git
29checksums       ${cgit_distfile} \
30                    rmd160  a426468889aff48a19849acd01c9660b37cb0c0f \
31                    sha256  53ccf0c826f91c2184ec29b1b9ab8a6f42e0ef2e6fa9042c3759e2a2dc81baa5 \
32                ${git_distfile} \
33                    rmd160  a064d7a5b2d3fae6171ca91a03082eb46d7bb9b7 \
34                    sha256  8e260b9e5dfb46a35f26e3db450c2dabb4d1df254bfb2820779945a1ecbcef51
35
36depends_lib     port:git \
37                port:openssl \
38                port:zlib \
39                port:libiconv
40
41post-extract {
42    delete ${worksrcpath}/git
43    move ${workpath}/${git_distname} ${worksrcpath}/git
44}
45
46post-patch {
47    file copy ${filespath}/cgit.conf ${worksrcpath}/cgit.conf
48    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/cgit.conf
49    reinplace "s|@GIT_VER@|${git_version}|g" ${worksrcpath}/cgit.conf
50}
51
52set user _www
53set group _www
54
55if {${os.platform} eq "darwin" && ${os.major} <= 8} {
56    set user www
57    set group www
58}
59
60post-destroot {
61    xinstall -m 444 ${worksrcpath}/cgitrc.5.txt ${destroot}${prefix}/etc/cgitrc.sample
62    xinstall -m 700 -o ${user} -g ${group} -d ${destroot}${prefix}/var/cache/cgit
63    destroot.keepdirs ${destroot}${prefix}/var/cache/cgit
64}
65
66use_configure   no
67variant universal {}
68configure.ldflags-append -liconv
69
70build.args      CC="${configure.cc} [get_canonical_archflags cc]"
71build.env       CFLAGS="${configure.cflags}" \
72                LDFLAGS="${configure.ldflags}"
73
74eval destroot.args ${build.args}
75eval destroot.env ${build.env}
76
77livecheck.type  regex
78livecheck.url   ${homepage}log/?h=stable
79livecheck.regex {>v([0-9.]+)<}
Note: See TracBrowser for help on using the repository browser.