Files
guru/net-misc/dnsname/dnsname-1.3.0.ebuild
Randall T. Vasquez 79869b4693 net-misc/dnsname: fix DEPENDS on dnsname v1.3.0, v1.3.1, and v9999
This commits fixes the DEPENDS stanza and removes ~X86 from dnsname v1.3.0, v1.3.1, and v9999.

Signed-off-by: Randall T. Vasquez <ran.dall@icloud.com>
2022-05-21 19:54:48 -07:00

61 lines
1.3 KiB
Bash

# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
EGIT_COMMIT="dc59f285546a0b0d8b8f20033e1637ea82587840"
inherit go-module unpacker
DESCRIPTION="name resolution for containers"
HOMEPAGE="https://github.com/containers/dnsname"
if [[ ${PV} == *9999 ]]; then
inherit git-r3
EGIT_REPO_URI="https://github.com/containers/dnsname.git"
RESTRICT="fetch mirror test"
else
SRC_URI="https://github.com/containers/dnsname/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://github.com/ran-dall/portage-deps/blob/master/${P}-deps.tar.xz"
KEYWORDS="~amd64 ~arm64"
RESTRICT="mirror test"
S="${WORKDIR}"/${P}
fi
LICENSE="Apache-2.0"
SLOT="0"
DEPEND="
app-containers/podman
net-misc/cni-plugins
net-dns/dnsmasq
"
RDEPEND="${DEPEND}"
src_unpack() {
default
if [[ ${PV} == *9999 ]]; then
git-r3_fetch
git-r3_checkout
pushd ${P}/plugins/meta/dnsname || die "location change for module building failed"
ego get
popd || die "location reset from module building failed"
fi
}
src_compile() {
local git_commit=${EGIT_COMMIT}
export -n GOCACHE GOPATH XDG_CACHE_HOME
GOBIN="${S}/bin" \
emake all \
GIT_BRANCH=master \
GIT_BRANCH_CLEAN=master \
COMMIT_NO="${git_commit}" \
GIT_COMMIT="${git_commit}"
}
src_install() {
exeinto /opt/cni/bin
doexe bin/*
dodoc README.md
}