You've already forked macports-ports
mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
45 lines
1.5 KiB
Tcl
45 lines
1.5 KiB
Tcl
# -*- 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
|
|
|
|
PortSystem 1.0
|
|
|
|
name xmlformat
|
|
version 1.04
|
|
categories textproc perl ruby
|
|
license BSD Permissive
|
|
platforms any
|
|
supported_archs noarch
|
|
maintainers nomaintainer
|
|
description formatter for XML documents
|
|
long_description xmlformat is a configurable formatter (or \
|
|
pretty-printer) for XML documents. It provides control \
|
|
over indentation, line-breaking, and text wrapping. \
|
|
These properties can be defined on a per-element \
|
|
basis. There is a perl and a ruby variant of this \
|
|
program available.
|
|
|
|
homepage http://www.kitebird.com/software/xmlformat/
|
|
master_sites ${homepage}
|
|
|
|
checksums rmd160 320ec471367c5679a2f1698eefb904994eaea1a8 \
|
|
sha256 71a70397e44760d67645007ad85fea99736f4b6f8679067a3b5f010589fd8fef
|
|
|
|
depends_run bin:perl:perl5
|
|
set ext pl
|
|
|
|
variant ruby description {Install ruby version} {
|
|
set ext rb
|
|
depends_run bin:ruby:ruby
|
|
}
|
|
|
|
configure {
|
|
reinplace "s|/usr/bin/|/usr/bin/env |1" ${worksrcpath}/xmlformat.${ext}
|
|
reinplace "s|-w||1" ${worksrcpath}/xmlformat.${ext}
|
|
}
|
|
|
|
build {}
|
|
|
|
destroot {
|
|
xinstall -m 755 ${worksrcpath}/xmlformat.${ext} \
|
|
${destroot}${prefix}/bin/xmlformat
|
|
}
|