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

github.setup            linux-noah noahstrap 2.0.0
revision                0
checksums               rmd160  80471dd6693ed06406dfc34f29fcbc70f1fac1b9 \
                        sha256  16213a3069418ca722c14bac8f92a905ee943b5827c5b4a78c3a7e8c3814733f \
                        size    1940

categories              emulators
maintainers             nomaintainer
platforms               any
# The project does not indicate its license. The source contains a
# Portfile that claims to be under these licenses, but the Portfile was
# clearly copied from noah and then modified. Request for clarification:
# https://github.com/linux-noah/noahstrap/issues/2
license                 {MIT GPL-2+}
supported_archs         noarch

description             bootstrap a Linux ABI implementation for macOS

long_description        noahstrap bootstraps a Linux system for noah

github.tarball_from     archive

depends_run             port:gnutar \
                        port:pv

patchfiles              noahstrap.patch

post-patch {
    reinplace "s|@PREFIX@|${prefix}|g" ${worksrcpath}/noahstrap
}

use_configure           no

build {}

# Request for DESTDIR support:
# https://github.com/linux-noah/noahstrap/issues/3
destroot.destdir        PREFIX=${destroot}${prefix}
