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
ebuild anyone?
Created attachment 402228 [details] drive-0.1.9.ebuild first try improvement suggestions are welcome
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?
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
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?
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
I opened an issue on github. https://github.com/odeke-em/drive/issues/206
Created attachment 405018 [details] drive-0.2.4.ebuild - godeps included Releases are including the dependencies now.
This ebuild only worked for me after I emerged dev-go/go-text, so maybe you should add this as a dependency?
You're right! golang.org/x/text is needed.
Created attachment 405266 [details] drive-0.2.4.ebuild - godeps included go-text dependency added
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
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
I have the same problem, looks like the go-text package sometime moved to /usr/lib/go-gentoo/ dir.
Anyone new ebuild?
Doot doot! Close please: https://packages.gentoo.org/packages/net-misc/drive
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