diff options
author | Zac Medico <zmedico@gentoo.org> | 2015-05-18 07:58:45 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2015-05-18 07:58:45 +0000 |
commit | d12dc186805d0cb9fdd9d94d145b6907e99ca593 (patch) | |
tree | 94673ff67d6e1511e5df0cd32f9ebf1fd0efd992 /dev-go/go-tools | |
parent | Add go-net. (diff) | |
download | gentoo-2-d12dc186805d0cb9fdd9d94d145b6907e99ca593.tar.gz gentoo-2-d12dc186805d0cb9fdd9d94d145b6907e99ca593.tar.bz2 gentoo-2-d12dc186805d0cb9fdd9d94d145b6907e99ca593.zip |
Add go-tools.
(Portage version: 2.2.19/cvs/Linux x86_64, signed Manifest commit with key FDE8EF85AE5719A3)
Diffstat (limited to 'dev-go/go-tools')
-rw-r--r-- | dev-go/go-tools/ChangeLog | 9 | ||||
-rw-r--r-- | dev-go/go-tools/go-tools-9999.ebuild | 40 | ||||
-rw-r--r-- | dev-go/go-tools/metadata.xml | 7 |
3 files changed, 56 insertions, 0 deletions
diff --git a/dev-go/go-tools/ChangeLog b/dev-go/go-tools/ChangeLog new file mode 100644 index 000000000000..4fa43c26838f --- /dev/null +++ b/dev-go/go-tools/ChangeLog @@ -0,0 +1,9 @@ +# ChangeLog for dev-go/go-tools +# Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/ChangeLog,v 1.1 2015/05/18 07:58:45 zmedico Exp $ + +*go-tools-9999 (18 May 2015) + + 18 May 2015; Zac Medico <zmedico@gentoo.org> +go-tools-9999.ebuild, + +metadata.xml: + Add go-tools. diff --git a/dev-go/go-tools/go-tools-9999.ebuild b/dev-go/go-tools/go-tools-9999.ebuild new file mode 100644 index 000000000000..dbe88df47dde --- /dev/null +++ b/dev-go/go-tools/go-tools-9999.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-go/go-tools/go-tools-9999.ebuild,v 1.1 2015/05/18 07:58:45 zmedico Exp $ + +EAPI=5 +inherit git-r3 + +KEYWORDS="" +DESCRIPTION="Go Tools" +GO_PN=golang.org/x/${PN##*-} +HOMEPAGE="https://godoc.org/${GO_PN}" +EGIT_REPO_URI="https://go.googlesource.com/${PN##*-}" +LICENSE="BSD" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/go-1.4 + dev-go/go-net" +RDEPEND="" +S="${WORKDIR}/src/${GO_PN}" +EGIT_CHECKOUT_DIR="${S}" +STRIP_MASK="*.a" + +src_compile() { + # Create a writable GOROOT in order to avoid sandbox violations. + GOROOT="${WORKDIR}/goroot" + cp -sR "${EPREFIX}"/usr/lib/go "${GOROOT}" || die + rm -rf "${GOROOT}/src/${GO_PN}" \ + "${GOROOT}/pkg/linux_${ARCH}/${GO_PN}" || die + GOROOT="${GOROOT}" GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die +} + +src_install() { + exeinto /usr/lib/go/bin + doexe "${WORKDIR}"/bin/* + insinto /usr/lib/go + find "${WORKDIR}"/{pkg,src} -name '.git*' -exec rm -rf {} \; 2>/dev/null + doins -r "${WORKDIR}"/{pkg,src} + exeinto /usr/lib/go/pkg/tool/linux_amd64 + find "${GOROOT}/pkg/tool/linux_amd64" -type f -exec doexe {} \; +} diff --git a/dev-go/go-tools/metadata.xml b/dev-go/go-tools/metadata.xml new file mode 100644 index 000000000000..059d713e41ed --- /dev/null +++ b/dev-go/go-tools/metadata.xml @@ -0,0 +1,7 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>zmedico@gentoo.org</email> + </maintainer> +</pkgmetadata> |