diff --git a/app-shells/antibody/antibody-6.1.1-r1.ebuild b/app-shells/antibody/antibody-6.1.1-r1.ebuild index 70fdaf8f48..9c65147e79 100644 --- a/app-shells/antibody/antibody-6.1.1-r1.ebuild +++ b/app-shells/antibody/antibody-6.1.1-r1.ebuild @@ -52,11 +52,19 @@ SRC_URI=" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64" +IUSE="test" +RESTRICT="!test? ( test )" RDEPEND="dev-vcs/git" PATCHES=( "${FILESDIR}/${PN}-6.1.1_remove-failing-tests.patch" ) +src_configure() { + if use test; then + GOFLAGS="${GOFLAGS/-buildmode=pie/-buildmode=exe}" # bug 893190 + fi +} + src_compile() { local -a mygoargs=( -ldflags "-X main.version=${PV}"