commit:     edd86ebc72fa11f7cdd939a5ea9cd34bf4de22de
Author:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
AuthorDate: Tue Aug 30 03:42:57 2016 +0000
Commit:     Mike Gilbert <floppym <AT> gentoo <DOT> org>
CommitDate: Tue Aug 30 03:43:12 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=edd86ebc

app-admin/cli53: bump to 0.8.0

Package-Manager: portage-2.3.0_p22

 app-admin/cli53/Manifest                           |  1 +
 .../{cli53-9999.ebuild => cli53-0.8.0.ebuild}      | 11 +++++++---
 app-admin/cli53/cli53-9999.ebuild                  | 11 +++++++---
 app-admin/cli53/files/cli53-ldflags.patch          | 25 ++++++++++++++++++++++
 4 files changed, 42 insertions(+), 6 deletions(-)

diff --git a/app-admin/cli53/Manifest b/app-admin/cli53/Manifest
index ab55c97..6de28a3 100644
--- a/app-admin/cli53/Manifest
+++ b/app-admin/cli53/Manifest
@@ -1 +1,2 @@
 DIST cli53-0.7.4.tar.gz 3270107 SHA256 
3cb89e6aa91676ffd0577798a4b06b056667d18ad836de4fa31c0564ee48474e SHA512 
fb0fb7891dacf07b4a34861c6c93d8ab8c177710345cfb6d39feb56892d6b9fa8d39b1d933323a6649e3fefdb941cdc7d4940bbdb7040d41a99ea988c3b976fa
 WHIRLPOOL 
a62f999666215540afbd4bfbdc07366a772900520c21fb9e65dbcc7d7da6ea5c0354017c1ff1c1825ba84c777e7c1a07367ac521ce0aedaefe21ca2ec0c52871
+DIST cli53-0.8.0.tar.gz 4365177 SHA256 
0a87de05110d9bba851ba3522a1072494256e31fa653f59331313bff21d5c160 SHA512 
25094642796dfc13de470b20288b6e801437e826598414af9bbe65d6d1d0a76a5ada2dc4f732043e12d5a4e4b860f824381df04aeb847b0917414f9a3238432c
 WHIRLPOOL 
5e36e8c957f1e6876bbb1834452be1526b62da84dd4ee5ba6273f9ff259e3bcb71c746d5c990346abd8d5914e2ccb887b3e4840a07620abd4ce49dcca7dea79b

diff --git a/app-admin/cli53/cli53-9999.ebuild 
b/app-admin/cli53/cli53-0.8.0.ebuild
similarity index 81%
copy from app-admin/cli53/cli53-9999.ebuild
copy to app-admin/cli53/cli53-0.8.0.ebuild
index 834f3a3..6a58229 100644
--- a/app-admin/cli53/cli53-9999.ebuild
+++ b/app-admin/cli53/cli53-0.8.0.ebuild
@@ -21,16 +21,21 @@ SLOT="0"
 EGO_PN="github.com/barnybug/cli53"
 S="${WORKDIR}/${P}/src/${EGO_PN}"
 
+PATCHES=(
+       "${FILESDIR}"/cli53-ldflags.patch
+)
+
 src_compile() {
+       export GOPATH="${WORKDIR}/${P}"
        if [[ ${PV} == 9999 ]]; then
-               GOPATH="${WORKDIR}/${P}" emake build
+               emake build
        else
-               GOPATH="${WORKDIR}/${P}" emake build version=${PV}
+               emake build version=${PV}
        fi
 }
 
 src_test() {
-       GOPATH="${WORKDIR}/${P}" go test -v || die
+       go test -v || die
 }
 
 src_install() {

diff --git a/app-admin/cli53/cli53-9999.ebuild 
b/app-admin/cli53/cli53-9999.ebuild
index 834f3a3..6a58229 100644
--- a/app-admin/cli53/cli53-9999.ebuild
+++ b/app-admin/cli53/cli53-9999.ebuild
@@ -21,16 +21,21 @@ SLOT="0"
 EGO_PN="github.com/barnybug/cli53"
 S="${WORKDIR}/${P}/src/${EGO_PN}"
 
+PATCHES=(
+       "${FILESDIR}"/cli53-ldflags.patch
+)
+
 src_compile() {
+       export GOPATH="${WORKDIR}/${P}"
        if [[ ${PV} == 9999 ]]; then
-               GOPATH="${WORKDIR}/${P}" emake build
+               emake build
        else
-               GOPATH="${WORKDIR}/${P}" emake build version=${PV}
+               emake build version=${PV}
        fi
 }
 
 src_test() {
-       GOPATH="${WORKDIR}/${P}" go test -v || die
+       go test -v || die
 }
 
 src_install() {

diff --git a/app-admin/cli53/files/cli53-ldflags.patch 
b/app-admin/cli53/files/cli53-ldflags.patch
new file mode 100644
index 00000000..37987c5
--- /dev/null
+++ b/app-admin/cli53/files/cli53-ldflags.patch
@@ -0,0 +1,25 @@
+From 832a36db6cbb259146ba306ceece92cfa1f45038 Mon Sep 17 00:00:00 2001
+From: Mike Gilbert <flop...@gentoo.org>
+Date: Mon, 29 Aug 2016 23:31:59 -0400
+Subject: [PATCH] Don't strip debug symbols
+
+---
+ Makefile | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/Makefile b/Makefile
+index 546767c..5253982 100644
+--- a/Makefile
++++ b/Makefile
+@@ -2,7 +2,7 @@ export GO15VENDOREXPERIMENT=1
+ 
+ version := $(shell git describe --always --dirty)
+ exe = ./cmd/cli53
+-buildargs = -ldflags '-w -s -X github.com/barnybug/cli53.version=${version}'
++buildargs = -ldflags '-X github.com/barnybug/cli53.version=${version}'
+ 
+ .PHONY: all build install test coverage deps release
+ 
+-- 
+2.9.3
+

Reply via email to