commit:     4d7e66d6b736f3b06f1a41ad2ee07cf1d1cf71b0
Author:     Ultrabug <ultrabug <AT> gentoo <DOT> org>
AuthorDate: Tue Jun  3 13:04:24 2014 +0000
Commit:     Alexys Jacob <ultrabug <AT> gentoo <DOT> org>
CommitDate: Tue Jun  3 13:04:24 2014 +0000
URL:        
http://git.overlays.gentoo.org/gitweb/?p=dev/ultrabug.git;a=commit;h=4d7e66d6

new app-admin/consul ebuild

---
 app-admin/consul/Manifest            |  1 +
 app-admin/consul/consul-0.2.1.ebuild | 54 ++++++++++++++++++++++++++++++++++++
 2 files changed, 55 insertions(+)

diff --git a/app-admin/consul/Manifest b/app-admin/consul/Manifest
new file mode 100644
index 0000000..10a18f8
--- /dev/null
+++ b/app-admin/consul/Manifest
@@ -0,0 +1 @@
+EBUILD consul-0.2.1.ebuild 1020 SHA256 
c425c13b033c36d871078c01ae629de1b179b736068d7a1e13799ed387574e19 SHA512 
58ca9a619e2f128ea7c72d9c423c7b3bfd3ee9a15873f7180b134b92d608bd87145187987c9a40ac0205aaf4bb3592a0d2c440858442096e8623b311bcdaa923
 WHIRLPOOL 
6d8dc042f0cea42c57dddb73774d699166905bdecca8daa57021fc665a7897cac5cf6f7dd34bf0b6cbcfada980bfad0461f851b87c784964a4fdf904428e2f8c

diff --git a/app-admin/consul/consul-0.2.1.ebuild 
b/app-admin/consul/consul-0.2.1.ebuild
new file mode 100644
index 0000000..11ea2fd
--- /dev/null
+++ b/app-admin/consul/consul-0.2.1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI=5
+
+DESCRIPTION="tool for service discovery, monitoring and configuration."
+HOMEPAGE="http://www.consul.io";
+SRC_URI=""
+
+EGIT_REPO_URI="git://github.com/hashicorp/consul.git"
+if [[ ${PV} == *9999 ]]; then
+       KEYWORDS=""
+else
+       EGIT_COMMIT="v${PV}"
+       KEYWORDS="~amd64 ~x86"
+fi
+
+inherit git-2
+
+LICENSE="MPL-2.0"
+SLOT="0"
+IUSE=""
+
+DEPEND="
+       >=dev-lang/go-1.2
+       dev-vcs/git
+"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+       # see : https://github.com/hashicorp/consul/pull/188
+       sed -e 's/format:/format: deps/g' -i Makefile
+}
+
+src_compile() {
+       # create a suitable GOPATH
+       export GOPATH="${WORKDIR}/gopath"
+       mkdir -p "$GOPATH" || die
+
+       local MY_S="${GOPATH}/src/github.com/hashicorp/consul"
+
+       # make sure consul itself is in our GOPATH
+       mkdir -p "${GOPATH}/src/github.com/hashicorp" || die
+       mv "${S}" "${MY_S}" || die
+       ln -sf "${MY_S}" "${S}"
+
+       # let's do something fun
+       emake
+}
+
+src_install() {
+       dobin bin/consul
+}

Reply via email to