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

Last change on this file since 114325 was 114325, checked in by ryandesign@…, 7 years ago

use eq and ne instead of == and != when comparing ${os.platform} and ${os.subplatform}

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