source: trunk/dports/textproc/sablotron/Portfile

Last change on this file was 93058, checked in by jmr@…, 5 years ago

sablotron: license

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 93058 2012-05-14 15:07:04Z ryandesign@macports.org $
2
3PortSystem          1.0
4
5name                sablotron
6version             1.0.3
7revision            1
8categories          textproc
9license             {MPL-1.1 GPL-2+}
10maintainers         nomaintainer
11homepage            http://sablotron.sourceforge.net/
12description         XSLT, DOM and XPath processor
13long_description    Sablotron is a fast, compact and portable XML toolkit \
14    implementing XSLT 1.0, DOM Level2 and XPath 1.0. Sablotron is an open \
15    project. The goal of this project is to create a \
16    lightweight, reliable and fast XML library processor conforming to the W3C \
17    specification, which is available for public and can be used as a base for \
18    multi-platform XML applications.
19
20platforms           darwin
21distname            Sablot-${version}
22master_sites        sourceforge
23
24checksums           md5     72654c4b832e7562f8240ea675577f5e \
25                    sha1    4e60a6aef32b661d7887b3ffd28339f47e2565e1 \
26                    rmd160  bbf2b57d95efbe1fce0ba42813560df4dbde9e3a
27
28depends_build       port:libtool
29
30depends_lib         port:libiconv port:expat port:spidermonkey
31
32# Unfortunately, we have to set an internal configure script variable to stop
33# it auto-detecting whether or not to build the API documentation; no configure
34# switch is provided.
35configure.env       BUILD_APIDOCS=no
36configure.args      --mandir=${prefix}/share/man --enable-javascript
37configure.cppflags-append   -I${prefix}/include/js
38
39post-configure {
40    # Ensure -arch flags are also used when building the dynamic library;
41    # fixes universal and non-default-build_arch builds.
42    copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
43}
44
45variant apidocs description {Install HTML documentation of Sablotron's API} {
46    depends_build-append    path:bin/perl:perl5 port:p5-xml-parser
47    configure.env-append    PERL_PROG=${prefix}/bin/perl
48    configure.env-delete    BUILD_APIDOCS=no
49    configure.env-append    BUILD_APIDOCS=yes
50}
51variant debugger description \
52    {Enable XSLT debugger features; user must accept GPL on all of Sablotron} {
53    # Strictly speaking, sablotron's debugger still works without readline, but
54    # it's worth having the features that readline provides (like command-line
55    # history) to keep users of the debugger sane :-)
56    depends_lib-append      port:ncurses port:readline
57    configure.args-append   --enable-debugger --with-readline
58    configure.env-append    SABLOT_GPL=1
59}
Note: See TracBrowser for help on using the repository browser.