diff options
author | William Hubbs <williamh@gentoo.org> | 2013-12-14 19:44:33 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2013-12-14 19:44:33 +0000 |
commit | e84091292ff899dabf51def4c44ad3ebfac4de3f (patch) | |
tree | 49482aef4f433e896a46fba3e0d63696a0b82f60 /dev-lang | |
parent | Convert to distutils-r1. (diff) | |
download | historical-e84091292ff899dabf51def4c44ad3ebfac4de3f.tar.gz historical-e84091292ff899dabf51def4c44ad3ebfac4de3f.tar.bz2 historical-e84091292ff899dabf51def4c44ad3ebfac4de3f.zip |
version bump for #490388.
Package-Manager: portage-2.2.7/cvs/Linux i686
Manifest-Sign-Key: 0x30C46538
Diffstat (limited to 'dev-lang')
-rw-r--r-- | dev-lang/go/ChangeLog | 8 | ||||
-rw-r--r-- | dev-lang/go/Manifest | 11 | ||||
-rw-r--r-- | dev-lang/go/files/go-1.2-no-Werror.patch | 10 | ||||
-rw-r--r-- | dev-lang/go/go-1.2.ebuild | 144 |
4 files changed, 168 insertions, 5 deletions
diff --git a/dev-lang/go/ChangeLog b/dev-lang/go/ChangeLog index 04ee50db9696..89befc1b9845 100644 --- a/dev-lang/go/ChangeLog +++ b/dev-lang/go/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-lang/go # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/ChangeLog,v 1.23 2013/10/28 22:17:03 williamh Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/ChangeLog,v 1.24 2013/12/14 19:43:33 williamh Exp $ + +*go-1.2 (14 Dec 2013) + + 14 Dec 2013; William Hubbs <williamh@gentoo.org> + +files/go-1.2-no-Werror.patch, +go-1.2.ebuild: + version bump for #490388. 28 Oct 2013; William Hubbs <williamh@gentoo.org> -go-1.1.1.ebuild: remove old version diff --git a/dev-lang/go/Manifest b/dev-lang/go/Manifest index 7aa5f8f2b123..71ace8b454b0 100644 --- a/dev-lang/go/Manifest +++ b/dev-lang/go/Manifest @@ -3,15 +3,18 @@ Hash: SHA256 AUX go-1.1.1-no-Werror.patch 236 SHA256 32ccfb12b9bcf7a0353fe99102f49c98d0ca1987c54bd232134d3612a691d68f SHA512 2942ebab53195247b7bc77ae876438a7b3115dc7a962d45e41a0dee1335b6a6d000bb2705be0861c0f6ffbb250d0290768e7f560205bf0c17748fd50a4eac581 WHIRLPOOL 391f119e05cc4fae792a079f47668940b2ce7a98e79e9a4a1d74ffdd60a9b9dd7168002b90d8b46cc200edabf1051e65b1377f69e2fc1565acdcdd5dc12c895b AUX go-1.1.2-no-Werror.patch 236 SHA256 32ccfb12b9bcf7a0353fe99102f49c98d0ca1987c54bd232134d3612a691d68f SHA512 2942ebab53195247b7bc77ae876438a7b3115dc7a962d45e41a0dee1335b6a6d000bb2705be0861c0f6ffbb250d0290768e7f560205bf0c17748fd50a4eac581 WHIRLPOOL 391f119e05cc4fae792a079f47668940b2ce7a98e79e9a4a1d74ffdd60a9b9dd7168002b90d8b46cc200edabf1051e65b1377f69e2fc1565acdcdd5dc12c895b +AUX go-1.2-no-Werror.patch 230 SHA256 65d38b9485da2ff9417a2c44a81b6e52cc9bd2727b27e7add10d48a63805d4a3 SHA512 3cf139723e6ff0cbf7aaf76295fe4208f2062f2d4086e36d05cad83919217b5355e0e79b0b515a06a578389301bd07b062cb58b98fc0f9e4badf190cd1c34826 WHIRLPOOL 589b081bccf4afa015abe615c9d14b05ee2d2562b9473f8587456cfa8205a20483298f987d6bcf02630d17c2fbf3cc461e246ecc8e7602a89fc975ff3eefe172 DIST go1.1.2.src.tar.gz 9049357 SHA256 ffc7b3b46909add09cad8213d76dba34e92cc8f8e64a3ebe1a052cb22064eb70 SHA512 e8cf7e557e57f7707ac0f58bcff8bfb989e14b5271928a025a9d3eb32fc7c876271e912875f0e9efd3478a4c74d7671f24b7fee538b082fd72cd2577ad24f65c WHIRLPOOL 57c58822031882754d288e7a0267eba80af1db296e783abf10bfc85550afd991cf2f5a5f8f232e22f5a8b0fb02f45488ee1dbdf58aa6796b66f67e54e2a07dba +DIST go1.2.src.tar.gz 9519109 SHA256 9ab83fb8eafe39f4204ef0f8e84e5ff7e8f1d533ddb05f51e6dc81503e8c0ae4 SHA512 c5ded60ba6db97107669146e1723fa5efbd89eb7432a6584b831549fe19f257c658a7cad19ee0033e305eb360e84fd18e67a6445ad0f945166b4d7315adbae7f WHIRLPOOL 1c0c87f01189b60c77e6b770d06bfb4ee06f1b133d9fc221d404a81ce344be5821c6c39c7e2ff91f6ac184e3d182d51a459adba91ce2bb424a54c2745e46e2c1 EBUILD go-1.1.2.ebuild 3229 SHA256 bca4ee5d64884419cb3014144fde27c43e58f57c9a659ee381bc12284c89bbb3 SHA512 02f59ac79bc9623e50947bd6cf84245384a060496fc3e5c82832dfaa3bf86baf3159ed0766fdeddc6453042f37fa12627b2912e0acfe2829594bf4c320b34796 WHIRLPOOL 42a05429f9f377e0059b00f1003859ad5dbf5098ef51f6955c42c3edea1a2753a35c89f5f013a45214fad90f555164f521a8e8d39090503b53b829830a6c7a84 +EBUILD go-1.2.ebuild 3381 SHA256 9f778fbce76170fa8acacf3da0c38a25a2af7eb67911015203b9b31b6b5fa5bb SHA512 3685c427627c05a6a1fcb3c717506f62372ed03adf3bb9591dccb49734ba5e91cfc38f5a112e9b95bf5e44c5788b6d0d879deee3b4a071bca6c41cb567054382 WHIRLPOOL ce75a71247cc9def251c035d1d9da312a80cc9ac3d92b4364c363eb63b6c551bc2b56da4a2ff21cbb643539d755de5ccc7ea1ac6e06742f69714407a3da56431 EBUILD go-9999.ebuild 3232 SHA256 44863a6978c5218cb3a30b6c917e74c1e62e5632d1fb42536f7dfe7fa1200d52 SHA512 7a9ac9c3c3bfd5d7a3497c8134f2abc03a4ea5426d323f3ea0606e1428289136d23a0c04ea08eb52ec1e5af85c2c1fa0e0d1947823537fa2a3e53ec3f7c722e6 WHIRLPOOL 1757d1b881a0bf7fe7e59a9c18953beb296cfb24f395a548ff935ae4ebdd5e7914cb902f631bd6c74c49419a012838978e66c2bd43eeb0066b15b87053a3b0cd -MISC ChangeLog 3668 SHA256 64bdb3e26cf3bb45666d008ad37355be966e75a59f6351f094af785cd2fb6ca1 SHA512 9a70d4e9c94200ce824e12542fd76924a999bda16cdb6111ea62835c48412523238aee7b7c5f47b7f0ab50154e915cd1812e13f35de68d5ab0e3fea00577b8f5 WHIRLPOOL 2138e9297cfad0cf16d03ed4723ee74e56f4ce9f537e6bbea5a7305ad3cc74e40746ba48944761bb8a00614ecb2b8f201b268199b66ed5dea2d7a742eedf79ed +MISC ChangeLog 3820 SHA256 a50c4185569a7bb293b4185b476369fc07d9d8fd9a6a1146cdf75d55dc4dedae SHA512 00d5a055061d47f0eb00e8b88772a8481c9092277489ce115b301388e2d701fde078f5e387f44d6dc2fff90381c41e8cb965e2e5d0e75d3737db2f75a674d70e WHIRLPOOL 89a6fda99244949f058c5428c71b262a9c5822d6715d7cfb3e3828b9e9a6ccc0b0b6433524a87e2d841fb640d64551403dffe2c26316142233d5ee12d61e7f77 MISC metadata.xml 448 SHA256 d53ad6b454d72353e0308a91a989a1a3345ae97c0199748dee1862576ad4476a SHA512 0c5fb551437353e87f87c91e576ef224b770f686700150c19e7f34e6903ba26910293bb74db9732a220006b873113662464646dd96e61503e4aa90cc84e14f75 WHIRLPOOL b3846a0fad8844ad7ec961b512cb12a9d588bfac28b2dc53798399ac8628ccbf6c06c5666b03eabef05b0acb0cea04d563252eaaa893341c5b3fe59475ffdab5 -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iEUEAREIAAYFAlJu4mAACgkQblQW9DDEZTgLdwCYmR7W4k9b+SGSg0WIQXBX1O9C -SQCguGFI7on2kPadbcl5xHKGEHzZa0Y= -=n08y +iEYEAREIAAYFAlKstSAACgkQblQW9DDEZTifxgCghZyE9oiKgJSigKN/QC9OWCop +6cQAoJE7aL6GxLpE58eH41fmmY6mU0H0 +=Txnb -----END PGP SIGNATURE----- diff --git a/dev-lang/go/files/go-1.2-no-Werror.patch b/dev-lang/go/files/go-1.2-no-Werror.patch new file mode 100644 index 000000000000..01f183edb078 --- /dev/null +++ b/dev-lang/go/files/go-1.2-no-Werror.patch @@ -0,0 +1,10 @@ +--- a/src/cmd/dist/build.c ++++ b/src/cmd/dist/build.c +@@ -384,7 +384,6 @@ static char *proto_gccargs[] = { + "-Wno-switch", + "-Wno-comment", + "-Wno-missing-field-initializers", +- "-Werror", + "-fno-common", + "-ggdb", + "-pipe", diff --git a/dev-lang/go/go-1.2.ebuild b/dev-lang/go/go-1.2.ebuild new file mode 100644 index 000000000000..5b07eb83f907 --- /dev/null +++ b/dev-lang/go/go-1.2.ebuild @@ -0,0 +1,144 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-lang/go/go-1.2.ebuild,v 1.1 2013/12/14 19:43:33 williamh Exp $ + +EAPI=5 + +export CTARGET=${CTARGET:-${CHOST}} + +inherit bash-completion-r1 elisp-common eutils + +if [[ ${PV} = 9999 ]]; then + EHG_REPO_URI="https://go.googlecode.com/hg" + inherit mercurial +else + SRC_URI="http://go.googlecode.com/files/go${PV}.src.tar.gz" + # Upstream only supports go on amd64, arm and x86 architectures. + KEYWORDS="-* ~amd64 ~arm ~x86" +fi + +DESCRIPTION="A concurrent garbage collected and typesafe programming language" +HOMEPAGE="http://www.golang.org" + +LICENSE="BSD" +SLOT="0" +IUSE="bash-completion emacs vim-syntax zsh-completion" + +DEPEND="" +RDEPEND="bash-completion? ( app-shells/bash-completion ) + emacs? ( virtual/emacs ) + vim-syntax? ( || ( app-editors/vim app-editors/gvim ) ) + zsh-completion? ( app-shells/zsh-completion )" + +# The tools in /usr/lib/go should not cause the multilib-strict check to fail. +QA_MULTILIB_PATHS="usr/lib/go/pkg/tool/.*/.*" + +# The go language uses *.a files which are _NOT_ libraries and should not be +# stripped. +STRIP_MASK="/usr/lib/go/pkg/linux*/*.a" + +if [[ ${PV} != 9999 ]]; then + S="${WORKDIR}"/go +fi + +src_prepare() +{ + if [[ ${PV} != 9999 ]]; then + epatch "${FILESDIR}"/${P}-no-Werror.patch + fi + epatch_user +} + +src_compile() +{ + export GOROOT_FINAL=/usr/lib/go + export GOROOT="$(pwd)" + export GOBIN="${GOROOT}/bin" + if [[ $CTARGET = armv5* ]] + then + export GOARM=5 + fi + + cd src + ./make.bash || die "build failed" + cd .. + + if use emacs; then + elisp-compile misc/emacs/*.el + fi +} + +src_test() +{ + cd src + PATH="${GOBIN}:${PATH}" \ + ./run.bash --no-rebuild --banner || die "tests failed" +} + +src_install() +{ + dobin bin/* + dodoc AUTHORS CONTRIBUTORS PATENTS README + + dodir /usr/lib/go + insinto /usr/lib/go + + # There is a known issue which requires the source tree to be installed [1]. + # Once this is fixed, we can consider using the doc use flag to control + # installing the doc and src directories. + # [1] http://code.google.com/p/go/issues/detail?id=2775 + doins -r doc include lib pkg src + + if use bash-completion; then + dobashcomp misc/bash/go + fi + + if use emacs; then + elisp-install ${PN} misc/emacs/*.el misc/emacs/*.elc + fi + + if use vim-syntax; then + insinto /usr/share/vim/vimfiles + doins -r misc/vim/ftdetect + doins -r misc/vim/ftplugin + doins -r misc/vim/syntax + doins -r misc/vim/plugin + doins -r misc/vim/indent + fi + + if use zsh-completion; then + insinto /usr/share/zsh/site-functions + doins misc/zsh/go + fi + + fperms -R +x /usr/lib/go/pkg/tool +} + +pkg_postinst() +{ + if use emacs; then + elisp-site-regen + fi + + # If the go tool sees a package file timestamped older than a dependancy it + # will rebuild that file. So, in order to stop go from rebuilding lots of + # packages for every build we need to fix the timestamps. The compiler and + # linker are also checked - so we need to fix them too. + ebegin "fixing timestamps to avoid unnecessary rebuilds" + tref="usr/lib/go/pkg/*/runtime.a" + find "${ROOT}"usr/lib/go -type f \ + -exec touch -r "${ROOT}"${tref} {} \; + eend $? + + if [[ ${PV} != 9999 && -n ${REPLACING_VERSIONS} && + ${REPLACING_VERSIONS} != ${PV} ]]; then + elog "Release notes are located at http://golang.org/doc/go${PV}" + fi +} + +pkg_postrm() +{ + if use emacs; then + elisp-site-regen + fi +} |