diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-10-11 01:27:18 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-10-11 01:28:30 -0700 |
commit | b25f3dcc4d99c76649237ec78d37666643d13a2f (patch) | |
tree | c5cd468c13b1b35aad6a6bce5545911fb102e30f /net-misc | |
parent | app-i18n/ibus-unikey: fix gcc-6 build err (diff) | |
download | gentoo-b25f3dcc4d99c76649237ec78d37666643d13a2f.tar.gz gentoo-b25f3dcc4d99c76649237ec78d37666643d13a2f.tar.bz2 gentoo-b25f3dcc4d99c76649237ec78d37666643d13a2f.zip |
net-misc/drive: version bump to 0.3.8.1
Package-Manager: portage-2.3.1
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/drive/Manifest | 1 | ||||
-rw-r--r-- | net-misc/drive/drive-0.3.8.1.ebuild | 116 |
2 files changed, 117 insertions, 0 deletions
diff --git a/net-misc/drive/Manifest b/net-misc/drive/Manifest index ca1f5ec502fb..919e011bd40c 100644 --- a/net-misc/drive/Manifest +++ b/net-misc/drive/Manifest @@ -7,6 +7,7 @@ DIST command-91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz 4078 SHA256 f7685aa DIST crypto-5bcd134fee4dd1475da17714aac19c0aa0142e2f.tar.gz 1026950 SHA256 b2b8402c3c6ed054d92a8536ec5714351cae51759aefd02d9045c67fe72ca84e SHA512 16ac152933580cf60282e3787aef43156bfd92986e118a3d33a78dfd87c9ee795f4f60fd6e395bf58721f56269d6afd2abc2da13a775a00fe454e562d0a4db9c WHIRLPOOL e0b3f001713bb7d505c65878e008159165cf46581be435b9527652f9bf490b2fc02ae5f099b01c8f89d1334eddc16c74c7bf3b10f67fb31ebefdfa1d9b19617e DIST drive-0.3.5.tar.gz 323960 SHA256 f5f0a45c60818526fa6fd7f25024d91425b4f2f9ed841d324ba89c794bc9cc3f SHA512 52890f117bd2065ca7fc1fcae96bfff46342bc17c9c4f5010f74b20bbe94220be5773126da654194257c5fd8a68bc48e2e447c970df84ee571f18f6263040816 WHIRLPOOL 0dd3489c61bab76266b1c3448b09b353860083b6a97aa607c2700bbb97873a6e75e4372f8141afd037c92f6f09b3b939af790a2689a08b89ab22550528f61581 DIST drive-0.3.6.tar.gz 327640 SHA256 b419926fa067c0e28aed0e812f041f084f36e9a649518cc8b821f2e084405486 SHA512 84958eaf0d6b67cb7ce0cb095c7809c6d3482187c3e11889aab0d9174ad12ee0ae28fb9a3ed987871349db1e64c9c8630bd33a9f632b333fd4005f827a9c2441 WHIRLPOOL 507f07989f7f68317e058ee7385fa0ebb6e2f4e248dc4dc23c153dc1c2630359f6c4f6890ca1211004a65aa9c2f9e6b68fae680952aac0165da3eca6e3f22d80 +DIST drive-0.3.8.1.tar.gz 328277 SHA256 dd978190385e306324be232519d8bec00154f4f331cf8a7580850e7634c964cf SHA512 d65e0993143dee7ba78c3edfaa613388efde59ca145477af000b8480e0acb5b93231f22b558ba97b7a3bb220063b1f4291dc63753d67de75cf06dbba726f9889 WHIRLPOOL 88784ab6fad94dd7a0fd332488c4a9583442be3d6f42691312c01c0d95eebbe4c0d8b0617c67116d9a5ffcc49a04e2cd14cad64c1df99e91e31ee8d3d6f7fff2 DIST exponential-backoff-96e25d36ae36ad09ac02cbfe653b44c4043a8e09.tar.gz 2188 SHA256 b2984a02ef1c5dfcc943172a39718d11ad1e4d242f8d717e60f86ab7e364575b SHA512 3bca870fc1e2b9920442ac8672f937e6a346ec5794e3acbd831b01d287e1bcc7c9cbbf1996766369e2ee65e886aced2e1a6d3274818d7b69b6ed13cbf4e5595e WHIRLPOOL c51cfca17b99a02a8f47656cdb39847f15bccd501c79ca293a0c647fae151dd898417c02f11f51d83dfa08268d8dc3c3f840bfa29e1943964587bf6b1f19508d DIST extractor-801861aedb854c7ac5e1329e9713023e9dc2b4d4.tar.gz 1750 SHA256 1a52d0bcae0803bea4322ce8b9372ca1fefafbf13065cf9212cdea227b40e7fe SHA512 6cc47a2aa73357e6a6ca1f0fd0ae5750db1efe9f0eb966b654b670b14f672bf872310dd633a5530d8d0bc05c745f401ad2f3985e477706bb012b5477f2975856 WHIRLPOOL 27f15f47b2c5a9d09bced08fad6bc428b9ebf5bd2b8ce105f2c5ba867fbd59696870a2700d617e2fa22e3cdb6bb1f5f882c07e707b6487284d6068561fe63e46 DIST gcloud-golang-426f71cccabdf34d0fd67fc49e25038c8f49a0bb.tar.gz 269811 SHA256 bc524e0f3428bbe91e86f20db9eddd1bcca8014bda21ac43f62804937226d3b0 SHA512 5acb9bad1ace74f68589a14a485d94af9a30f68905b223767058bc968f317520cf111fea3bdd3dc9b349bebb95a39cfc566701cb7cac09ec2469292881a6bd0c WHIRLPOOL 0ee3df4366a20955a45de59f7064ffdb0550db242c1fa474fd81cc324036b9584e3d01246e8d2f570a18fd9e78c24deed517ac68f40735d5152a1aedd8265263 diff --git a/net-misc/drive/drive-0.3.8.1.ebuild b/net-misc/drive/drive-0.3.8.1.ebuild new file mode 100644 index 000000000000..acd96eb39396 --- /dev/null +++ b/net-misc/drive/drive-0.3.8.1.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +inherit golang-build + +KEYWORDS="~amd64" +EGO_PN="github.com/odeke-em/drive/..." +EGIT_COMMIT="v${PV}" +SRC_URI="https://${EGO_PN%/*}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz +https://github.com/GoogleCloudPlatform/gcloud-golang/archive/426f71cccabdf34d0fd67fc49e25038c8f49a0bb.tar.gz -> gcloud-golang-426f71cccabdf34d0fd67fc49e25038c8f49a0bb.tar.gz +https://github.com/boltdb/bolt/archive/dfb21201d9270c1082d5fb0f07f500311ff72f18.tar.gz -> bolt-dfb21201d9270c1082d5fb0f07f500311ff72f18.tar.gz +https://github.com/cheggaaa/pb/archive/c1f48d5ce4f292dfb775ef52aaedd15be323510d.tar.gz -> pb-c1f48d5ce4f292dfb775ef52aaedd15be323510d.tar.gz +https://github.com/codegangsta/inject/archive/33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz -> inject-33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz +https://github.com/go-martini/martini/archive/0c6ad5903d2bf9337762caa9c357247279c230c3.tar.gz -> martini-0c6ad5903d2bf9337762caa9c357247279c230c3.tar.gz +https://github.com/golang/crypto/archive/5bcd134fee4dd1475da17714aac19c0aa0142e2f.tar.gz -> crypto-5bcd134fee4dd1475da17714aac19c0aa0142e2f.tar.gz +https://github.com/golang/net/archive/0c607074acd38c5f23d1344dfe74c977464d1257.tar.gz -> net-0c607074acd38c5f23d1344dfe74c977464d1257.tar.gz +https://github.com/golang/oauth2/archive/c406a4cc4ba462e5dc2f16225c5bd9488f9cbe10.tar.gz -> oauth2-c406a4cc4ba462e5dc2f16225c5bd9488f9cbe10.tar.gz +https://github.com/google/google-api-go-client/archive/7059a7f3d456870ff1e8424a6b1f62abe5f95f36.tar.gz -> google-api-go-client-7059a7f3d456870ff1e8424a6b1f62abe5f95f36.tar.gz +https://github.com/martini-contrib/binding/archive/8aaceec3b52c275477f32c95ea5c6e8ccaba04c5.tar.gz -> binding-8aaceec3b52c275477f32c95ea5c6e8ccaba04c5.tar.gz +https://github.com/mattn/go-isatty/archive/56b76bdf51f7708750eac80fa38b952bb9f32639.tar.gz -> go-isatty-56b76bdf51f7708750eac80fa38b952bb9f32639.tar.gz +https://github.com/odeke-em/cache/archive/baf8e436bc97557118cb0bf118ab8ac6aeeda381.tar.gz -> cache-baf8e436bc97557118cb0bf118ab8ac6aeeda381.tar.gz +https://github.com/odeke-em/cli-spinner/archive/610063bb4aeef25f7645b3e6080456655ec0fb33.tar.gz -> cli-spinner-610063bb4aeef25f7645b3e6080456655ec0fb33.tar.gz +https://github.com/odeke-em/command/archive/91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz -> command-91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz +https://github.com/odeke-em/exponential-backoff/archive/96e25d36ae36ad09ac02cbfe653b44c4043a8e09.tar.gz -> exponential-backoff-96e25d36ae36ad09ac02cbfe653b44c4043a8e09.tar.gz +https://github.com/odeke-em/extractor/archive/801861aedb854c7ac5e1329e9713023e9dc2b4d4.tar.gz -> extractor-801861aedb854c7ac5e1329e9713023e9dc2b4d4.tar.gz +https://github.com/odeke-em/go-utils/archive/005c88c5a078d550187a80d9f90b3694223a920d.tar.gz -> go-utils-005c88c5a078d550187a80d9f90b3694223a920d.tar.gz +https://github.com/odeke-em/go-uuid/archive/b211d769a9aaba5b2b8bdbab5de3c227116f3c39.tar.gz -> go-uuid-b211d769a9aaba5b2b8bdbab5de3c227116f3c39.tar.gz +https://github.com/odeke-em/log/archive/cad53c4565a0b0304577bd13f3862350bdc5f907.tar.gz -> log-cad53c4565a0b0304577bd13f3862350bdc5f907.tar.gz +https://github.com/odeke-em/meddler/archive/d2b51d2b40e786ab5f810d85e65b96404cf33570.tar.gz -> meddler-d2b51d2b40e786ab5f810d85e65b96404cf33570.tar.gz +https://github.com/odeke-em/pretty-words/archive/9d37a7fcb4ae6f94b288d371938482994458cecb.tar.gz -> pretty-words-9d37a7fcb4ae6f94b288d371938482994458cecb.tar.gz +https://github.com/odeke-em/ripper/archive/bd1a682568fcb8a480b977bb5851452fc04f9ccb.tar.gz -> ripper-bd1a682568fcb8a480b977bb5851452fc04f9ccb.tar.gz +https://github.com/odeke-em/rsc/archive/6ad75e1e26192f3d140b6486deb99c9dbd289846.tar.gz -> rsc-6ad75e1e26192f3d140b6486deb99c9dbd289846.tar.gz +https://github.com/odeke-em/semalim/archive/9c88bf5f9156ed06ec5110a705d41b8580fd96f7.tar.gz -> semalim-9c88bf5f9156ed06ec5110a705d41b8580fd96f7.tar.gz +https://github.com/odeke-em/statos/archive/f27d6ab69b62abd9d9fe80d355e23a3e45d347d6.tar.gz -> statos-f27d6ab69b62abd9d9fe80d355e23a3e45d347d6.tar.gz +https://github.com/skratchdot/open-golang/archive/75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz -> open-golang-75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz" +DESCRIPTION="Google Drive client for the commandline" +HOMEPAGE="https://${EGO_PN%/*}" +LICENSE="Apache-2.0" +SLOT="0/${PVR}" +IUSE="" + +get_archive_go_package() { + local archive=${1} uri x + case ${archive} in + oauth2-*) echo "oauth2-* golang.org/x/oauth2"; return;; + google-api-go-client-*) echo "google-api-go-client-* google.golang.org/api"; return;; + gcloud-golang-*) echo "gcloud-golang-* google.golang.org/cloud"; return;; + net-*) echo "net-* golang.org/x/net"; return;; + crypto-*) echo "crypto-* golang.org/x/crypto"; return;; + esac + for x in ${SRC_URI}; do + if [[ ${x} == http* ]]; then + uri=${x} + elif [[ ${x} == ${archive} ]]; then + break + fi + done + uri=${uri#https://} + uri=${uri%/archive/*} + echo "${uri##*/}-* ${uri}" +} + +unpack_go_packages() { + local go_package pattern x + # Unpack packages to appropriate locations for GOPATH + for x in ${A}; do + unpack ${x} + if [[ ${x} == *.tar.gz ]]; then + go_package=$(get_archive_go_package ${x}) + pattern=${go_package%% *} + go_package=${go_package##* } + if [[ ${x%.tar.gz} -ef ${S} ]]; then + mv "${S}"{,_} || die + mkdir -p "${S}/src/${go_package%/*}" || die + mv "${S}"_ "${S}/src/${go_package}" || die || die + else + mkdir -p "${S}/src/${go_package%/*}" || die + for x in ${pattern}; do + if [[ ! ${x} -ef ${S} ]]; then + mv "${x}" "${S}/src/${go_package}" || die + fi + done + fi + fi + done +} + +src_unpack() { + unpack_go_packages +} + +src_prepare() { + default + rm -rf "${S}/src/${EGO_PN%/*}/drive-gen/Godeps/_workspace" || die +} + +src_compile() { + GOPATH="${WORKDIR}/${P}" \ + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die +} + +src_install() { + dodoc "${S}/src/${EGO_PN%/*}/README.md" + golang_install_pkgs +} + +golang_install_pkgs() { + insopts -m0644 -p # preserve timestamps for bug 551486 + dobin "${S}/bin/drive"{,-server} + insinto "$(dirname "${EPREFIX}$(get_golibdir)/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*}")" + doins -r "${S}"/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_PN%/*} + insinto "$(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}")" + doins -r "${S}"/src/${EGO_PN%/*} +} |