source: trunk/dports/textproc/xmlformat/Portfile

Last change on this file was 137167, checked in by devans@…, 2 years ago

xmlformat: update to version 1.04, add description to +ruby variant.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 137167 2015-06-05 21:35:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                xmlformat
7version             1.04
8categories          textproc perl ruby
9license             BSD Permissive
10platforms           darwin
11supported_archs     noarch
12maintainers         nomaintainer
13description         formatter for XML documents
14long_description    xmlformat is a configurable formatter (or \
15                    pretty-printer) for XML documents. It provides control \
16                    over indentation, line-breaking, and text wrapping. \
17                    These properties can be defined on a per-element \
18                    basis. There is a perl and a ruby variant of this \
19                    program available.
20
21homepage            http://www.kitebird.com/software/xmlformat/
22master_sites        ${homepage}
23
24checksums           rmd160  320ec471367c5679a2f1698eefb904994eaea1a8 \
25                    sha256  71a70397e44760d67645007ad85fea99736f4b6f8679067a3b5f010589fd8fef
26
27depends_run         bin:perl:perl5
28set ext             pl
29
30variant ruby description {Install ruby version} {
31    set ext rb
32    depends_run bin:ruby:ruby
33}
34
35configure   {
36    reinplace "s|/usr/bin/|/usr/bin/env |1" ${worksrcpath}/xmlformat.${ext}
37    reinplace "s|-w||1" ${worksrcpath}/xmlformat.${ext}
38}
39
40build               {}
41
42destroot    {
43    xinstall -m 755 ${worksrcpath}/xmlformat.${ext} \
44        ${destroot}${prefix}/bin/xmlformat
45}
Note: See TracBrowser for help on using the repository browser.