mirror of
https://github.com/macports/macports-ports.git
synced 2026-07-12 18:20:25 -07:00
55 lines
2.2 KiB
Tcl
55 lines
2.2 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 convmv
|
|
version 2.05
|
|
categories sysutils perl
|
|
platforms any
|
|
maintainers nomaintainer
|
|
license GPL-2+
|
|
supported_archs noarch
|
|
|
|
description Convert filenames from one encoding to another
|
|
|
|
long_description convmv is meant to help convert a single filename, a \
|
|
directory tree and the contained files or a whole \
|
|
filesystem into a different encoding. It just converts \
|
|
the filenames, not the content of the files. A special \
|
|
feature of convmv is that it also takes care of symlinks, \
|
|
also converts the symlink target pointer in case the \
|
|
symlink target is being converted, too. All this comes \
|
|
in very handy when one wants to switch over from old \
|
|
8-bit locales to UTF-8 locales. It is also possible to \
|
|
convert directories to UTF-8 which are already partly \
|
|
UTF-8 encoded. convmv is able to detect if certain files \
|
|
are UTF-8 encoded and will skip them by default. To turn \
|
|
this smartness off use the --nosmart switch.
|
|
|
|
homepage https://www.j3e.de/linux/convmv/man/
|
|
master_sites https://www.j3e.de/linux/convmv/
|
|
|
|
checksums rmd160 53173187a48014546f700e3184dcfd8c3574d35e \
|
|
sha256 53b6ac8ae4f9beaee5bc5628f6a5382bfd14f42a5bed3d881b829d7b52d81ca6 \
|
|
size 30680
|
|
|
|
depends_lib bin:perl:perl5
|
|
|
|
post-patch {
|
|
reinplace "s|^#!/usr/bin/perl|#!${prefix}/bin/perl|" ${worksrcpath}/convmv
|
|
}
|
|
|
|
use_configure no
|
|
|
|
destroot.args PREFIX=${prefix} MANDIR=${prefix}/share/man
|
|
|
|
post-destroot {
|
|
xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
|
|
xinstall -m 644 -W ${worksrcpath} CREDITS Changes GPL2 TODO VERSION \
|
|
${destroot}${prefix}/share/doc/${name}
|
|
}
|
|
|
|
livecheck.type regex
|
|
livecheck.url [lindex ${master_sites} 0]
|
|
livecheck.regex ${name}-(\[0-9.\]+)${extract.suffix}
|