Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/drive/
Date: Tue, 11 Oct 2016 08:28:43
Message-Id: 1476174510.b25f3dcc4d99c76649237ec78d37666643d13a2f.zmedico@gentoo
1 commit: b25f3dcc4d99c76649237ec78d37666643d13a2f
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Tue Oct 11 08:27:18 2016 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Tue Oct 11 08:28:30 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b25f3dcc
7
8 net-misc/drive: version bump to 0.3.8.1
9
10 Package-Manager: portage-2.3.1
11
12 net-misc/drive/Manifest | 1 +
13 net-misc/drive/drive-0.3.8.1.ebuild | 116 ++++++++++++++++++++++++++++++++++++
14 2 files changed, 117 insertions(+)
15
16 diff --git a/net-misc/drive/Manifest b/net-misc/drive/Manifest
17 index ca1f5ec..919e011 100644
18 --- a/net-misc/drive/Manifest
19 +++ b/net-misc/drive/Manifest
20 @@ -7,6 +7,7 @@ DIST command-91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz 4078 SHA256 f7685aa
21 DIST crypto-5bcd134fee4dd1475da17714aac19c0aa0142e2f.tar.gz 1026950 SHA256 b2b8402c3c6ed054d92a8536ec5714351cae51759aefd02d9045c67fe72ca84e SHA512 16ac152933580cf60282e3787aef43156bfd92986e118a3d33a78dfd87c9ee795f4f60fd6e395bf58721f56269d6afd2abc2da13a775a00fe454e562d0a4db9c WHIRLPOOL e0b3f001713bb7d505c65878e008159165cf46581be435b9527652f9bf490b2fc02ae5f099b01c8f89d1334eddc16c74c7bf3b10f67fb31ebefdfa1d9b19617e
22 DIST drive-0.3.5.tar.gz 323960 SHA256 f5f0a45c60818526fa6fd7f25024d91425b4f2f9ed841d324ba89c794bc9cc3f SHA512 52890f117bd2065ca7fc1fcae96bfff46342bc17c9c4f5010f74b20bbe94220be5773126da654194257c5fd8a68bc48e2e447c970df84ee571f18f6263040816 WHIRLPOOL 0dd3489c61bab76266b1c3448b09b353860083b6a97aa607c2700bbb97873a6e75e4372f8141afd037c92f6f09b3b939af790a2689a08b89ab22550528f61581
23 DIST drive-0.3.6.tar.gz 327640 SHA256 b419926fa067c0e28aed0e812f041f084f36e9a649518cc8b821f2e084405486 SHA512 84958eaf0d6b67cb7ce0cb095c7809c6d3482187c3e11889aab0d9174ad12ee0ae28fb9a3ed987871349db1e64c9c8630bd33a9f632b333fd4005f827a9c2441 WHIRLPOOL 507f07989f7f68317e058ee7385fa0ebb6e2f4e248dc4dc23c153dc1c2630359f6c4f6890ca1211004a65aa9c2f9e6b68fae680952aac0165da3eca6e3f22d80
24 +DIST drive-0.3.8.1.tar.gz 328277 SHA256 dd978190385e306324be232519d8bec00154f4f331cf8a7580850e7634c964cf SHA512 d65e0993143dee7ba78c3edfaa613388efde59ca145477af000b8480e0acb5b93231f22b558ba97b7a3bb220063b1f4291dc63753d67de75cf06dbba726f9889 WHIRLPOOL 88784ab6fad94dd7a0fd332488c4a9583442be3d6f42691312c01c0d95eebbe4c0d8b0617c67116d9a5ffcc49a04e2cd14cad64c1df99e91e31ee8d3d6f7fff2
25 DIST exponential-backoff-96e25d36ae36ad09ac02cbfe653b44c4043a8e09.tar.gz 2188 SHA256 b2984a02ef1c5dfcc943172a39718d11ad1e4d242f8d717e60f86ab7e364575b SHA512 3bca870fc1e2b9920442ac8672f937e6a346ec5794e3acbd831b01d287e1bcc7c9cbbf1996766369e2ee65e886aced2e1a6d3274818d7b69b6ed13cbf4e5595e WHIRLPOOL c51cfca17b99a02a8f47656cdb39847f15bccd501c79ca293a0c647fae151dd898417c02f11f51d83dfa08268d8dc3c3f840bfa29e1943964587bf6b1f19508d
26 DIST extractor-801861aedb854c7ac5e1329e9713023e9dc2b4d4.tar.gz 1750 SHA256 1a52d0bcae0803bea4322ce8b9372ca1fefafbf13065cf9212cdea227b40e7fe SHA512 6cc47a2aa73357e6a6ca1f0fd0ae5750db1efe9f0eb966b654b670b14f672bf872310dd633a5530d8d0bc05c745f401ad2f3985e477706bb012b5477f2975856 WHIRLPOOL 27f15f47b2c5a9d09bced08fad6bc428b9ebf5bd2b8ce105f2c5ba867fbd59696870a2700d617e2fa22e3cdb6bb1f5f882c07e707b6487284d6068561fe63e46
27 DIST gcloud-golang-426f71cccabdf34d0fd67fc49e25038c8f49a0bb.tar.gz 269811 SHA256 bc524e0f3428bbe91e86f20db9eddd1bcca8014bda21ac43f62804937226d3b0 SHA512 5acb9bad1ace74f68589a14a485d94af9a30f68905b223767058bc968f317520cf111fea3bdd3dc9b349bebb95a39cfc566701cb7cac09ec2469292881a6bd0c WHIRLPOOL 0ee3df4366a20955a45de59f7064ffdb0550db242c1fa474fd81cc324036b9584e3d01246e8d2f570a18fd9e78c24deed517ac68f40735d5152a1aedd8265263
28
29 diff --git a/net-misc/drive/drive-0.3.8.1.ebuild b/net-misc/drive/drive-0.3.8.1.ebuild
30 new file mode 100644
31 index 00000000..acd96eb
32 --- /dev/null
33 +++ b/net-misc/drive/drive-0.3.8.1.ebuild
34 @@ -0,0 +1,116 @@
35 +# Copyright 1999-2016 Gentoo Foundation
36 +# Distributed under the terms of the GNU General Public License v2
37 +# $Id$
38 +
39 +EAPI=6
40 +inherit golang-build
41 +
42 +KEYWORDS="~amd64"
43 +EGO_PN="github.com/odeke-em/drive/..."
44 +EGIT_COMMIT="v${PV}"
45 +SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz
46 +https://github.com/GoogleCloudPlatform/gcloud-golang/archive/426f71cccabdf34d0fd67fc49e25038c8f49a0bb.tar.gz -> gcloud-golang-426f71cccabdf34d0fd67fc49e25038c8f49a0bb.tar.gz
47 +https://github.com/boltdb/bolt/archive/dfb21201d9270c1082d5fb0f07f500311ff72f18.tar.gz -> bolt-dfb21201d9270c1082d5fb0f07f500311ff72f18.tar.gz
48 +https://github.com/cheggaaa/pb/archive/c1f48d5ce4f292dfb775ef52aaedd15be323510d.tar.gz -> pb-c1f48d5ce4f292dfb775ef52aaedd15be323510d.tar.gz
49 +https://github.com/codegangsta/inject/archive/33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz -> inject-33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz
50 +https://github.com/go-martini/martini/archive/0c6ad5903d2bf9337762caa9c357247279c230c3.tar.gz -> martini-0c6ad5903d2bf9337762caa9c357247279c230c3.tar.gz
51 +https://github.com/golang/crypto/archive/5bcd134fee4dd1475da17714aac19c0aa0142e2f.tar.gz -> crypto-5bcd134fee4dd1475da17714aac19c0aa0142e2f.tar.gz
52 +https://github.com/golang/net/archive/0c607074acd38c5f23d1344dfe74c977464d1257.tar.gz -> net-0c607074acd38c5f23d1344dfe74c977464d1257.tar.gz
53 +https://github.com/golang/oauth2/archive/c406a4cc4ba462e5dc2f16225c5bd9488f9cbe10.tar.gz -> oauth2-c406a4cc4ba462e5dc2f16225c5bd9488f9cbe10.tar.gz
54 +https://github.com/google/google-api-go-client/archive/7059a7f3d456870ff1e8424a6b1f62abe5f95f36.tar.gz -> google-api-go-client-7059a7f3d456870ff1e8424a6b1f62abe5f95f36.tar.gz
55 +https://github.com/martini-contrib/binding/archive/8aaceec3b52c275477f32c95ea5c6e8ccaba04c5.tar.gz -> binding-8aaceec3b52c275477f32c95ea5c6e8ccaba04c5.tar.gz
56 +https://github.com/mattn/go-isatty/archive/56b76bdf51f7708750eac80fa38b952bb9f32639.tar.gz -> go-isatty-56b76bdf51f7708750eac80fa38b952bb9f32639.tar.gz
57 +https://github.com/odeke-em/cache/archive/baf8e436bc97557118cb0bf118ab8ac6aeeda381.tar.gz -> cache-baf8e436bc97557118cb0bf118ab8ac6aeeda381.tar.gz
58 +https://github.com/odeke-em/cli-spinner/archive/610063bb4aeef25f7645b3e6080456655ec0fb33.tar.gz -> cli-spinner-610063bb4aeef25f7645b3e6080456655ec0fb33.tar.gz
59 +https://github.com/odeke-em/command/archive/91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz -> command-91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz
60 +https://github.com/odeke-em/exponential-backoff/archive/96e25d36ae36ad09ac02cbfe653b44c4043a8e09.tar.gz -> exponential-backoff-96e25d36ae36ad09ac02cbfe653b44c4043a8e09.tar.gz
61 +https://github.com/odeke-em/extractor/archive/801861aedb854c7ac5e1329e9713023e9dc2b4d4.tar.gz -> extractor-801861aedb854c7ac5e1329e9713023e9dc2b4d4.tar.gz
62 +https://github.com/odeke-em/go-utils/archive/005c88c5a078d550187a80d9f90b3694223a920d.tar.gz -> go-utils-005c88c5a078d550187a80d9f90b3694223a920d.tar.gz
63 +https://github.com/odeke-em/go-uuid/archive/b211d769a9aaba5b2b8bdbab5de3c227116f3c39.tar.gz -> go-uuid-b211d769a9aaba5b2b8bdbab5de3c227116f3c39.tar.gz
64 +https://github.com/odeke-em/log/archive/cad53c4565a0b0304577bd13f3862350bdc5f907.tar.gz -> log-cad53c4565a0b0304577bd13f3862350bdc5f907.tar.gz
65 +https://github.com/odeke-em/meddler/archive/d2b51d2b40e786ab5f810d85e65b96404cf33570.tar.gz -> meddler-d2b51d2b40e786ab5f810d85e65b96404cf33570.tar.gz
66 +https://github.com/odeke-em/pretty-words/archive/9d37a7fcb4ae6f94b288d371938482994458cecb.tar.gz -> pretty-words-9d37a7fcb4ae6f94b288d371938482994458cecb.tar.gz
67 +https://github.com/odeke-em/ripper/archive/bd1a682568fcb8a480b977bb5851452fc04f9ccb.tar.gz -> ripper-bd1a682568fcb8a480b977bb5851452fc04f9ccb.tar.gz
68 +https://github.com/odeke-em/rsc/archive/6ad75e1e26192f3d140b6486deb99c9dbd289846.tar.gz -> rsc-6ad75e1e26192f3d140b6486deb99c9dbd289846.tar.gz
69 +https://github.com/odeke-em/semalim/archive/9c88bf5f9156ed06ec5110a705d41b8580fd96f7.tar.gz -> semalim-9c88bf5f9156ed06ec5110a705d41b8580fd96f7.tar.gz
70 +https://github.com/odeke-em/statos/archive/f27d6ab69b62abd9d9fe80d355e23a3e45d347d6.tar.gz -> statos-f27d6ab69b62abd9d9fe80d355e23a3e45d347d6.tar.gz
71 +https://github.com/skratchdot/open-golang/archive/75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz -> open-golang-75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz"
72 +DESCRIPTION="Google Drive client for the commandline"
73 +HOMEPAGE="https://${EGO_PN%/*}"
74 +LICENSE="Apache-2.0"
75 +SLOT="0/${PVR}"
76 +IUSE=""
77 +
78 +get_archive_go_package() {
79 + local archive=${1} uri x
80 + case ${archive} in
81 + oauth2-*) echo "oauth2-* golang.org/x/oauth2"; return;;
82 + google-api-go-client-*) echo "google-api-go-client-* google.golang.org/api"; return;;
83 + gcloud-golang-*) echo "gcloud-golang-* google.golang.org/cloud"; return;;
84 + net-*) echo "net-* golang.org/x/net"; return;;
85 + crypto-*) echo "crypto-* golang.org/x/crypto"; return;;
86 + esac
87 + for x in ${SRC_URI}; do
88 + if [[ ${x} == http* ]]; then
89 + uri=${x}
90 + elif [[ ${x} == ${archive} ]]; then
91 + break
92 + fi
93 + done
94 + uri=${uri#https://}
95 + uri=${uri%/archive/*}
96 + echo "${uri##*/}-* ${uri}"
97 +}
98 +
99 +unpack_go_packages() {
100 + local go_package pattern x
101 + # Unpack packages to appropriate locations for GOPATH
102 + for x in ${A}; do
103 + unpack ${x}
104 + if [[ ${x} == *.tar.gz ]]; then
105 + go_package=$(get_archive_go_package ${x})
106 + pattern=${go_package%% *}
107 + go_package=${go_package##* }
108 + if [[ ${x%.tar.gz} -ef ${S} ]]; then
109 + mv "${S}"{,_} || die
110 + mkdir -p "${S}/src/${go_package%/*}" || die
111 + mv "${S}"_ "${S}/src/${go_package}" || die || die
112 + else
113 + mkdir -p "${S}/src/${go_package%/*}" || die
114 + for x in ${pattern}; do
115 + if [[ ! ${x} -ef ${S} ]]; then
116 + mv "${x}" "${S}/src/${go_package}" || die
117 + fi
118 + done
119 + fi
120 + fi
121 + done
122 +}
123 +
124 +src_unpack() {
125 + unpack_go_packages
126 +}
127 +
128 +src_prepare() {
129 + default
130 + rm -rf "${S}/src/${EGO_PN%/*}/drive-gen/Godeps/_workspace" || die
131 +}
132 +
133 +src_compile() {
134 + GOPATH="${WORKDIR}/${P}" \
135 + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
136 +}
137 +
138 +src_install() {
139 + dodoc "${S}/src/${EGO_PN%/*}/README.md"
140 + golang_install_pkgs
141 +}
142 +
143 +golang_install_pkgs() {
144 + insopts -m0644 -p # preserve timestamps for bug 551486
145 + dobin "${S}/bin/drive"{,-server}
146 + insinto "$(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}")"
147 + doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}
148 + insinto "$(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")"
149 + doins -r "${S}"/src/${EGO_PN%/*}
150 +}