Gentoo Archives: gentoo-commits

From: Ettore Di Giacinto <mudler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-vcs/git-lfs/
Date: Sun, 23 Sep 2018 11:27:01
Message-Id: 1537701888.df8729934c545eb419da3f847d41cb760191a67f.mudler@gentoo
1 commit: df8729934c545eb419da3f847d41cb760191a67f
2 Author: Jeffrey Lin <jeffrey <AT> icurse <DOT> nl>
3 AuthorDate: Sun Sep 16 16:45:34 2018 +0000
4 Commit: Ettore Di Giacinto <mudler <AT> gentoo <DOT> org>
5 CommitDate: Sun Sep 23 11:24:48 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=df872993
7
8 dev-vcs/git-lfs: update 9999
9
10 Signed-off-by: Jeffrey Lin <jeffrey <AT> icurse.nl>
11 Package-Manager: Portage-2.3.49, Repoman-2.3.10
12 Signed-off-by: Ettore Di Giacinto <mudler <AT> gentoo.org>
13
14 dev-vcs/git-lfs/git-lfs-9999.ebuild | 22 +++++++---------------
15 1 file changed, 7 insertions(+), 15 deletions(-)
16
17 diff --git a/dev-vcs/git-lfs/git-lfs-9999.ebuild b/dev-vcs/git-lfs/git-lfs-9999.ebuild
18 index 7a32ca36cc9..90878f67a22 100644
19 --- a/dev-vcs/git-lfs/git-lfs-9999.ebuild
20 +++ b/dev-vcs/git-lfs/git-lfs-9999.ebuild
21 @@ -1,16 +1,16 @@
22 -# Copyright 1999-2017 Gentoo Foundation
23 +# Copyright 1999-2018 Gentoo Foundation
24 # Distributed under the terms of the GNU General Public License v2
25
26 EAPI=6
27
28 -EGO_PN="github.com/git-lfs/${PN}"
29 +EGO_PN="github.com/${PN}/${PN}"
30
31 if [[ ${PV} == *9999 ]]; then
32 - inherit golang-vcs
33 + inherit golang-build golang-vcs
34 else
35 SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
36 KEYWORDS="~amd64"
37 - inherit golang-vcs-snapshot
38 + inherit golang-build golang-vcs-snapshot
39 fi
40
41 DESCRIPTION="command line extension and specification for managing large files with Git"
42 @@ -20,20 +20,13 @@ LICENSE="MIT BSD BSD-2 BSD-4 Apache-2.0"
43 SLOT="0"
44 IUSE="+doc"
45
46 -# since version 2.0.2 git-lfs uses time.Until that was introduced in golang >=1.8
47 -# https://github.com/golang/go/commit/67ea710792eabdae1182e2bf4845f512136cccce
48 -DEPEND=">=dev-lang/go-1.8.1:=
49 - doc? ( app-text/ronn )"
50 -
51 +DEPEND="doc? ( app-text/ronn )"
52 RDEPEND="dev-vcs/git"
53
54 S="${WORKDIR}/${P}/src/${EGO_PN}"
55
56 src_compile() {
57 - # can't use golang-build_src_compile for go generate
58 - # and others steps executed by build.go
59 - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
60 - go run script/*.go -cmd build || die "build failed"
61 + golang-build_src_compile
62
63 if use doc; then
64 ronn docs/man/*.ronn || die "man building failed"
65 @@ -41,7 +34,6 @@ src_compile() {
66 }
67
68 src_install() {
69 - dobin bin/git-lfs
70 -
71 + dobin git-lfs
72 use doc && doman docs/man/*.1
73 }