net-dns/dnscrypt-proxy: sync live ebuild
authorGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 14 Mar 2019 02:29:43 +0000 (19:29 -0700)
committerGeorgy Yakovlev <gyakovlev@gentoo.org>
Thu, 14 Mar 2019 02:29:43 +0000 (19:29 -0700)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
net-dns/dnscrypt-proxy/dnscrypt-proxy-9999.ebuild

index 46f88908c5f887a793115106ea6ed81beb73ff5b..419d40281c6969a877f7a631a52cea171f89a630 100644 (file)
@@ -22,6 +22,8 @@ LICENSE="ISC"
 SLOT="0"
 IUSE="pie"
 
+DEPEND=">=dev-lang/go-1.12"
+
 FILECAPS=( cap_net_bind_service+ep usr/bin/dnscrypt-proxy )
 PATCHES=( "${FILESDIR}"/config-full-paths-r10.patch )
 
@@ -34,6 +36,8 @@ src_prepare() {
        default
        # Create directory structure suitable for building
        mkdir -p "src/${EGO_PN%/*}" || die
+       # fixes $GOPATH/go.mod exists but should not
+       rm go.mod || die
        mv "${PN}" "src/${EGO_PN}" || die
        mv "vendor" "src/" || die
 }