diff options
author | William Hubbs <williamh@gentoo.org> | 2015-07-06 21:33:26 +0000 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2015-07-06 21:33:26 +0000 |
commit | d14a6619678ec8808f3dcdeabac50a383fb7fc24 (patch) | |
tree | 63f59d11f4b8e531563d11e2fb8909c4e9ada0ae /dev-go/godep | |
parent | EAPI 5 bump. Rewrite ebuild from scratch and use Ant instead of autools. Fix ... (diff) | |
download | gentoo-2-d14a6619678ec8808f3dcdeabac50a383fb7fc24.tar.gz gentoo-2-d14a6619678ec8808f3dcdeabac50a383fb7fc24.tar.bz2 gentoo-2-d14a6619678ec8808f3dcdeabac50a383fb7fc24.zip |
pick up slot dependency on dev-lang/go
(Portage version: 2.2.18/cvs/Linux x86_64, signed Manifest commit with key 0x30C46538)
Diffstat (limited to 'dev-go/godep')
-rw-r--r-- | dev-go/godep/ChangeLog | 7 | ||||
-rw-r--r-- | dev-go/godep/godep-0_p20150520-r1.ebuild | 47 |
2 files changed, 53 insertions, 1 deletions
diff --git a/dev-go/godep/ChangeLog b/dev-go/godep/ChangeLog index 7fb12dcd8d97..164dc8e30078 100644 --- a/dev-go/godep/ChangeLog +++ b/dev-go/godep/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for dev-go/godep # Copyright 1999-2015 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-go/godep/ChangeLog,v 1.3 2015/06/06 10:07:52 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-go/godep/ChangeLog,v 1.4 2015/07/06 21:33:26 williamh Exp $ + +*godep-0_p20150520-r1 (06 Jul 2015) + + 06 Jul 2015; William Hubbs <williamh@gentoo.org> +godep-0_p20150520-r1.ebuild: + pick up slot dependency on dev-lang/go 06 Jun 2015; Justin Lecher <jlec@gentoo.org> metadata.xml: Add github to remote-id in metadata.xml diff --git a/dev-go/godep/godep-0_p20150520-r1.ebuild b/dev-go/godep/godep-0_p20150520-r1.ebuild new file mode 100644 index 000000000000..2b2ad7820594 --- /dev/null +++ b/dev-go/godep/godep-0_p20150520-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-go/godep/godep-0_p20150520-r1.ebuild,v 1.1 2015/07/06 21:33:26 williamh Exp $ + +EAPI=5 + +KEYWORDS="~amd64" +DESCRIPTION="dependency tool for go" +GO_PN=github.com/tools/${PN} +HOMEPAGE="https://${GO_PN}" +EGIT_COMMIT="98f5c2e8906df47a9eaafebbcd406adde2c8d0a7" +SRC_URI="https://${GO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz +https://github.com/kr/fs/archive/2788f0dbd16903de03cb8186e5c7d97b69ad387b.tar.gz -> go-fs-2788f0dbd16903de03cb8186e5c7d97b69ad387b.tar.gz" +LICENSE="BSD" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/go-1.4:=" +RDEPEND="" +S="${WORKDIR}/src/${GO_PN}" +STRIP_MASK="*.a" + +src_unpack() { + default + mkdir -p src/${GO_PN%/*} || die + mv ${PN}-${EGIT_COMMIT} src/${GO_PN} || die + mkdir -p src/github.com/kr || die + mv fs-2788f0dbd16903de03cb8186e5c7d97b69ad387b src/github.com/kr/fs || die +} + +src_prepare() { + # disable broken tests + sed -e 's:TestSave(:_\0:' -i save_test.go || die + sed -e 's:TestUpdate(:_\0:' -i update_test.go || die +} + +src_compile() { + GOPATH=${WORKDIR} go install -v -x -work ${GO_PN}/... || die +} + +src_test() { + GOPATH=${WORKDIR} \ + go test -x -v ${GO_PN}/... || die $? +} + +src_install() { + dobin "${WORKDIR}"/bin/* +} |