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, 02 Jul 2017 14:16:22
Message-Id: 1499004942.e9ab2b8003fcc58e9ba8708cfab804f856490f4e.mudler@gentoo
1 commit: e9ab2b8003fcc58e9ba8708cfab804f856490f4e
2 Author: Ettore Di Giacinto <mudler <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 2 13:59:44 2017 +0000
4 Commit: Ettore Di Giacinto <mudler <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 2 14:15:42 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e9ab2b80
7
8 dev-vcs/git-lfs: Bump version to 2.2.0
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.2
11
12 dev-vcs/git-lfs/Manifest | 1 +
13 dev-vcs/git-lfs/git-lfs-2.2.0.ebuild | 47 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 48 insertions(+)
15
16 diff --git a/dev-vcs/git-lfs/Manifest b/dev-vcs/git-lfs/Manifest
17 index 96ecdbc6149..81c50f32bf2 100644
18 --- a/dev-vcs/git-lfs/Manifest
19 +++ b/dev-vcs/git-lfs/Manifest
20 @@ -1,2 +1,3 @@
21 DIST git-lfs-1.5.6.tar.gz 604139 SHA256 4efbc806cde1ea6ab4e1d61db3e1f6939796fd53bf6e9c94ac564610147ea5cd SHA512 f5f2da9ac44647335b25cad3104027cf5476e25ef9763019744123f9e1ef81edadbf5b08a146b8070487b32a18aa202c799f910aee6f2f0144ca411ad6d7cfd2 WHIRLPOOL 2f785abffc917a322fe59f4354980d5f565572620569b9b53e85ecdf84b5d7ad407ced8853c897814daa816cac6efd1f85c9098cae9fe48b179cd3381c5f840d
22 DIST git-lfs-2.1.1.tar.gz 649611 SHA256 655c1e9bf931afb958c2b81de5c1c38b3ebd6831a04ca5fdcf58cba05e2948d8 SHA512 9061cb9fdf93a0c119d5762ceebdbc0573491dedb1815512e7eae9da54574087c1e499ea97ba0a87d7356499314beb53d60d1800b5c85983ef835dae37e7dd84 WHIRLPOOL 0cfbb0912314ca1afbb426b73521c136d35d2da37ee71cc5a952b17ed0bc92b7706483923f2a701f0bfef1407c34b3f4f5f85f97a655efb7f4d3caf615a0c380
23 +DIST git-lfs-2.2.0.tar.gz 713863 SHA256 d2a30b2e77510d0dc6a050f814909325879d9d8c7dde9eb5664486abdd0411e5 SHA512 2fa2136b933576aefbc2f9fab84c4f7d990b94f96129a9d02085aff397abb8e7a614747a656803e52ccb5fda4e17fcb685c4501fc81855953132efd010e54341 WHIRLPOOL a720601be197a2840cc36dadf469e1828bb69019e1b9287ee2497b46bafad111ca027c53186d17d36be3ee2f6f62a14bff41e08ca2abe890aa5708d98b57d4e8
24
25 diff --git a/dev-vcs/git-lfs/git-lfs-2.2.0.ebuild b/dev-vcs/git-lfs/git-lfs-2.2.0.ebuild
26 new file mode 100644
27 index 00000000000..7a32ca36cc9
28 --- /dev/null
29 +++ b/dev-vcs/git-lfs/git-lfs-2.2.0.ebuild
30 @@ -0,0 +1,47 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +EGO_PN="github.com/git-lfs/${PN}"
37 +
38 +if [[ ${PV} == *9999 ]]; then
39 + inherit golang-vcs
40 +else
41 + SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
42 + KEYWORDS="~amd64"
43 + inherit golang-vcs-snapshot
44 +fi
45 +
46 +DESCRIPTION="command line extension and specification for managing large files with Git"
47 +HOMEPAGE="https://git-lfs.github.com/"
48 +
49 +LICENSE="MIT BSD BSD-2 BSD-4 Apache-2.0"
50 +SLOT="0"
51 +IUSE="+doc"
52 +
53 +# since version 2.0.2 git-lfs uses time.Until that was introduced in golang >=1.8
54 +# https://github.com/golang/go/commit/67ea710792eabdae1182e2bf4845f512136cccce
55 +DEPEND=">=dev-lang/go-1.8.1:=
56 + doc? ( app-text/ronn )"
57 +
58 +RDEPEND="dev-vcs/git"
59 +
60 +S="${WORKDIR}/${P}/src/${EGO_PN}"
61 +
62 +src_compile() {
63 + # can't use golang-build_src_compile for go generate
64 + # and others steps executed by build.go
65 + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
66 + go run script/*.go -cmd build || die "build failed"
67 +
68 + if use doc; then
69 + ronn docs/man/*.ronn || die "man building failed"
70 + fi
71 +}
72 +
73 +src_install() {
74 + dobin bin/git-lfs
75 +
76 + use doc && doman docs/man/*.1
77 +}