Ticket #32899: Portfile

File Portfile, 1.9 KB (added by gustafn, 13 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name             tDOM
6version          0.8.3
7revision         0
8categories       textproc devel
9maintainers      wu.ac.at:neumann
10description      high performance XML data processing with easy and powerful Tcl scripting functionality
11long_description \
12        tDOM combines high performance XML data processing with easy and powerful Tcl scripting functionality. tDOM should be one of the fastest ways to manipulate XML with a scripting language and uses very little memory in the process (for example the DOM tree of the XML recommendation in XML (160K) needs only about 450K in memory)! The tDOM project was started by Jochen Löwer. It is currently maintained by Rolf Ade.
13
14homepage         http://tdom.github.com/
15platforms        darwin
16license          Mozilla Public License Version 1.1
17
18distname         ${name}-${version}
19distfiles        ${distname}.tgz
20
21master_sites     https://github.com/downloads/tDOM/tdom
22
23checksums \
24        md5    f773bef5b8f15e0b400f9f93f164a6bb \
25        sha1   1b7db0357ffb96c0a6c879c385168491380a8ca5 \
26        rmd160 df52d8b7c3ac9134dae20a3bcaa21e0e512e3289
27
28depends_lib      port:tcl
29worksrcdir       ${distname}/unix
30
31configure {
32  #
33  # The following overwrite is needed, since the configure file resides
34  # in the directory above the worksrcdir
35  #
36  system -W ${worksrcpath} "../configure --prefix=${prefix} --with-tcl=${prefix}/lib --mandir=${prefix}/share/man"
37  #
38  # The Makefile.in has a small bug (missing space). We cannot use a
39  # patch, since the patch command is excuted in the ${worksrcpath},
40  # which is subdirectory of the directory containing Makefile.in, and
41  # the program "patch" refuses to process patches having "../" in the
42  # path names. So we fix the resulting Makefile "manually" via sed.
43  #
44  system  -W ${worksrcpath} "sed 's/\\\$(PACKAGE_VERSION)\\\\/\\\$(PACKAGE_VERSION) \\\\/g' < ./Makefile > ./Makefile.fixed"
45  system  -W ${worksrcpath} "mv ./Makefile.fixed ./Makefile"
46}
47
48
49