source: trunk/dports/www/webdot/Portfile

Last change on this file was 107824, checked in by ryandesign@…, 4 years ago

gts, libiconv, webdot, py-netifaces: use eq and ne for string comparisons

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.6 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 107824 2013-07-06 08:50:49Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               active_variants 1.1
6
7name                    webdot
8version                 2.30
9categories              www graphics
10maintainers             ryandesign
11homepage                http://www.graphviz.org/
12master_sites            ${homepage}pub/graphviz/stable/SOURCES/
13platforms               darwin
14use_parallel_build      yes
15supported_archs         noarch
16
17description             Graphviz web service
18
19long_description        WebDot is a CGI program that converts a graph \
20                        description from a Graphviz .dot or .gv file into \
21                        an image that can be included on a web page
22
23checksums               rmd160  7c3c493b889ed21676bbe72a0955449b0461903e \
24                        sha256  f11567ae7a696b82c7d7d9f366827e641b2bc5a50695a3076b53e01b6902113e
25
26depends_build           port:pkgconfig
27
28depends_lib             path:bin/dot:graphviz
29
30depends_run             port:ghostscript
31
32require_active_variants path:bin/dot:graphviz tcl
33
34set www_user www
35if {${os.platform} eq "darwin" && ${os.major} >= 9} {
36    set www_user _www
37}
38set www_group ${www_user}
39
40post-configure {
41    reinplace "/^CGI-BIN_DIR=/s|=.*$|=${cgi_bin}|" ${worksrcpath}/Makefile
42    reinplace "/^HTML_DIR=/s|=.*$|=${html_dir}/|" ${worksrcpath}/Makefile
43    reinplace "/^CACHE_DIR=/s|=.*$|=${prefix}/var/cache|" ${worksrcpath}/Makefile
44    reinplace "/^TCLSH_EXECUTABLE=/s|=.*$|=${prefix}/bin/tclsh|" ${worksrcpath}/Makefile
45    reinplace "/^LIBTCLDOT=/s|=.*$|=${prefix}/lib/graphviz/tcl/libtcldot.dylib|" ${worksrcpath}/Makefile
46    reinplace "/^GS=/s|=.*$|=${prefix}/bin/gs|" ${worksrcpath}/Makefile
47    reinplace "/^PS2EPSI=/s|=.*$|=${prefix}/bin/ps2epsi|" ${worksrcpath}/Makefile
48}
49
50post-configure {
51    reinplace "/^HTTPD-USER-GROUP=/s|=.*$|=${www_user}:${www_group}|" ${worksrcpath}/Makefile
52}
53
54destroot.keepdirs ${destroot}${prefix}/var/cache/webdot
55
56post-destroot {
57    xinstall -d ${destroot}${prefix}/var/cache/webdot -o ${www_user} -g ${www_group}
58}
59
60set www                 ${prefix}/www
61set html_dir            ${www}/htdocs
62set cgi_bin             ${www}/cgi-bin
63
64variant apache_apple description {Install file in Apple's web server directories instead} {
65    set www             /Library/WebServer
66    set html_dir        ${www}/Documents
67    set cgi_bin         ${www}/CGI-Executables
68}
69
70livecheck.type          regex
71livecheck.url           ${homepage}Download_source.php
72livecheck.regex         ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)\\.tar
Note: See TracBrowser for help on using the repository browser.