diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2020-11-25 22:39:15 +0000 |
commit | d934827bf44b7cfcf6711964418148fa60877668 (patch) | |
tree | 0625f358789b5e015e49db139cc1dbc9be00428f /dev-vcs/git-lfs/git-lfs-9999.ebuild | |
parent | 2e34d110f164bf74d55fced27fe0000201b3eec5 (diff) |
gentoo resync : 25.11.2020
Diffstat (limited to 'dev-vcs/git-lfs/git-lfs-9999.ebuild')
-rw-r--r-- | dev-vcs/git-lfs/git-lfs-9999.ebuild | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/dev-vcs/git-lfs/git-lfs-9999.ebuild b/dev-vcs/git-lfs/git-lfs-9999.ebuild index a48a6fe6e6c6..f5a948c8f4fd 100644 --- a/dev-vcs/git-lfs/git-lfs-9999.ebuild +++ b/dev-vcs/git-lfs/git-lfs-9999.ebuild @@ -13,7 +13,7 @@ if [[ "${PV}" = 9999* ]]; then inherit git-r3 else SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~amd64-linux ~x86-linux" + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" fi LICENSE="Apache-2.0 BSD BSD-2 BSD-4 ISC MIT" @@ -26,12 +26,13 @@ RDEPEND="dev-vcs/git" RESTRICT+=" !test? ( test )" src_compile() { - set -- go build \ - -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT}" \ - -mod vendor -v -work -x \ - -o git-lfs git-lfs.go - echo "$@" - "$@" || die + # Flags -w, -s: Omit debugging information to reduce binary size, + # see https://golang.org/cmd/link/. + local mygobuildargs=( + -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT} -s -w" + -mod vendor -v -work -x + ) + go build "${mygobuildargs[@]}" -o git-lfs git-lfs.go || die if use doc; then ronn docs/man/*.ronn || die "man building failed" @@ -45,12 +46,11 @@ src_install() { } src_test() { - set -- go test \ - -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT}" \ - -mod vendor \ - ./... - echo "$@" - "$@" || die + local mygotestargs=( + -ldflags="-X ${EGO_PN}/config.GitCommit=${GIT_COMMIT}" + -mod vendor + ) + go test "${mygotestargs[@]}" ./... || die } pkg_postinst () { |