20 | | master_sites sourceforge |
21 | | patchfiles patch-viewcvs-install |
22 | | checksums md5 c7857b1ed05240ad1f691ea40044daf2 |
23 | | |
24 | | use_configure no |
25 | | depends_build bin:python:python24 |
26 | | |
27 | | pre-build { |
28 | | reinplace "s|__ROOTDIR|${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install |
29 | | reinplace "s|__DESTROOTDIR|${destroot}${prefix}/share/${name}-${version}|g" ${worksrcpath}/viewcvs-install |
30 | | } |
31 | | |
32 | | build {} |
33 | | build.cmd ./viewcvs-install |
34 | | post-destroot { |
35 | | |
36 | | switch ${os.platform} { |
37 | | darwin { |
38 | | set cgi_path "/Library/WebServer/CGI-Executables/" |
39 | | } freebsd { |
40 | | set cgi_path "/usr/local/www/cgi-bin/" |
41 | | } default { |
42 | | puts stdout "and it was like, beep beep beep beep beep..." |
43 | | } |
44 | | } |
45 | | |
46 | | # apache port interop |
47 | | if {[ file exists ${prefix}/sbin/httpd]} { |
48 | | set cgi_path "${prefix}/www/cgi-bin/" |
49 | | } |
50 | | |
51 | | system "install -d ${destroot}${cgi_path}" |
52 | | system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/query.cgi ${destroot}${cgi_path}" |
53 | | system "install -m 755 ${destroot}${prefix}/share/${name}-${version}/cgi/viewcvs.cgi ${destroot}${cgi_path}" |
54 | | } |