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

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

All openmaintainer ports: ${prefix} already begins with a slash,
so there's no reason to put a slash before the ${prefix} variable
when using it.

See r32256 for the equivalent change for nomaintainer ports.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 32257 2007-12-23 09:39:21Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            cgit
6version         0.7.1
7set git-version 1.5.3.5
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 ea1c6843e9fccab5919497537a8cfb8f \
27                    sha1 50c4c7139a1647f2a20897b88f432e4944963fe8 \
28                    rmd160 ce900232e28a8a41d7214979532ef1cba0d34737 \
29                ${git-dist} \
30                    md5 3fdff0bdb3638fce1c4bc6795ed81fb3 \
31                    sha1 2e48624e88400637c7063225c23d5e2ecdfe6ced \
32                    rmd160 188cdbf40fe841cd5a59f8f11a621a135a61f406
33
34depends_lib     port:git-core \
35                port:openssl \
36                port:zlib \
37                port:libiconv
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.