Ticket #49359: Portfile

File Portfile, 2.0 KB (added by gustafn, 9 years ago)
Line 
1# $Id$
2
3PortSystem 1.0
4
5name             tDOM
6version          0.8.3
7revision         1
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
31patch.dir        ${workpath}/$distname
32patchfiles       tdom-tcl86.patch
33
34configure {
35  #
36  # The following overwrite is needed, since the configure file resides
37  # in the directory above the worksrcdir
38  #
39  system -W ${worksrcpath} "../configure --prefix=${prefix} --with-tcl=${prefix}/lib --mandir=${prefix}/share/man"
40  #
41  # The Makefile.in has a small bug (missing space). We cannot use a
42  # patch, since the patch command is excuted in the ${worksrcpath},
43  # which is subdirectory of the directory containing Makefile.in, and
44  # the program "patch" refuses to process patches having "../" in the
45  # path names. So we fix the resulting Makefile "manually" via sed.
46  #
47  system  -W ${worksrcpath} "sed 's/\\\$(PACKAGE_VERSION)\\\\/\\\$(PACKAGE_VERSION) \\\\/g' < ./Makefile > ./Makefile.fixed"
48  system  -W ${worksrcpath} "mv ./Makefile.fixed ./Makefile"
49}
50
51
52