diff options
Diffstat (limited to 'net-analyzer/amass/amass-9999.ebuild')
-rw-r--r-- | net-analyzer/amass/amass-9999.ebuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/net-analyzer/amass/amass-9999.ebuild b/net-analyzer/amass/amass-9999.ebuild index f868e67..50a1017 100644 --- a/net-analyzer/amass/amass-9999.ebuild +++ b/net-analyzer/amass/amass-9999.ebuild @@ -1,7 +1,7 @@ # Copyright 2019-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 EGO_PN="github.com/OWASP/Amass" @@ -13,18 +13,23 @@ if [[ ${PV} == *9999* ]]; then src_unpack() { git-r3_src_unpack - #go-module_live_vendor + go-module_live_vendor } else EGO_VER="v${PV}" - SRC_URI="https://${EGO_PN}/archive/${EGO_VER}.tar.gz -> ${P}.tar.gz" + #SRC_URI="https://${EGO_PN}/archive/${EGO_VER}.tar.gz -> ${P}.tar.gz" - #EGO_SUM=( - #) - #go-module_set_globals + #SRC_URI+="${EGO_SUM_SRC_URI}" + #S="${WORKDIR}/Amass-${PV}" + inherit git-r3 + EGIT_REPO_URI="https://${EGO_PN}.git" + EGIT_COMMIT="${EGO_VER}" + + src_unpack() { + git-r3_src_unpack + go-module_live_vendor + } - SRC_URI+="${EGO_SUM_SRC_URI}" - S="${WORKDIR}/Amass-${PV}" KEYWORDS="~amd64 ~x86 ~arm64 ~arm" fi @@ -42,9 +47,8 @@ src_compile() { local build_flags="$( echo ${EGO_BUILD_FLAGS} ) $( echo ${build_pie} )" set -- env \ - GOCACHE="${T}/go-cache" \ CGO_ENABLED=0 \ - go build -o "bin/${PN}" -mod=readonly -v -work -x ${build_flags} \ + go build -o "bin/${PN}" -mod=vendor -v -work -x ${build_flags} \ ./cmd/${PN} echo "$@" "$@" || die |