From 85fb642eef48c3d02507beae4f0a321a2b3603bd Mon Sep 17 00:00:00 2001 From: Manuel Rüger Date: Sun, 15 Jan 2017 21:52:37 +0100 Subject: dev-go/glide: Initial version Package-Manager: portage-2.3.3 --- dev-go/glide/Manifest | 1 + dev-go/glide/glide-0.12.3.ebuild | 33 +++++++++++++++++++++++++++++++++ dev-go/glide/metadata.xml | 8 ++++++++ 3 files changed, 42 insertions(+) create mode 100644 dev-go/glide/Manifest create mode 100644 dev-go/glide/glide-0.12.3.ebuild create mode 100644 dev-go/glide/metadata.xml (limited to 'dev-go/glide') diff --git a/dev-go/glide/Manifest b/dev-go/glide/Manifest new file mode 100644 index 000000000000..8f3dfb6b21e0 --- /dev/null +++ b/dev-go/glide/Manifest @@ -0,0 +1 @@ +DIST glide-0.12.3.tar.gz 244609 SHA256 a304c29267cf7e00b7299b6ac8da0317f2f4f4096acb6cf817d4c745e0dee8b4 SHA512 525bd73ed4941428dd2ad06fb5ecf87faa555eb48025a7f9ff57b4b4913b6f1a4202d9875d017080b3e96aee7b3d467c03a815e1845d0686223208f960ef9a99 WHIRLPOOL eedf042adc1c1b421930806c3387024cf7e5dc55325cb46625c7efce586afbdd698f90226320e8f4377f27c517c399f30c6be817002748b116cc7fc51df6ef3c diff --git a/dev-go/glide/glide-0.12.3.ebuild b/dev-go/glide/glide-0.12.3.ebuild new file mode 100644 index 000000000000..3e1d8b09ae23 --- /dev/null +++ b/dev-go/glide/glide-0.12.3.ebuild @@ -0,0 +1,33 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +EGO_PN="github.com/Masterminds/glide" + +if [[ ${PV} == *9999 ]]; then + inherit golang-vcs +else + EGIT_COMMIT="v${PV/_/-}" + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" + inherit golang-vcs-snapshot +fi + +DESCRIPTION="Vendor Package Managment for Golang" +HOMEPAGE="http://github.com/Masterminds/glide" + +LICENSE="MIT" +SLOT="0" +IUSE="" + +S=${WORKDIR}/${P}/src/${EGO_PN} + +src_compile() { + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" go build -ldflags="-X main.version=${PV}" -o "bin/glide" glide.go || die +} + +src_install() { + dodoc README.md CHANGELOG.md + dobin bin/glide +} diff --git a/dev-go/glide/metadata.xml b/dev-go/glide/metadata.xml new file mode 100644 index 000000000000..97df2a00971b --- /dev/null +++ b/dev-go/glide/metadata.xml @@ -0,0 +1,8 @@ + + + + + mrueg@gentoo.org + Manuel Rüger + + -- cgit v1.2.3-65-gdbad