[46792] trunk/dports/www
ryandesign at macports.org
ryandesign at macports.org
Fri Feb 13 00:56:26 PST 2009
Revision: 46792
http://trac.macports.org/changeset/46792
Author: ryandesign at macports.org
Date: 2009-02-13 00:56:26 -0800 (Fri, 13 Feb 2009)
Log Message:
-----------
webdot: New port, version 2.16. Not quite ready yet. See #18458
Added Paths:
-----------
trunk/dports/www/webdot/
trunk/dports/www/webdot/Portfile
trunk/dports/www/webdot/files/
trunk/dports/www/webdot/files/patch-Makefile.in
Added: trunk/dports/www/webdot/Portfile
===================================================================
--- trunk/dports/www/webdot/Portfile (rev 0)
+++ trunk/dports/www/webdot/Portfile 2009-02-13 08:56:26 UTC (rev 46792)
@@ -0,0 +1,77 @@
+# $Id$
+
+PortSystem 1.0
+
+name webdot
+version 2.16
+categories graphics
+maintainers ryandesign
+homepage http://www.graphviz.org/
+master_sites ${homepage}pub/graphviz/stable/SOURCES/
+platforms darwin
+use_parallel_build yes
+
+description Graphviz web service
+
+long_description WebDot is a CGI program that converts a graph \
+ description from a Graphviz .dot or .gv file into \
+ an image that can be included on a web page
+
+checksums md5 25d495ca878b9af8df6370847c07e456 \
+ sha1 fb6221840c9cf25f15477b0ee42474947e325579 \
+ rmd160 2c08e153a4430cc264fd1a676ac22914a92d257d
+
+depends_build port:pkgconfig
+
+depends_lib path:bin/neato:graphviz
+
+depends_run port:ghostscript
+
+patchfiles-append patch-Makefile.in
+
+pre-configure {
+ if {![file exists ${prefix}/lib/graphviz/tcl/libtcldot.dylib]} {
+ set graphviz_port graphviz
+ if {[expr [lindex [split [exec ${prefix}/bin/pkg-config --modversion libgvc] .] 1] % 2]} {
+ set graphviz_port graphviz-devel
+ }
+ ui_msg "${name} requires that ${graphviz_port} first be installed with the +tcl variant."
+ ui_msg "Rebuild ${graphviz_port} using:"
+ ui_msg " sudo port -nf upgrade ${graphviz_port} +tcl"
+ return -code error "${graphviz_port} missing +tcl variant"
+ }
+}
+
+post-configure {
+ reinplace "/^CGI-BIN_DIR=/s|=.*$|=${cgi_bin}|" ${worksrcpath}/Makefile
+ reinplace "/^HTML_DIR=/s|=.*$|=${html_dir}/|" ${worksrcpath}/Makefile
+ reinplace "/^CACHE_DIR=/s|=.*$|=${prefix}/var/cache|" ${worksrcpath}/Makefile
+ reinplace "/^TCLSH_EXECUTABLE=/s|=.*$|=${prefix}/bin/tclsh|" ${worksrcpath}/Makefile
+ reinplace "/^LIBTCLDOT=/s|=.*$|=${prefix}/lib/graphviz/tcl/libtcldot.dylib|" ${worksrcpath}/Makefile
+ reinplace "/^GS=/s|=.*$|=${prefix}/bin/gs|" ${worksrcpath}/Makefile
+ reinplace "/^PS2EPSI=/s|=.*$|=${prefix}/bin/ps2epsi|" ${worksrcpath}/Makefile
+}
+
+platform darwin {
+ post-configure {
+ set www_user www
+ if {${os.major} >= 9} {
+ set www_user _www
+ }
+ reinplace "/^HTTPD-USER-GROUP=/s|=.*$|=${www_user}:${www_user}|" ${worksrcpath}/Makefile
+ }
+}
+
+set www ${prefix}/www
+set html_dir ${www}/htdocs
+set cgi_bin ${www}/cgi-bin
+
+variant apache_apple description {Install file in Apple's web server directories instead} {
+ set www /Library/WebServer
+ set html_dir ${www}/Documents
+ set cgi_bin ${www}/CGI-Executables
+}
+
+livecheck.check regex
+livecheck.url ${homepage}Download_source.php
+livecheck.regex ${name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)\\.tar
Property changes on: trunk/dports/www/webdot/Portfile
___________________________________________________________________
Added: svn:keywords
+ Id
Added: svn:eol-style
+ native
Added: trunk/dports/www/webdot/files/patch-Makefile.in
===================================================================
--- trunk/dports/www/webdot/files/patch-Makefile.in (rev 0)
+++ trunk/dports/www/webdot/files/patch-Makefile.in 2009-02-13 08:56:26 UTC (rev 46792)
@@ -0,0 +1,8 @@
+--- Makefile.in 2007-11-09 23:35:06.000000000 -0600
++++ Makefile.in 2009-02-11 13:29:07.000000000 -0600
+@@ -94,3 +94,5 @@
+ clean:
+ ( cd html.in; for i in *.in; do rm -f ../html/webdot/$${i%%.in}; done )
+ rm -f html/webdot/demo.html
++
++.PHONY: all genfiles install uninstall distdir dist clean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090213/d15141a3/attachment.html>
More information about the macports-changes
mailing list