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

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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