app-admin/serf: avoid zip dependency for bug 606926
authorZac Medico <zmedico@gentoo.org>
Mon, 23 Jan 2017 16:37:54 +0000 (08:37 -0800)
committerZac Medico <zmedico@gentoo.org>
Mon, 23 Jan 2017 16:40:19 +0000 (08:40 -0800)
Package-Manager: Portage-2.3.3, Repoman-2.3.1

app-admin/serf/serf-0.8.0.ebuild

index a28a2255bab381ec6819d04f3eeb96daa92c6775..a8b7fc5d3a8b04f26fc1f7165cb67767e2487c27 100644 (file)
@@ -78,8 +78,11 @@ src_prepare() {
 src_compile() {
        export GOPATH="${S}"
        go install -v -work -x ${EGO_BUILD_FLAGS} "github.com/mitchellh/gox/..." || die
-       PATH=${PATH}:${S}/bin XC_ARCH=$(go env GOARCH) XC_OS=$(go env GOOS) \
-               emake -C "${S}/src/${EGO_PN}" bin
+       # The dev target sets causes build.sh to set appropriate XC_OS
+       # and XC_ARCH, and skips generation of an unused zip file,
+       # avoiding a dependency on app-arch/zip.
+       PATH=${PATH}:${S}/bin \
+               emake -C "${S}/src/${EGO_PN}" dev
 }
 
 src_install() {