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

name                    rust-legacy-bootstrap

maintainers             {@catap korins.ky:kirill} openmaintainer

# license CC0-1.0 (http://creativecommons.org/publicdomain/zero/1.0/)
license                 public-domain

github.setup            catap rust-legacy-bootstrap 96f9d8a72b2f62771d1723907ab8e4e061cae9a4
version                 20220210
revision                0

categories              lang devel
description             A series of patches which is required to bootstrap rust on legacy systems
long_description        {*}${description}

supported_archs         noarch

checksums               rmd160  daa46a172f19ebf2c58c903880157e80931341ad \
                        sha256  f25b4f1dc245c1dedc22c5c7c98683c8719ca6ff3229db49e02a1e3477001466 \
                        size    17138

configure               {}
build                   {}

destroot {
    xinstall -m 0755 -d ${destroot}${prefix}/share/${name}
    foreach f [glob ${worksrcpath}/*.patch] {
        xinstall -m 0644 $f ${destroot}${prefix}/share/${name}
    }
    xinstall -m 0644 -W ${worksrcpath} LICENSE README.md \
        ${destroot}${prefix}/share/${name}
}
