Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 538398 - net-misc/drive - Pull or push Google Drive files
Summary: net-misc/drive - Pull or push Google Drive files
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Default Assignee for New Packages
URL: https://github.com/odeke-em/drive
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-02-01 06:14 UTC by Joe Stroller
Modified: 2016-03-31 17:53 UTC (History)
7 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
drive-0.1.9.ebuild (drive-0.1.9.ebuild,702 bytes, text/plain)
2015-04-29 14:43 UTC, n4cer
Details
drive-0.1.9.ebuild - external dependencies (drive-0.1.9.ebuild,1.11 KB, text/plain)
2015-04-30 10:48 UTC, n4cer
Details
drive-0.2.4.ebuild - godeps included (drive-0.2.4.ebuild,1.07 KB, text/plain)
2015-06-12 10:36 UTC, n4cer
Details
drive-0.2.4.ebuild - godeps included (drive-0.2.4.ebuild,1.08 KB, text/plain)
2015-06-17 07:02 UTC, n4cer
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Stroller 2015-02-01 06:14:25 UTC
drive is a tiny program to pull or push Google Drive files.

drive was originally developed by Burcu Dogan while working on the Google Drive team. This repository contains the latest version of the code, as she is no longer able to maintain it.

Homepage: https://github.com/odeke-em/drive
Releases: https://github.com/odeke-em/drive/releases

Unlike insync (bug 449034), source for drive is available under an open-source license.

Reproducible: Always
Comment 1 Christoph Junghans (RETIRED) gentoo-dev 2015-04-26 16:25:17 UTC
ebuild anyone?
Comment 2 n4cer 2015-04-29 14:43:14 UTC
Created attachment 402228 [details]
drive-0.1.9.ebuild

first try
improvement suggestions are welcome
Comment 3 Christoph Junghans (RETIRED) gentoo-dev 2015-04-29 22:25:44 UTC
Comment on attachment 402228 [details]
drive-0.1.9.ebuild

># Copyright 1999-2015 Gentoo Foundation
....
>src_prepare() {
>	export GOPATH="${PWD}"
>
>	go get github.com/odeke-em/drive/cmd/drive
>	go get github.com/odeke-em/drive/config
Should these two directories already in the tarball?

>	go get github.com/rakyll/command
Should that one go into a separate ebuild?
Comment 4 n4cer 2015-04-30 08:47:19 UTC
this ebuild is more complicated than I first thought ...

you're right, cmd/drive and config are already in the tarball and have to be in the GOPATH, but then there are several other dependencies!

https://code.google.com/p/goauth2/oauth
https://github.com/cheggaaa/pb
https://github.com/mattn/go-isatty
https://github.com/odeke-em/cli-spinner
https://github.com/odeke-em/google-api-go-client/drive/v2
https://github.com/odeke-em/log
https://github.com/odeke-em/statos
https://github.com/odeke-em/xon/pkger/src
https://github.com/rakyll/command
Comment 5 n4cer 2015-04-30 10:48:58 UTC
Created attachment 402284 [details]
drive-0.1.9.ebuild - external dependencies

Do I have to write an ebuild for every library/tool that is used?
Comment 6 Pacho Ramos gentoo-dev 2015-05-20 09:13:50 UTC
Are you in contact with upstream? Maybe you could suggest him to make "richer" tarballs with some more needed stuff (at least the stuff coming from him) included
Comment 7 n4cer 2015-05-20 12:50:00 UTC
I opened an issue on github. https://github.com/odeke-em/drive/issues/206
Comment 8 n4cer 2015-06-12 10:36:20 UTC
Created attachment 405018 [details]
drive-0.2.4.ebuild - godeps included

Releases are including the dependencies now.
Comment 9 Robert G. Siebeck 2015-06-16 11:39:41 UTC
This ebuild only worked for me after I emerged dev-go/go-text, so maybe you should add this as a dependency?
Comment 10 n4cer 2015-06-17 07:01:51 UTC
You're right! golang.org/x/text is needed.
Comment 11 n4cer 2015-06-17 07:02:56 UTC
Created attachment 405266 [details]
drive-0.2.4.ebuild - godeps included

go-text dependency added
Comment 12 Joe Stroller 2015-06-19 05:51:40 UTC
The current ebuild works for me with drive-0.2.4. 

Have tested by uploading and downloading files.

Am very pleased with it. Thanks for your work, n4cer
Comment 13 areisp 2015-12-18 08:06:42 UTC
The ebuild doesnt work for me :'(

>>> Compiling source in /var/tmp/portage/net-misc/drive-0.2.4/work/drive-0.2.4 ...
../../src/github.com/odeke-em/drive/src/sort.go:18:2: cannot find package "golang.org/x/text/collate" in any of:
        /usr/lib/go/src/golang.org/x/text/collate (from $GOROOT)
        /var/tmp/portage/net-misc/drive-0.2.4/work/drive-0.2.4/src/golang.org/x/text/collate (from $GOPATH)
../../src/github.com/odeke-em/drive/src/sort.go:19:2: cannot find package "golang.org/x/text/language" in any of:
        /usr/lib/go/src/golang.org/x/text/language (from $GOROOT)
        /var/tmp/portage/net-misc/drive-0.2.4/work/drive-0.2.4/src/golang.org/x/text/language (from $GOPATH)
>>> Source compiled.
>>> Test phase [not enabled]: net-misc/drive-0.2.4

>>> Install drive-0.2.4 into /var/tmp/portage/net-misc/drive-0.2.4/image/ category net-misc
!!! dobin: cmd/drive/drive does not exist
Comment 14 bitick 2015-12-18 08:12:58 UTC
I have the same problem, looks like the go-text package sometime moved to /usr/lib/go-gentoo/ dir.
Comment 15 bitick 2015-12-28 08:15:54 UTC
Anyone new ebuild?
Comment 16 Joe Stroller 2016-03-31 12:33:05 UTC
Doot doot!

Close please: https://packages.gentoo.org/packages/net-misc/drive
Comment 17 Christoph Junghans (RETIRED) gentoo-dev 2016-03-31 17:53:10 UTC
commit f2ebd6535d66e0ba011c1a1beeb33df570dcff8d
Author: Zac Medico <zmedico@gentoo.org>
Date:   Mon Mar 21 02:22:31 2016 -0700

    net-misc/drive: new package

    Package-Manager: portage-2.2.28