source: trunk/dports/textproc/xmlformat/Portfile @ 6050

Last change on this file since 6050 was 6050, checked in by mww, 16 years ago

new port textproc/xmlformat

  • Property svn:eol-style set to native
File size: 1005 bytes
Line 
1# $Id: Portfile,v 1.1 2004/03/27 11:20:34 mww Exp $
2
3PortSystem 1.0
4
5name            xmlformat
6version         1.03
7categories      textproc perl ruby
8platforms       darwin
9maintainers     mww@opendarwin.org
10description     formatter for XML documents
11long_description        xmlformat is a configurable formatter (or \
12                        pretty-printer) for XML documents. It provides control \
13                        over indentation, line-breaking, and text wrapping. \
14                        These properties can be defined on a per-element \
15                        basis. There is a perl and a ruby variant of this \
16                        program available.
17
18homepage        http://www.kitebird.com/software/xmlformat/
19master_sites    ${homepage}
20checksums       md5 23a1a4f6c49cc83ebae0f8f25d1e2069
21
22depends_run     bin:perl:perl5.8
23set ext         pl
24
25variant ruby    {
26        set ext rb
27        depends_run     bin:ruby:ruby
28}
29
30configure       {
31        reinplace "s|/usr/bin/|/usr/bin/env |1" ${worksrcpath}/xmlformat.${ext}
32        reinplace "s|-w||1" ${worksrcpath}/xmlformat.${ext}
33}
34
35build           {}
36
37destroot        {
38        xinstall -m 755 ${worksrcpath}/xmlformat.${ext} \
39                ${destroot}${prefix}/bin/xmlformat
40}
Note: See TracBrowser for help on using the repository browser.