diff options
author | Zac Medico <zmedico@gentoo.org> | 2016-03-21 02:22:31 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2016-03-21 02:23:27 -0700 |
commit | f2ebd6535d66e0ba011c1a1beeb33df570dcff8d (patch) | |
tree | 0bbc851fecbea78e9d128592fd689da2cc9c3cba /net-misc/drive | |
parent | app-misc/pwsafe: revbump to vn. 0.2.0-r3 (diff) | |
download | gentoo-f2ebd6535d66e0ba011c1a1beeb33df570dcff8d.tar.gz gentoo-f2ebd6535d66e0ba011c1a1beeb33df570dcff8d.tar.bz2 gentoo-f2ebd6535d66e0ba011c1a1beeb33df570dcff8d.zip |
net-misc/drive: new package
Package-Manager: portage-2.2.28
Diffstat (limited to 'net-misc/drive')
-rw-r--r-- | net-misc/drive/Manifest | 25 | ||||
-rw-r--r-- | net-misc/drive/drive-0.3.5.ebuild | 112 | ||||
-rw-r--r-- | net-misc/drive/metadata.xml | 11 |
3 files changed, 148 insertions, 0 deletions
diff --git a/net-misc/drive/Manifest b/net-misc/drive/Manifest new file mode 100644 index 000000000000..4c5b72a1958b --- /dev/null +++ b/net-misc/drive/Manifest @@ -0,0 +1,25 @@ +DIST binding-8aaceec3b52c275477f32c95ea5c6e8ccaba04c5.tar.gz 16506 SHA256 2aad0204bd7062c3da2bb30af443b2fffd8331756deeab93ec1734be8a96bceb SHA512 a549d1f5f28be195153bd1a34ecacb42b6cb82477d5fa8cf2ee62b44ec9c34e4e6858659fafca8c85a25f914c4514116b16861d846b509302d6511fabae0711f WHIRLPOOL e3b34ce3294614e0c76594f0c4a6a69aa2a339f5e6aae0d96c88ee8865e471122e56dcdc2432cd32e01e468858008fb0c6dd8eb5b23717793872584be41f7902 +DIST bolt-2f846c3551b76d7710f159be840d66c3d064abbe.tar.gz 78184 SHA256 4358157d83f88a3e0fdd5b2faa810ce0e8569ce5594ce893634f0042b2dfcdab SHA512 429391842ac0ed04fb73587a1d21c2bf03a3c41f79fa192cc601ad4748a02ecd9a5ed024779a7267278f4c7a7152b1cf6d4e48ae1ceb31e52179506792ac4b51 WHIRLPOOL f0d5eabcd2936897124bc7bfc1c5e616c79d7deb0f465e9cbd2b28c6d45173e26c71303afc1a9f6e1ef513548d192d9e8c6e5addba4af4ef40edc564f82245f0 +DIST cache-baf8e436bc97557118cb0bf118ab8ac6aeeda381.tar.gz 3525 SHA256 3dcd26929a993bb0e652118bca2883f9fad1ba16398416e45e8226a316715d12 SHA512 547f5923824fe422bb3bc6240dd7bc2c13fa499352c168ba69bc650549e4f39e5f52cfd0ab30fc86221bebe600401e72a530b3365575e40e9d0e72b1f83bd522 WHIRLPOOL 8c7bff31928e3c25bdeeaddc4e328645bed9eb168f1cf1ee2c9c5e234087b67cc81d6dc96f6b35aa2eff5cfd31468512dd8b582f8944a04eb239002a1ffaa613 +DIST cli-spinner-610063bb4aeef25f7645b3e6080456655ec0fb33.tar.gz 2376 SHA256 02b26aa2fde9f8f4286bc9e38ac7c78c022e8cfa3522c68e65e23070c37b75b5 SHA512 91dcf9cf1634691685c091a78609cc6cbd87b4bc9677092bb4d078cb3680b75dec131444e0afe813dc35f5703a164029a77497482b44e11f7d88ee976d73ed26 WHIRLPOOL d36a854c7e7c97a3e3464e0b7ebf489b413cdbf895c2e6e244ecb53b667e23386af01734008eb819ce466bfeb05ade379ec1f7eeebfedecc702a1bcd84152db0 +DIST command-91ca5ec5e9a1bc2668b1ccbe0967e04a349e3561.tar.gz 4078 SHA256 f7685aabda1994d95f996eb687b3575d15a85f1a1e84f61688b0cacf4bcba85c SHA512 2efb78236313bd0ddc82f7322f752e0b0bf351e8bcd1f1643efeeec7185ba1757a34d6c640b89429b60bae29cffe0ee093b0af7e63861deab38ee5feaf5bb73a WHIRLPOOL 1b25a3db5ed2e92197782df65d7b32d0979456582e9a4c33106b131d5bf18dc45c410ce12786687344c098768377659d69b7889ad67e3ee3900adbcd52ee98c1 +DIST drive-0.3.5.tar.gz 323960 SHA256 f5f0a45c60818526fa6fd7f25024d91425b4f2f9ed841d324ba89c794bc9cc3f SHA512 52890f117bd2065ca7fc1fcae96bfff46342bc17c9c4f5010f74b20bbe94220be5773126da654194257c5fd8a68bc48e2e447c970df84ee571f18f6263040816 WHIRLPOOL 0dd3489c61bab76266b1c3448b09b353860083b6a97aa607c2700bbb97873a6e75e4372f8141afd037c92f6f09b3b939af790a2689a08b89ab22550528f61581 +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-872c736f496c2ba12786bedbb8325576bbdb33cf.tar.gz 217728 SHA256 d4dc2064cc999c9c527fe50a05c44357d3471379bea3f82a95bfebbaa5373552 SHA512 45f0533c842a59dfee3b6d3f1facb9535466119601644a9a2c8c8b4f573889713b1d82d0acdeef96ea246d47d79402d09592b25da3ffbf73953bd28bf5b92ed9 WHIRLPOOL fadd0c32fbfcca9c01ad0a11f64ea4625cda858e4d241bcad35cdc1292bf258a370f4fdd73ecb7bb613fc1f0e8a52154dc3582dbcd776517713468cb2ab7c18a +DIST go-isatty-56b76bdf51f7708750eac80fa38b952bb9f32639.tar.gz 1955 SHA256 a6f1ac857812224bd8a33e338b9baefcce2b1ca1777e8f359dff0a7bffb4bb3a SHA512 451ee7d6a42f967b2dd57a70f58690f3bbb21f0d6c18522772d3d9ca270ff9bbdd38d7e54e5404d303a615dcdca3c96fd9dd27075ac6d9efd88611b82f4c3662 WHIRLPOOL 39b094ea2f5a9fc808d160166973dd4e5a465408cb72c65d9450d1bf71f756eed7bbb5f98272482b177c2d2c2c2b7f4fc7e40ee75b51bc3d7a999cf550f1b9a9 +DIST go-net-0_pre20160216.tar.gz 741192 SHA256 482a17771601dc706945eee7e0c3a339d57a140dc3cb8adaa86e99ef28a8ea71 SHA512 75db9098b33ede5621fce36645ebe946fad911c815dae219d74242b15714d1b9a3d8544f5f8c90b58989cea3a46b5688d20f705cb24a7d31f201ec218e69e78f WHIRLPOOL 2a7dca88766e6ba010ed6b274a48e7db5cfc9084cbc16f46e2806d59519f91b296d64dead8485f191aff50168bad5b4f62ac670d17b30b90850a9906d85c6708 +DIST go-oauth2-0_pre20160222.tar.gz 34556 SHA256 cb4123249901235e6ebfd074a5b1547cb4e3a4a7060b399b29950e60882ecd2f SHA512 23fbc7744fe35f893d385a308428d2a3b8ddbf45fa12c5b43d3dc619e6bb422f30ce80774a25b88a8f74f9343c57280546183b45364456e1c60aee96aa6d0f77 WHIRLPOOL 67c42a0b21861e7cd34b25c4d59359f791faf4f03a2759c94ae70e48cfbe24f27ca005f7e7afbbe7c8221fb47aa8a08dc19c19dc8e53b680d6bcaaeff10d2308 +DIST go-utils-f9f5791e018b45dfdc4925be1e7b9728e637c4bf.tar.gz 3111 SHA256 823f83984d81cf0e72a8d0013f14bec07e42e0b67f26926bc831a62128b7fbf8 SHA512 eb9e214b22bd42ff213dcc12d41a8eaac78c333456ee8117433229dc985059dcedc7a44b59ac7716abcb8bcb4992fff77b10ca0dcb2a166e8a46a94f5fff773a WHIRLPOOL f948bd1f380a008394412f16f911f05f33d5bce27d97f964f3008a939edc3510a7a1f1aac8e8bb2054dee290d958c663621c182c98258a3bfb4a478ef6a074ca +DIST google-api-go-client-fceeaa645c4015c833842e6ed6052b2dda667079.tar.gz 4232072 SHA256 874b17e4c436bc7ff28faf61d58728b4136839424a8319b69105d57eaeb84835 SHA512 df7a4dfc269068cd0ef6afd1ea1d3d47b05c717f28e0506ccca5172f9420c840514fea60f765d536168d5eb44b0805c25f7f84e0b7c24be677249fb4de7c75b7 WHIRLPOOL 19c67bf74b0c773be74999d941ea01f45e70df403af7e4bc7866d6022d050d153a74685441a81b7bba6260f683b8c8072da427635840acf0c26ac58c03400423 +DIST inject-33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz 5059 SHA256 60c2983497f697b496d0ea0ff67acaa6ce11721b6da2493040ed8558c0d3b422 SHA512 f6c062c41587e998020099888c370c5ece39a664c014bd809ad57533191dca5aa46d00cbe438588abb6f24d7275c3a3c86c7a6d37f9928fd530e1724741b2c1e WHIRLPOOL dd43202c70560f93a87f29f4ed38bed1c4d6ce59ceab259a6fb7300122c046596c0096610d29ad7699d2621f1819b8d41d38db331ee44b151c4e034375a58a18 +DIST log-cad53c4565a0b0304577bd13f3862350bdc5f907.tar.gz 2183 SHA256 9bf2ec609e10c3141c60e96f2fe17d0b318ef544b6b51e92c6523df78af7551f SHA512 17c7868c576393edd5bba5613a72a20067203e3bedf980be93e04224b551d906e4101c7d71c69a5bdc7de47222eac840659f5cf7d1fa2f308a552d709c23fd1d WHIRLPOOL 394c83eb36aeca2f6af5fb28645e21beb1e13cc3ae3487d6a531ce3f9f0c84016470e9de62650f48a245b3c3138d0b9c717013e279dc066bb1bf550d0a8818ce +DIST martini-dafdd96c12087352f3cf407b8f2a058028edf715.tar.gz 65333 SHA256 a9ab7ea431db1c46e5461d60038307072d7e8882df696f6ee85c36fbf898c9d8 SHA512 81ab06e0a93465835db1ef9e0dbcb0f4aa874b9286aec2b1b3c97874572c6bf16097aa387dc4ddcf315e9a7e477aced233feb2d05031abbaa91f730ba4d0e740 WHIRLPOOL ffa0dc6548eec8bf1b39a5776fbda98ad2358486363e14a3a89408682ef15ba6f37cfc5e3f4a8ab7a4238cad841bb2461d26cc80b2568a6c6135d0250f954c60 +DIST meddler-d2b51d2b40e786ab5f810d85e65b96404cf33570.tar.gz 1972 SHA256 355da29af73f7ed1f45a9f786c41c4e7ee690c91bd1c921a146fe92f994bbb62 SHA512 7d27ab87bc97994d053f4396fe4419c74afbab210e7f7d172472779263ff2878fa0d8bd5eb242167403e53d40b66683bc3c19fc83f5b8f374e12273d58949630 WHIRLPOOL 02f6d7df515ad0a197882293cf634258de07ed96d6fc90f44c4509bcd63b763dc4c255879583140f7b320dee38109af1e0ef3f6b91388144c390250ed827db44 +DIST open-golang-75fb7ed4208cf72d323d7d02fd1a5964a7a9073c.tar.gz 7012 SHA256 78d343a6c3b759e9fcc7b21f36a8e0c883ef5051d19a705acb798c540c4263e7 SHA512 c9255b599d6f743c00bb0acd7f6b3c3078c34b2dfb1c30dc2f8a4e4f4c466efb2115749d0b0ab8595c925efc8e67f9e769ab6183d1676743f279289e8c5b3744 WHIRLPOOL fe882e2e30b2dd4d4c1de0c23ee537f446a575ccd23705e7e04b7c4ec3cd2f3931e24553a148f0fcf3d890b8de8bb8569f5fb2ac76c515e9bbfeb21c4a4ea005 +DIST pb-c089c0e183064d83038db7c2ae1b711fb2e747a4.tar.gz 9731 SHA256 a15aea08fd77b509f0bae1a44edebb6a87809af55921b37a63b58fe79fa78f8b SHA512 fd352c098baa3f418192a60e94db64fab3fd3523d9bab79d7bd156df5e320a8bbe75bef77d95a795e051f71fb859050369a4bf11d3377f4ba1cc74d419e3075c WHIRLPOOL 7b67c4f58e327d3b893843db2ff63b43c5b7d5251d7425e5247df88d6f0288cd6fddad7fffc769fac2ee1f23ab09042fd7889778ea4fb61f5290ff2a67e4c23a +DIST pretty-words-9d37a7fcb4ae6f94b288d371938482994458cecb.tar.gz 2377 SHA256 b6690e78fc854fdbc4d5544e6263ec8f8f9a0d429c395d34a83d513a621b0d31 SHA512 e5dffef8840aafe77302f33dd4c22489df6a3f15850cf05bc9adb052bad1f449be972703543a610303a19b355730109d98be35d4397dc2c1751e560fe16bac5c WHIRLPOOL dda578ad7f717483eb71b7eb1c3b5ed858c91dada1d9bb0f1e42503965b2f0c0df522b5804666eb4896253fd1450de0ae02b2280c029bef3bc6d16196ca47ec2 +DIST ripper-bd1a682568fcb8a480b977bb5851452fc04f9ccb.tar.gz 5659 SHA256 4457dfc19b19a25fc4a591543b8a862012dc70aa16d82dbfb99572da5e02a96e SHA512 6e3a7d3df9c9237f498c98789e4b12f4d91aad7bbfd93d2fd91d53140257155521af1c65ef1bafb2f05d8bcbb0372d1a458c4d994af514d8f48b576b6a13f56f WHIRLPOOL a5297baea03adfbdfb3dff28017486916c1850f99b91409909ca1008104e7ab16fa20f91a62a37627235607eb50a945a5d887057d38051f4e9c59df742231821 +DIST rsc-6ad75e1e26192f3d140b6486deb99c9dbd289846.tar.gz 2130311 SHA256 dfbc5f039c030f0923d034e5852550e5b4cd396c07dfd46481d1b0931bb5185f SHA512 220162a67229ddc1b234b3b6e4fc446c834b8c08348dcbb3d3a71767c7099c5b77d46c01d5cb91ca83745686ec66fd8184ad3eea300e4db63b89c1557568acba WHIRLPOOL 6b7260d7f61eab00f7e8432f7c8a04426f47b3c8e6f1c0da32f833136ce25ef36e05da5303e9cfff3bc28bbf68ed0868d555d5b50450b3bc5cbccc10001ff173 +DIST semalim-9c88bf5f9156ed06ec5110a705d41b8580fd96f7.tar.gz 2742 SHA256 e1f9e2cb6a1ff78c453be5bb9fc41c1468313183c0e1d1e0fb7995d28fddf4f4 SHA512 f2d6ae78d017f7603dd6a7737803bf3633dad1abb029a069001fd4d8af63fa52220f8c3942433970e4d9e68fa3ca7be7945d68fa84b99f599164eca88d81cb29 WHIRLPOOL a3012a80cffa6316e65d798d0cafadb4b34793976ae3a734e77096dd5a58a46bd3834fc5b233f2a092d2eef2fe8b97f8cf718747e3e10d8aad60d6cf329404ed +DIST statos-f27d6ab69b62abd9d9fe80d355e23a3e45d347d6.tar.gz 2603 SHA256 46ad4e8e6021e15c19ed55e472ab38c852ba0728d9082fdee5508c96cb4ff95d SHA512 8cd09e061fdf03a88bc50bc65fae74bce0973ac8dead85a49aaec36eb0d4c1bf52040d940e96bc76f49042141bb613e0f0c5e3f93573d36c6104792ecb903109 WHIRLPOOL 3905ee67fd0b91c4ca05935a5c5d2dd2f332821b19412f0d14b51766886326431b65d17a411c5f204aceb9c740d28e6313f307607e95a3a57f65a43b635c4fe0 diff --git a/net-misc/drive/drive-0.3.5.ebuild b/net-misc/drive/drive-0.3.5.ebuild new file mode 100644 index 000000000000..14c76097f94e --- /dev/null +++ b/net-misc/drive/drive-0.3.5.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +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/boltdb/bolt/archive/2f846c3551b76d7710f159be840d66c3d064abbe.tar.gz -> bolt-2f846c3551b76d7710f159be840d66c3d064abbe.tar.gz +https://github.com/cheggaaa/pb/archive/c089c0e183064d83038db7c2ae1b711fb2e747a4.tar.gz -> pb-c089c0e183064d83038db7c2ae1b711fb2e747a4.tar.gz +https://github.com/codegangsta/inject/archive/33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz -> inject-33e0aa1cb7c019ccc3fbe049a8262a6403d30504.tar.gz +https://github.com/golang/net/archive/b6d7b1396ec874c3b00f6c84cd4301a17c56c8ed.tar.gz -> go-net-0_pre20160216.tar.gz +https://github.com/golang/oauth2/archive/2cd4472c321b6cba78e029d99f0e7fe51032fd21.tar.gz -> go-oauth2-0_pre20160222.tar.gz +https://github.com/go-martini/martini/archive/dafdd96c12087352f3cf407b8f2a058028edf715.tar.gz -> martini-dafdd96c12087352f3cf407b8f2a058028edf715.tar.gz +https://github.com/GoogleCloudPlatform/gcloud-golang/archive/872c736f496c2ba12786bedbb8325576bbdb33cf.tar.gz -> gcloud-golang-872c736f496c2ba12786bedbb8325576bbdb33cf.tar.gz +https://github.com/google/google-api-go-client/archive/fceeaa645c4015c833842e6ed6052b2dda667079.tar.gz -> google-api-go-client-fceeaa645c4015c833842e6ed6052b2dda667079.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/f9f5791e018b45dfdc4925be1e7b9728e637c4bf.tar.gz -> go-utils-f9f5791e018b45dfdc4925be1e7b9728e637c4bf.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 + go-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;; + go-net-*) echo "net-* golang.org/x/net"; 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() { + 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%/*} +} diff --git a/net-misc/drive/metadata.xml b/net-misc/drive/metadata.xml new file mode 100644 index 000000000000..783063b06072 --- /dev/null +++ b/net-misc/drive/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <remote-id type="github">odeke-em/drive</remote-id> + </upstream> +</pkgmetadata> |