[26881] trunk/dports/textproc/sablotron/Portfile
source_changes at macosforge.org
source_changes at macosforge.org
Tue Jul 10 19:36:44 PDT 2007
Revision: 26881
http://trac.macosforge.org/projects/macports/changeset/26881
Author: boeyms at macports.org
Date: 2007-07-10 19:36:43 -0700 (Tue, 10 Jul 2007)
Log Message:
-----------
textproc/sablotron:
* Update to latest version (1.0.3);
* Change dependency style from lib:... to port:...;
* Add options to build API documentation, debugger and Javascript support;
* Remove "platform darwin" section as it contents no longer seem to be needed.
Modified Paths:
--------------
trunk/dports/textproc/sablotron/Portfile
Modified: trunk/dports/textproc/sablotron/Portfile
===================================================================
--- trunk/dports/textproc/sablotron/Portfile 2007-07-11 02:25:21 UTC (rev 26880)
+++ trunk/dports/textproc/sablotron/Portfile 2007-07-11 02:36:43 UTC (rev 26881)
@@ -2,7 +2,7 @@
PortSystem 1.0
name sablotron
-version 1.0.1
+version 1.0.3
categories textproc
maintainers nomaintainer at macports.org
description XSLT, DOM and XPath processor
@@ -18,14 +18,34 @@
distfiles Sablot-${version}.tar.gz
worksrcdir Sablot-${version}
master_sites http://download-1.gingerall.cz/download/sablot/
-checksums md5 8d06392ef2e46652bce1c5e2b68d0662
-depends_lib lib:libiconv.2:libiconv \
- lib:libexpat.0.4:expat
+checksums md5 72654c4b832e7562f8240ea675577f5e
+depends_lib port:libiconv port:expat
+# Unfortunately, we have to set an internal configure script variable to stop
+# it auto-detecting whether or not to build the API documentation; no configure
+# switch is provided.
+configure.env BUILD_APIDOCS=no
+configure.args --mandir=${prefix}/share/man
+
platform darwin 6 { depends_lib-append lib:libdl:dlcompat }
-platform darwin {
- configure.env LDFLAGS="-L${prefix}/lib -liconv -lexpat -no-undefined" \
- CPPFLAGS="-I${prefix}/include -no-cpp-precomp -undefined error" \
- CC=g++
+variant apidocs description {Install HTML documentation of Sablotron's API} {
+ depends_lib-append port:p5-xml-parser
+ configure.env-delete BUILD_APIDOCS=no
+ configure.env-append BUILD_APIDOCS=yes
}
+variant debugger description \
+ {Enable XSLT debugger features; user must accept GPL on all of Sablotron} {
+ # Strictly speaking, sablotron's debugger still works without readline, but
+ # it's worth having the features that readline provides (like command-line
+ # history) to keep users of the debugger sane :-)
+ depends_lib-append port:ncurses port:readline
+ configure.args-append --enable-debugger --with-readline
+ configure.env-append SABLOT_GPL=1
+}
+variant javascript description {Enable JavaScript support} {
+ depends_lib-append port:spidermonkey
+ configure.args-append --enable-javascript
+ # Need to help the configure script find the spidermonkey headers
+ configure.cppflags-append -I${prefix}/include/js
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070710/3b69d9f4/attachment.html
More information about the macports-changes
mailing list