diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /dev-go/go-oauth2 |
reinit the tree, so we can have metadata
Diffstat (limited to 'dev-go/go-oauth2')
-rw-r--r-- | dev-go/go-oauth2/Manifest | 11 | ||||
-rw-r--r-- | dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild | 66 | ||||
-rw-r--r-- | dev-go/go-oauth2/go-oauth2-0_pre20160222.ebuild | 112 | ||||
-rw-r--r-- | dev-go/go-oauth2/go-oauth2-9999.ebuild | 29 | ||||
-rw-r--r-- | dev-go/go-oauth2/metadata.xml | 10 |
5 files changed, 228 insertions, 0 deletions
diff --git a/dev-go/go-oauth2/Manifest b/dev-go/go-oauth2/Manifest new file mode 100644 index 000000000000..d9defd618b9d --- /dev/null +++ b/dev-go/go-oauth2/Manifest @@ -0,0 +1,11 @@ +DIST gcloud-golang-872c736f496c2ba12786bedbb8325576bbdb33cf.tar.gz 217728 SHA256 d4dc2064cc999c9c527fe50a05c44357d3471379bea3f82a95bfebbaa5373552 SHA512 45f0533c842a59dfee3b6d3f1facb9535466119601644a9a2c8c8b4f573889713b1d82d0acdeef96ea246d47d79402d09592b25da3ffbf73953bd28bf5b92ed9 WHIRLPOOL fadd0c32fbfcca9c01ad0a11f64ea4625cda858e4d241bcad35cdc1292bf258a370f4fdd73ecb7bb613fc1f0e8a52154dc3582dbcd776517713468cb2ab7c18a +DIST gcloud-golang-e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz 168358 SHA256 817456c3b49ff6917604d201041d4f555e7f42328d5df036c68c26bf50c7455c SHA512 135124280cdbf0a9e62f811164b4b97f0ee5142736cc4a06efafd48162a89dd1a6f186264c925da27adc970c964ab0af75423025fd125b772ddb99320b816219 WHIRLPOOL 66a445585c17d0331b0ce24d9bde8c8942ba39d1d404e1b3b73cbaf173327ab0c43af5b7e980accf697100b12e3a544334a07f43f9f17ebac93ee7907b92b7ac +DIST go-net-0_pre20160216.tar.gz 741192 SHA256 482a17771601dc706945eee7e0c3a339d57a140dc3cb8adaa86e99ef28a8ea71 SHA512 75db9098b33ede5621fce36645ebe946fad911c815dae219d74242b15714d1b9a3d8544f5f8c90b58989cea3a46b5688d20f705cb24a7d31f201ec218e69e78f WHIRLPOOL 2a7dca88766e6ba010ed6b274a48e7db5cfc9084cbc16f46e2806d59519f91b296d64dead8485f191aff50168bad5b4f62ac670d17b30b90850a9906d85c6708 +DIST go-oauth2-0_pre20150701.tar.gz 32040 SHA256 ce9b602dd7f05c819002d6400585c2f09e8e1880a0fe358a4d4f56a6594ccedd SHA512 d809e1d63c7b5a4b388616d930cb22978b1653e2314b208d12679242bdd0e9d72f275f5ade7aa468b1dcf3960aa70ff94183ae1dd04325b24cdd20ef4834880a WHIRLPOOL 984438676de52f635206a3bb19b77e7f05c9c78a2ce6beabbe82cc22fb28fa0c7e3717a596a9b0c967615574ad6e53da0510bc1ecd0a38edd23680622320d6a0 +DIST go-oauth2-0_pre20160222.tar.gz 34556 SHA256 cb4123249901235e6ebfd074a5b1547cb4e3a4a7060b399b29950e60882ecd2f SHA512 23fbc7744fe35f893d385a308428d2a3b8ddbf45fa12c5b43d3dc619e6bb422f30ce80774a25b88a8f74f9343c57280546183b45364456e1c60aee96aa6d0f77 WHIRLPOOL 67c42a0b21861e7cd34b25c4d59359f791faf4f03a2759c94ae70e48cfbe24f27ca005f7e7afbbe7c8221fb47aa8a08dc19c19dc8e53b680d6bcaaeff10d2308 +EBUILD go-oauth2-0_pre20150701.ebuild 1901 SHA256 883af8ed0ea5b1ee09a845adbed7673782f0a617efa04ddb839e01b87a9d8b65 SHA512 68fde80e418730ef26e48a59e8a864d6bdef060abe29ff0b4d71bc8b0206c62e442a4f8ec1fbff8932dbbb36289904ec18ea19042b7023f04cf350836898c587 WHIRLPOOL c563772ce6f3998c854a3f0364cfe3cea38d0c191b87dae61626a5a4bfcf09d29e516ed8e0c9ba874ad464e1548c4e256e06ae18dfcdc048d1b32bbafd18ebc2 +EBUILD go-oauth2-0_pre20160222.ebuild 3251 SHA256 9e178cb080e76d08539a5240abf1ae30ea7a3d178ace437add98837004ba01b3 SHA512 311695e2b17672133af3b43bb154b52e6ace4644b56f7631e87759df9a47b2b805963b6ff950008b6439f4cac432ac920768a6404272f2e491819a64557114ac WHIRLPOOL c6d7df72d979aeaeb9f354da494df107e7415e35d19697af7eef932b0a1789196a3b0af720fb1d805f3aacc15df880cc47ec790d8c9d7413c40f910ae87900f3 +EBUILD go-oauth2-9999.ebuild 648 SHA256 4b6878b352f2adc2b263bc4006f490a44019f21df5841564c9e295c34651684f SHA512 b7a834d1e0aa1ad314c65b5e85ac40dab4d408ad528b380dcd5a67ab1abcc023d38f9a0e75ad67973ae3451865150b0f549297d1274520f42b32768048353bc8 WHIRLPOOL 627de58c1dd32c115b104161d84464c1fb3df5f3752b71d3dbb685d77fa4896df2c3755071606a9419ffa0da4ed6e26900a5c69e143836fae5a6180ad8460336 +MISC ChangeLog 3812 SHA256 01506d3ca1992d99cc3bcfef47099854c4fa187a0233a20def790bcf37d04b58 SHA512 d07d27fa8aac365022698edd10d6b4877b6eb8ee47f693f142fdd545a299d00712bc13ac8029b60ec1266691f3585f4162c380d2242a57f3fcba338bd2da4e9e WHIRLPOOL f1e3bf9dabc9d3f8fe0de4d652fa544b67fcb1c2bc0d5d6c282980876fb54a9e741cdc2261d0e93616456a9067ddb4d1eeb11271214a930b662cfadfdae96bcc +MISC ChangeLog-2015 1864 SHA256 bb83fa913141c09a858164ca2c7d8f9655a3147bd8d10662a4eede45997946c6 SHA512 50ee08456d2dd3915c51ed8f618ec0f4278760ed0e80d672bb6ccda99b33298862f73b92000cd882c5d9d63a0143d4785df3f81ec6357a5e12f25e5a0d391a9c WHIRLPOOL 7156917b3fbeea763769fa28fa6175d9e15dbc783bf67ca881b8001b98c9df57fd8d09958242a3bdb75b46d3357596ae5313c361ac5647614f2caa0cb02b0111 +MISC metadata.xml 324 SHA256 04dd6b7968ee86c8b325fe9ea1d105d359528aa93edae9fe7457ea5f85920f6a SHA512 2673cfa4c19f6aa8f75ebcffa401892234098959274958623fa9e99e75624a727fc657937bff45aa446e523ea000a04bd543cb966acee22cc5dc447c950bf8f5 WHIRLPOOL 54c6929d6422f9f117959a71973593f0d8f8cdbc593efb35aee5972755edb6f2c5f916e4379f68114748219c48f1e23d7fe8e42b7a8d3cc33eb287977c00a421 diff --git a/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild b/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild new file mode 100644 index 000000000000..0446f030904a --- /dev/null +++ b/dev-go/go-oauth2/go-oauth2-0_pre20150701.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils golang-base + +MY_PN=${PN##*-} +GO_PN=golang.org/x/${MY_PN} +EGIT_COMMIT="8914e5017ca260f2a3a1575b1e6868874050d95e" + +HOMEPAGE="https://godoc.org/${GO_PN}" +DESCRIPTION="Go client implementation for OAuth 2.0 spec" +SRC_URI=" + https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz + https://github.com/GoogleCloudPlatform/gcloud-golang/archive/e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz -> gcloud-golang-e34a32f9b0ecbc0784865fb2d47f3818c09521d4.tar.gz" + +SLOT="0" +LICENSE="BSD" +KEYWORDS="~amd64" +IUSE="" + +DEPEND=" + dev-go/go-net:= + dev-go/go-tools:=" +RDEPEND="" + +S="${WORKDIR}/src/${GO_PN}" + +EGIT_CHECKOUT_DIR="${S}" +STRIP_MASK="*.a" + +src_unpack() { + default + mkdir -p src/${GO_PN%/*} || die + mv ${MY_PN}-${EGIT_COMMIT} src/${GO_PN} || die + + # Create a writable GOROOT in order to avoid sandbox violations. + export GOROOT="${WORKDIR}/goroot" GOPATH="${WORKDIR}/:$(get_golibdir_gopath)" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" || die + + mkdir -p "${GOROOT}/src/google.golang.org" || die + rm -rf "${GOROOT}/src/google.golang.org"/* || die + rm -rf "${GOROOT}/pkg/${KERNEL}_${ARCH}/google.golang.org" || die + mv gcloud-golang-e34a32f9b0ecbc0784865fb2d47f3818c09521d4 "${GOROOT}/src/google.golang.org/cloud" || die +} + +src_compile() { + go install -v -x -work google.golang.org/cloud/compute/metadata || die + go install -v -x -work ${GO_PN}/... || die +} + +src_test() { + # google/example_test.go imports appengine, introducing a circular dep + mv google/example_test.go{,_} + go test -x -v ${GO_PN}/... || die $? + mv google/example_test.go{_,} +} + +src_install() { + insinto "$(get_golibdir)" + egit_clean "${WORKDIR}"/{pkg,src} + insopts -m0644 -p # preserve timestamps for bug 551486 + doins -r "${WORKDIR}"/{pkg,src} +} diff --git a/dev-go/go-oauth2/go-oauth2-0_pre20160222.ebuild b/dev-go/go-oauth2/go-oauth2-0_pre20160222.ebuild new file mode 100644 index 000000000000..d2d3c31d5e4e --- /dev/null +++ b/dev-go/go-oauth2/go-oauth2-0_pre20160222.ebuild @@ -0,0 +1,112 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils golang-base + +MY_PN=${PN##*-} +EGO_PN="golang.org/x/${MY_PN}/..." +EGIT_COMMIT="2cd4472c321b6cba78e029d99f0e7fe51032fd21" + +HOMEPAGE="https://godoc.org/${EGO_PN%/*}" +DESCRIPTION="Go client implementation for OAuth 2.0 spec" +SRC_URI=" + https://github.com/golang/${MY_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz + https://github.com/golang/net/archive/b6d7b1396ec874c3b00f6c84cd4301a17c56c8ed.tar.gz -> go-net-0_pre20160216.tar.gz + https://github.com/GoogleCloudPlatform/gcloud-golang/archive/872c736f496c2ba12786bedbb8325576bbdb33cf.tar.gz -> gcloud-golang-872c736f496c2ba12786bedbb8325576bbdb33cf.tar.gz" + +SLOT="0/${PVR}" +LICENSE="BSD" +KEYWORDS="~amd64" +IUSE="" + +DEPEND="dev-go/go-tools" +RDEPEND="" + +EGIT_CHECKOUT_DIR="${S}" +STRIP_MASK="*.a" + +get_archive_go_package() { + local archive=${1} uri x + case ${archive} in + ${PN}-*) echo "oauth2-* golang.org/x/oauth2"; 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 + + # Create a writable GOROOT in order to avoid sandbox violations. + # Omit $(get_golibdir_gopath) from GOPATH, in order to avoid + # more sandbox violations (bug 575722). + GOROOT="${WORKDIR}/goroot" GOPATH="${S}" + cp -sR "$(go env GOROOT)" "${GOROOT}" || die + rm -rf "${GOROOT}/src/${EGO_PN%/*}" || die + export GOROOT GOPATH + + mkdir -p "${GOROOT}/src/google.golang.org" || die + rm -rf "${GOROOT}/src/google.golang.org"/* || die + rm -rf "${GOROOT}/pkg/${KERNEL}_${ARCH}/google.golang.org" || die +} + +src_compile() { + GOROOT="${GOROOT}" GOPATH="${GOPATH}" \ + go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die +} + +src_test() { + # google/example_test.go imports appengine, introducing a circular dep + mv src/${EGO_PN%/*}/google/example_test.go{,_} || die + go test -x -v "${EGO_PN}" || die $? + mv src/${EGO_PN%/*}/google/example_test.go{_,} || die +} + +src_install() { + golang_install_pkgs +} + +golang_install_pkgs() { + insinto $(dirname "${EPREFIX}$(get_golibdir)/src/${EGO_PN%/*}") + rm -rf "${S}"/src/${EGO_PN%/*}/.git* + doins -r "${S}"/src/${EGO_PN%/*} + 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%/*}{,.a} +} diff --git a/dev-go/go-oauth2/go-oauth2-9999.ebuild b/dev-go/go-oauth2/go-oauth2-9999.ebuild new file mode 100644 index 000000000000..696b9843b4db --- /dev/null +++ b/dev-go/go-oauth2/go-oauth2-9999.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +EGO_PN=golang.org/x/oauth2 +EGO_SRC=golang.org/x/oauth2 + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + EGIT_COMMIT="b5adcc2dcdf009d0391547edc6ecbaff889f5bb9" + SRC_URI="https://github.com/golang/oauth2/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi +inherit golang-build + +DESCRIPTION="Go client implementation for OAuth 2.0 spec" +HOMEPAGE="https://godoc.org/golang.org/x/oauth2" + +LICENSE="BSD" +SLOT="0/${PV}" +IUSE="" + +DEPEND=" + dev-go/go-net:= + dev-go/go-tools:=" +RDEPEND="" diff --git a/dev-go/go-oauth2/metadata.xml b/dev-go/go-oauth2/metadata.xml new file mode 100644 index 000000000000..8f2033d7ed3c --- /dev/null +++ b/dev-go/go-oauth2/metadata.xml @@ -0,0 +1,10 @@ +<?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> + </maintainer> + <upstream> + <remote-id type="github">GoogleCloudPlatform/gcloud-golang</remote-id> + </upstream> +</pkgmetadata> |