# -*- 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          http-cookie 1.0.7 gem {} rubygems
license             MIT
platforms           any
supported_archs     noarch
categories-append   net
maintainers         nomaintainer
description         Library to handle HTTP Cookies based on RFC 6265
long_description    {*}${description}
homepage            https://github.com/sparklemotion/http-cookie
checksums           rmd160  cd440f012e8f134645d9c38b6f5b808093349b6e \
                    sha256  cb7a399f3344f720b8a0f3b0765f29b62608ebb9c3ce4abf4d6eeff2caf42253 \
                    size    40448

if {${name} ne ${subport}} {
    depends_run-append \
                    port:rb${ruby.suffix}-domain_name

    post-destroot {
        system -W ${destroot}${ruby.gemdir}/specifications \
            "/usr/bin/patch -p0 < ${filespath}/patch-gemspec-${ruby.branch}.diff"
    }
}
