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

Last change on this file since 87969 was 69520, checked in by jmr@…, 9 years ago

update openssl to 1.0.0a and rev bump dependents (#25114, maintainer timeout)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2# $Id: Portfile 69520 2010-07-08 20:19:52Z jmr@macports.org $
3
4PortSystem 1.0
5
6name            cgit
7version         0.8.2.1
8revision        1
9set git-version 1.6.3
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-core
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-dist   ${distfiles}
24set git-dist    [suffix git-${git-version}]
25distfiles       ${cgit-dist}:cgit ${git-dist}:git
26master_sites    ${homepage}snapshot:cgit \
27                http://www.kernel.org/pub/software/scm/git:git
28checksums       ${cgit-dist} \
29                    md5     33e56f0621e53327f89233c7ccb7d8be \
30                    sha1    1c40de81530a3c0513bc963cc81f14685448f6f9 \
31                    rmd160  2e83250130aa1d4f087c853567c794b58a24368c \
32                ${git-dist} \
33                    md5     a5e6165506cddd94954277cf81f44b14 \
34                    sha1    1dab1068d1886828bdb512e9b809bc779de35609 \
35                    rmd160  b496878b113ae8d13d2eaa1b65e4dd2d8e72834d
36
37depends_lib     port:git-core \
38                port:openssl \
39                port:zlib \
40                port:libiconv
41
42post-extract {
43    file delete ${worksrcpath}/git
44    file rename ${worksrcpath}/../git-${git-version} ${worksrcpath}/git
45}
46
47post-patch {
48    file copy ${filespath}/cgit.conf ${worksrcpath}/cgit.conf
49    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/cgit.conf
50    reinplace "s|@GIT_VER@|${git-version}|g" ${worksrcpath}/cgit.conf
51}
52
53post-destroot {
54    xinstall -m 444 ${worksrcpath}/cgitrc.5.txt ${destroot}${prefix}/etc/cgitrc.sample
55    xinstall -m 700 -o www -g www -d ${destroot}${prefix}/var/cache/cgit
56    destroot.keepdirs ${destroot}${prefix}/var/cache/cgit
57}
58
59use_configure   no
60configure.ldflags-append -liconv
61build.env       CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
62destroot.env    CFLAGS="${configure.cflags}" LDFLAGS="${configure.ldflags}"
63
64livecheck.type  regex
65livecheck.url   ${homepage}
66livecheck.regex {stable.>CGIT ([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.