# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
COMMIT="81b1373f17855a4dc21156cfe1694c31d7d1792e"
DESCRIPTION="Test and wait on the availability of a TCP host and port"
HOMEPAGE="https://github.com/vishnubob/wait-for-it"
SRC_URI="https://github.com/vishnubob/${PN}/archive/${COMMIT}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-${COMMIT}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
src_prepare() {
default
sed -i "1s:/.*:${EPREFIX}/bin/bash:" wait-for-it.sh || die
}
src_install() {
newbin wait-for-it{.sh,}
dodoc README.md
}