source: trunk/dports/devel/cvsweb/Portfile

Last change on this file was 151911, checked in by mojca@…, 11 months ago

cvsweb: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 151911 2016-08-23 22:01:10Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           perl5 1.0
6
7name                cvsweb
8version             3.0.6
9revision            4
10categories          devel www
11license             BSD
12maintainers         nomaintainer
13supported_archs     noarch
14
15description         WWW interface for CVS repositories
16long_description    FreeBSD-CVSweb is a WWW CGI script that allows remote users to \
17                    browse a CVS repository tree via web.  It can display the revision \
18                    history of a file, as well as diffs between revisions and \
19                    downloading the whole file.
20
21homepage            http://www.freebsd.org/projects/cvsweb.html
22platforms           darwin
23master_sites        http://people.FreeBSD.org/~scop/cvsweb/ \
24                    ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/local-distfiles/scop/
25
26checksums           rmd160  e933c3814ea52c7fb9cec65e088c9ab778da2fee \
27                    sha256  07391ee70212ae42e54b8f6d5e613623ef2aad5fd7474899a102fcca48d213c2
28
29perl5.branches      5.24
30
31depends_run         port:perl${perl5.major} \
32                    port:p${perl5.major}-ipc-run \
33                    port:p${perl5.major}-file-temp \
34                    port:p${perl5.major}-uri \
35                    port:p${perl5.major}-mime-types \
36                    port:p${perl5.major}-string-ediff \
37                    port:cvsgraph
38
39use_configure       no
40build               {}
41
42global cgi_path httpd_conf_path
43set cgi_path        "/Library/WebServer/CGI-Executables/"
44set httpd_conf_path "/private/etc/httpd/"
45set icons_path      "/Library/WebServer/Documents/icons/"
46set css_path        "/Library/WebServer/Documents/css/"
47
48variant macports_apache2 description {Install for MacPorts apache2 instead of Apple Apache} {
49    global cgi_path httpd_conf_path
50    set cgi_path        "${prefix}/apache2/cgi-bin/"
51    set httpd_conf_path "${prefix}/apache2/conf/"
52    set icons_path      "${prefix}/apache2/htdocs/icons/"
53    set css_path        "${prefix}/apache2/htdocs/css/"
54}
55
56destroot.violate_mtree yes
57
58destroot {
59    file mkdir ${destroot}${cgi_path}
60    file mkdir ${destroot}${httpd_conf_path}
61    file mkdir ${destroot}${icons_path}
62    file mkdir ${destroot}${css_path}
63    xinstall -m 755 ${worksrcpath}/cvsweb.cgi ${destroot}${cgi_path}
64    xinstall -m 644 ${worksrcpath}/cvsweb.conf ${destroot}${httpd_conf_path}
65    eval xinstall -m 755 [glob ${worksrcpath}/icons/*] ${destroot}${icons_path}
66    eval xinstall -m 755 [glob ${worksrcpath}/css/*] ${destroot}${css_path}
67
68    reinplace -locale en_US.ISO8859-1 "s|#!/usr/bin/perl|#!${perl5.bin}|g" \
69        "${destroot}${cgi_path}/cvsweb.cgi"
70    reinplace -locale en_US.ISO8859-1 "s|/usr/local/etc/cvsweb/cvsweb.conf|${httpd_conf_path}cvsweb.conf|g" \
71        "${destroot}${cgi_path}/cvsweb.cgi"
72    # TODO: no effect
73    reinplace -locale en_US.ISO8859-1 "s|/bin /usr/bin /usr/local/bin|/bin /usr/bin /usr/local/bin ${prefix}/bin ${prefix}/sbin|g" \
74        "${destroot}${cgi_path}/cvsweb.cgi"
75}
Note: See TracBrowser for help on using the repository browser.