# -*- 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           codeberg 1.0
PortGroup           legacysupport 1.1

# strndup, getline
legacysupport.newest_darwin_requires_legacy 10

codeberg.setup      mlmmj mlmmj 1_4_7 RELEASE_

version             [string map {_ .} ${codeberg.version}]
categories          mail
license             MIT
maintainers         {@inucat proton.me:inucat} openmaintainer
description         A simple and slim mailing list manager
long_description    Mlmmj is a simple and slim mailing list manager (MLM) \
                    inspired by ezmlm. It works with many different Mail \
                    Transport Agents (MTAs) and is simple for a system \
                    adminstrator to install, configure and integrate with \
                    other software. As it uses very few resources, and \
                    requires no daemons, it is ideal for installation on \
                    systems where resources are limited, such as Virtual \
                    Private Servers (VPSes).

master_sites        https://codeberg.org/mlmmj/mlmmj/releases/download/${codeberg.tag_prefix}${codeberg.version}
distfiles           ${name}-${version}.tar.xz
checksums           rmd160  5ab071100c8391be26da65899ac398cc4b93f272 \
                    sha256  5ad42ac2867376c48133106f2e5b4768c266b89294b206762ca4c4bb219cf3d6 \
                    size    308224
use_xz              yes
configure.args      --disable-silent-rules \
                    --disable-tests
configure.libs      -liconv
depends_lib         port:libiconv

# Exclusion due to the following errors:
#   prepstdreply.c:113: error: redefinition of ‘struct __tllist___COUNTER__’
#   prepstdreply.c:115: error: redefinition of ‘struct __tllist___COUNTER__’
compiler.blacklist-append *gcc-4.0 *gcc-4.2
