Files
Joshua Root 1c6fda06cf mail/*: set github.tarball_from explicitly
In preparation for changing the default.
2025-01-24 04:23:54 +11:00

48 lines
1.6 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 github 1.0
PortGroup python 1.0
github.setup quentinsf IMAPdedup cd6f29604942495c92dfa82301458d6f17ad6568
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from tarball
revision 0
name imapdedup
version 20230707
categories mail
license GPL-2
platforms {darwin any}
supported_archs noarch
description IMAP message de-duplicator
long_description IMAPdedup is a Python script (imapdedup.py) that looks for duplicate \
messages in a set of IMAP mailboxes and tidies up all but the first \
copy of any duplicates found.
maintainers nomaintainer
checksums rmd160 1a8256afc5c786d397910e99c4c977c1957c539f \
sha256 435d406e1a9529016729152587c3dc51f5f228c504b984bba39530a3db288fe5 \
size 17403
python.default_version 310
depends_run port:py${python.version}-keyring
post-patch {
reinplace "s#/usr/bin/env python3#${python.bin}#g" ${worksrcpath}/${name}.py
}
build {}
destroot {
xinstall -m 0755 ${worksrcpath}/${name}.py ${destroot}${prefix}/bin/${name}
xinstall -d ${destroot}${prefix}/share/${name}
xinstall -m 0644 ${worksrcpath}/README.md ${destroot}${prefix}/share/${name}
xinstall -m 0644 ${worksrcpath}/LICENCE.TXT ${destroot}${prefix}/share/${name}
}