From 0f2489c12930d4a832d1cc5979b2c64c20d682d9 Mon Sep 17 00:00:00 2001 From: William Hubbs Date: Thu, 29 Dec 2016 11:29:37 -0600 Subject: dev-lang/go: multiple live ebuild cleanups - drop the kernel_* use flags - clean up version tests - do not run tests on releases - use einstalldocs to install documentation Package-Manager: Portage-2.3.0, Repoman-2.3.1 --- dev-lang/go/go-9999.ebuild | 95 ++++++++++++++++++++++------------------------ 1 file changed, 46 insertions(+), 49 deletions(-) (limited to 'dev-lang') diff --git a/dev-lang/go/go-9999.ebuild b/dev-lang/go/go-9999.ebuild index 58d44c510fa..2be35844e5d 100644 --- a/dev-lang/go/go-9999.ebuild +++ b/dev-lang/go/go-9999.ebuild @@ -13,42 +13,43 @@ inherit toolchain-funcs BOOTSTRAP_DIST="https://dev.gentoo.org/~williamh/dist" SRC_URI="!gccgo? ( -kernel_Darwin? ( - x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz ) +amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-bootstrap.tbz ) +arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-bootstrap.tbz ) +arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-bootstrap.tbz ) +ppc64? ( + ${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz + ${BOOTSTRAP_DIST}/go-linux-ppc64le-bootstrap.tbz ) -kernel_FreeBSD? ( +s390? ( ${BOOTSTRAP_DIST}/go-linux-s390x-bootstrap.tbz ) +x86? ( ${BOOTSTRAP_DIST}/go-linux-386-bootstrap-1.tbz ) amd64-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-amd64-bootstrap.tbz ) x86-fbsd? ( ${BOOTSTRAP_DIST}/go-freebsd-386-bootstrap-1.tbz ) -) -kernel_linux? ( - amd64? ( ${BOOTSTRAP_DIST}/go-linux-amd64-bootstrap.tbz ) - arm? ( ${BOOTSTRAP_DIST}/go-linux-arm-bootstrap.tbz ) - arm64? ( ${BOOTSTRAP_DIST}/go-linux-arm64-bootstrap.tbz ) - ppc64? ( - ${BOOTSTRAP_DIST}/go-linux-ppc64-bootstrap.tbz - ${BOOTSTRAP_DIST}/go-linux-ppc64le-bootstrap.tbz - ) - s390? ( ${BOOTSTRAP_DIST}/go-linux-s390x-bootstrap.tbz ) - x86? ( ${BOOTSTRAP_DIST}/go-linux-386-bootstrap-1.tbz ) -) -kernel_SunOS? ( - x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz ) -) +x64-macos? ( ${BOOTSTRAP_DIST}/go-darwin-amd64-bootstrap.tbz ) +x64-solaris? ( ${BOOTSTRAP_DIST}/go-solaris-amd64-bootstrap.tbz ) ) " -if [[ ${PV} = 9999 ]]; then +case ${PV} in +*9999*) EGIT_REPO_URI="git://github.com/golang/go.git" inherit git-r3 -else + ;; +*) SRC_URI+="https://storage.googleapis.com/golang/go${MY_PV}.src.tar.gz" + S="${WORKDIR}"/go case ${PV} in - *9999*|*_rc*) ;; - *) - KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris" - ;; + *_beta*|*_rc*) ;; + *) + KEYWORDS="-* ~amd64 ~arm ~arm64 ~ppc64 ~x86 ~amd64-fbsd ~x86-fbsd ~x64-macos ~x64-solaris" + # The upstream tests fail under portage but pass if the build is + # run according to their documentation [1]. + # I am restricting the tests on released versions until this is + # solved. + # [1] https://golang.org/issues/18442 + RESTRICT="test" + ;; esac -fi +esac DESCRIPTION="A concurrent garbage collected and typesafe programming language" HOMEPAGE="http://www.golang.org" @@ -61,7 +62,11 @@ DEPEND="gccgo? ( >=sys-devel/gcc-5[go] )" RDEPEND="!