From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 2535F1388C0 for ; Sat, 20 Feb 2016 21:04:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AEE5721C0D4; Sat, 20 Feb 2016 21:04:11 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 4F04F21C0D4 for ; Sat, 20 Feb 2016 21:04:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id CEE42340CC8 for ; Sat, 20 Feb 2016 21:04:09 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 88DA88EA for ; Sat, 20 Feb 2016 21:04:04 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1456002223.ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/go-text/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-go/go-text/Manifest dev-go/go-text/go-text-0_pre20160211.ebuild X-VCS-Directories: dev-go/go-text/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d X-VCS-Branch: master Date: Sat, 20 Feb 2016 21:04:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 38a774c8-f172-4e50-838f-c7d9c7098309 X-Archives-Hash: 85aa07fb6608aac0e5d38d177947adf1 commit: ad3a39ca5b2d4fbd02ee21e3e2a7539729f2441d Author: Zac Medico gentoo org> AuthorDate: Sat Feb 20 21:03:17 2016 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Feb 20 21:03:43 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ad3a39ca dev-go/go-text: version bump to 0_pre20160211 Package-Manager: portage-2.2.27 dev-go/go-text/Manifest | 1 + dev-go/go-text/go-text-0_pre20160211.ebuild | 51 +++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) diff --git a/dev-go/go-text/Manifest b/dev-go/go-text/Manifest index 522235c..e3623f1 100644 --- a/dev-go/go-text/Manifest +++ b/dev-go/go-text/Manifest @@ -1 +1,2 @@ DIST go-text-0_pre20150806.tar.gz 3736536 SHA256 377d3a95ffb01cf301e1b6050b1437f576f6bbfe32b6d97afc343bb0570b141f SHA512 dd0fc8b5abdfa6f005316bb7828c03a081485e0bd33cbf86c0b83f8bf9240973a7b0a2e6f52ef75f48ec00fc922be21a6c65ff9eb4080f28cb3f280bd4c4f5c6 WHIRLPOOL 79b6233c99984b98b5e74915029117e1f920e17789033ce2656d1590fbeafd4c69d145adeff7c57b1c7f8836397466461744959557877d27fc831da97a62b6ff +DIST go-text-0_pre20160211.tar.gz 4015547 SHA256 a134ac828ec5cfda4fa8306077dd945f8717d2189f019c24d0d104cc5e6159ec SHA512 066e53f6e094a6cf3effe1a9376f7bde41c3059099381bb5adf8c84589de4dab9115ce3c8cb7f89f90e2601422f79e3906f8f498d66e364da9f830ede1f7f05f WHIRLPOOL 1952326c7b47e1adf270e74be9817cbc2a2e1c1e4a69426378d515c73264f961bb249ced3363c56a57eba1dbab64151ca86a35a77bc26c7cf33fb71b5aff95a6 diff --git a/dev-go/go-text/go-text-0_pre20160211.ebuild b/dev-go/go-text/go-text-0_pre20160211.ebuild new file mode 100644 index 0000000..151ca4b --- /dev/null +++ b/dev-go/go-text/go-text-0_pre20160211.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +EGO_PN=golang.org/x/text/... +EGO_SRC=golang.org/x/text + +if [[ ${PV} = *9999* ]]; then + inherit golang-vcs +else + KEYWORDS="~amd64" + EGIT_COMMIT="07b9a78963006a15c538ec5175243979025fa7a8" + SRC_URI="https://github.com/golang/text/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + inherit golang-vcs-snapshot +fi +inherit golang-build + +DESCRIPTION="Go text processing support" +HOMEPAGE="https://godoc.org/golang.org/x/text" +LICENSE="BSD" +SLOT="0/${PVR}" +IUSE="" +DEPEND="" +RDEPEND="" + +src_compile() { + # Create a writable GOROOT in order to avoid sandbox violations. + cp -sR "$(go env GOROOT)" "${T}/goroot" || die + rm -rf "${T}/goroot/src/${EGO_SRC}" || die + rm -rf "${T}/goroot/pkg/$(go env GOOS)_$(go env GOARCH)/${EGO_SRC}" || die + export GOROOT="${T}/goroot" + golang-build_src_compile +} + +src_install() { + golang-build_src_install + export -n GOROOT + exeopts -m0755 -p # preserve timestamps for bug 551486 + exeinto "$(go env GOROOT)/bin" + doexe bin/* +} + +src_test() { + # omit $(get_golibdir_gopath) from GOPATH: + #package golang.org/x/text/display (test) + # imports golang.org/x/text/internal/testtext: use of internal package not allowed + #FAIL golang.org/x/text/display [setup failed] + GOPATH="${WORKDIR}/${P}" go test -v -work -x "${EGO_PN}" || die +}