# -*- 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           ruby 1.0

ruby.branches       3.3 3.2 3.1
ruby.setup          {aescrypt aes-rb} 0.1.0 extconf.rb {README \
                    aes-example.rb aes-test.rb aes-ecb-tbl.txt}
revision            1
maintainers         nomaintainer
description         An AES encryption algorithm for Ruby, using the AESCrypt library
long_description    An all-C (for performance) implementation of the AES \
                    encryption algorithm for Ruby, implementing ECB and \
                    CFB-128 modes
homepage            https://aescrypt.sourceforge.net
master_sites        ${homepage}
categories-append   crypto security
license             BSD Ruby
checksums           rmd160  111cc5139c89e36f2c4bb4098251a2ae4d93a4d1 \
                    sha256  4b53150f59eaae7083aa8274b4b798805383df999b0208ba58ac8bf59c617068 \
                    size    77170

if {${name} ne ${subport}} {
    patchfiles-append \
                    patch-aes.c patch-platform.h

    configure.args-append \
                    --with-cflags='-fms-extensions -Wno-incompatible-function-pointer-types -Wno-int-conversion'
}
