Files

70 lines
2.2 KiB
Tcl
Raw Permalink Normal View History

2021-06-10 01:10:05 -04:00
# -*- 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 github 1.0
2021-06-10 11:46:31 +01:00
PortGroup makefile 1.0
PortGroup muniversal 1.0
2021-06-10 01:10:05 -04:00
2025-04-07 07:24:02 -04:00
github.setup sahib rmlint 2.10.3 v
2023-08-08 16:58:44 -04:00
github.tarball_from archive
revision 0
2021-06-10 01:10:05 -04:00
2023-08-08 16:58:44 -04:00
homepage https://rmlint.rtfd.org
2021-06-10 01:10:05 -04:00
description Extremely fast tool to remove duplicates and other \
lint from your filesystem
long_description {*}${description}. rmlint finds space waste and other \
broken things on your filesystem and offers to remove \
it.
2025-04-07 07:24:02 -04:00
checksums rmd160 ee1dfc50ed1ee099ed6d40c4724dec5694c2f0e6 \
sha256 8ffdbd5d09d15c8717ae55497e90d6fa46f085b45ac1056f2727076da180c33e \
size 2504233
2021-06-10 01:10:05 -04:00
categories sysutils
license GPL-3
maintainers {gmail.com:herby.gillot @herbygillot} \
openmaintainer
depends_build-append \
port:pkgconfig \
2023-08-08 16:58:44 -04:00
port:py311-sphinx \
2021-06-10 01:10:05 -04:00
port:scons
2021-06-10 11:46:31 +01:00
depends_lib-append path:lib/pkgconfig/glib-2.0.pc:glib2 \
port:json-glib
2021-06-10 01:10:05 -04:00
platform darwin {
if {${os.major} < 11} {
patchfiles-append patch-darwin-old.diff
}
}
2021-06-10 01:10:05 -04:00
build.cmd ${prefix}/bin/scons
2021-06-10 11:46:31 +01:00
build.args --prefix=${prefix} VERBOSE=1
2021-06-10 01:10:05 -04:00
build.target
2022-10-22 07:35:28 +08:00
# gcc-4.2 and Xcode clang of 10.6 fail to build it
compiler.blacklist-append *gcc-4* {clang < 421}
if {[variant_isset universal] && [info exists universal_archs_supported]} {
# Without this SCons builds a fake universal with a single arch
patchfiles-append patch-universal.diff
post-configure {
foreach arch ${universal_archs_supported} {
if {[file isfile ${worksrcpath}-${arch}/SConstruct]} {
reinplace "s|@ARCH@|${arch}|" ${worksrcpath}-${arch}/SConstruct
}
}
}
}
2021-06-10 01:10:05 -04:00
use_configure no
destroot {
2023-08-08 16:58:44 -04:00
xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
xinstall -m 0644 ${worksrcpath}/docs/_build/man/${name}.1 \
2021-06-10 01:10:05 -04:00
${destroot}${prefix}/share/man/man1/
}