Files

50 lines
1.8 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
PortGroup perl5 1.0
name percona-toolkit
perl5.require_variant yes
perl5.conflict_variants yes
perl5.branches 5.28 5.30 5.32 5.34
perl5.default_branch 5.34
perl5.create_variants ${perl5.branches}
perl5.link_binaries_suffix
perl5.setup ${name} 3.3.1
categories databases
platforms {darwin any}
supported_archs noarch
license {GPL-2 Artistic-1}
maintainers nomaintainer
description Collection of essential command-line utilities for MySQL
long_description {*}${description}
homepage https://www.percona.com/software/database-tools/percona-toolkit
master_sites https://www.percona.com/downloads/percona-toolkit/$version/source/tarball
checksums rmd160 cde1deba130b9f022724a645caff6337741f0df3 \
sha256 60fc106b195b6716f1ebb3ca16b401692228c1a2a885da72111a93391fd12090 \
size 15348084
depends_lib port:perl${perl5.major} \
port:p${perl5.major}-dbd-mysql \
port:p${perl5.major}-dbi \
port:p${perl5.major}-term-readkey \
port:p${perl5.major}-time-hires
post-patch {
reinplace "s|#!/usr/bin/env *perl|#!${perl5.bin}|" {*}[glob ${worksrcpath}/bin/*]
}
post-destroot {
foreach f [glob -directory ${destroot}${prefix}/share/perl${perl5.major}/man/man1 -type f -tails *] {
ln -s ${prefix}/share/perl${perl5.major}/man/man1/${f} ${destroot}${prefix}/share/man/man1/${f}
}
}
livecheck.url https://www.percona.com/downloads/percona-toolkit/
livecheck.regex "<option value=\"percona-toolkit/(\[\\d.\]+)"