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

Last change on this file since 28917 was 28917, checked in by sfiera@…, 13 years ago

Fixed cgit distfile location

File size: 2.1 KB
Line 
1# $Id: Portfile 28206 2007-08-24 17:24:55Z sfiera@macports.org $
2
3PortSystem 1.0
4
5name            cgit
6version         0.6.2
7set git-version 1.5.3
8categories      www devel
9maintainers     sfiera openmaintainer
10description     A fast web interface for the git source code management system
11homepage        http://hjemli.net/git/cgit/
12platforms       darwin
13
14long_description \
15    cgit is an attempt to create a fast web interface for the git scm, using a \
16    builtin cache to decrease server io-pressure. It can run on any \
17    CGI-capable web server.
18
19use_bzip2       yes
20set cgit-dist   ${name}-${version}${extract.suffix}?id=v${version}
21set git-dist    git-${git-version}${extract.suffix}
22distfiles       ${cgit-dist}:cgit ${git-dist}:git
23master_sites    ${homepage}snapshot:cgit \
24                http://www.kernel.org/pub/software/scm/git:git
25checksums       ${cgit-dist} \
26                    md5 d13c9883c9127576cc07bea6aea29784 \
27                    sha1 9f3c845743cf8494aca5f7031c577060b03df12a \
28                    rmd160 a579654b3e60677ae424e109d9ebfa7575f827a0 \
29                ${git-dist} \
30                    md5 798e5784670e0a3e0daaea048e60851d \
31                    sha1 a5a7b3d14f182d3d50223661289e9b5b953f5b59 \
32                    rmd160 7182cadbd5d323749117340ad0abd8194aadf9e7
33
34depends_lib     port:git-core \
35                port:openssl \
36                port:zlib \
37                port:iconv
38
39post-extract {
40    file delete ${worksrcpath}/git
41    file rename ${worksrcpath}/../git-${git-version} ${worksrcpath}/git
42}
43
44post-patch {
45    file copy ${filespath}/cgit.conf ${worksrcpath}/cgit.conf
46    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/cgit.conf
47    reinplace "s|@GIT_VER@|${git-version}|g" ${worksrcpath}/cgit.conf
48}
49
50post-destroot {
51    xinstall -m 444 ${worksrcpath}/cgitrc ${destroot}${prefix}/etc/cgitrc.sample
52    xinstall -m 700 -o www -g www -d ${destroot}/${prefix}/var/cache/cgit
53    destroot.keepdirs ${destroot}${prefix}/var/cache/cgit
54}
55
56worksrcdir      ${name}
57use_configure   no
58build.env       CFLAGS='-L${prefix}/lib -liconv'
59
60livecheck.check none
Note: See TracBrowser for help on using the repository browser.