From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-827709-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id D93BA1386F2
	for <garchives@archives.gentoo.org>; Mon, 10 Aug 2015 19:49:49 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 39191141E9;
	Mon, 10 Aug 2015 19:49:47 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id D3B1D141E9
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Aug 2015 19:49:46 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id DB34E340B34
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Aug 2015 19:49:45 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 67EBF11B
	for <gentoo-commits@lists.gentoo.org>; Mon, 10 Aug 2015 19:49:41 +0000 (UTC)
From: "William Hubbs" <williamh@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" <williamh@gentoo.org>
Message-ID: <1439235823.a00a4d95b0974f98a175628bb97a0d643ed09973.williamh@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-go/go-snappy/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-go/go-snappy/go-snappy-0_pre20150729.ebuild
X-VCS-Directories: dev-go/go-snappy/
X-VCS-Committer: williamh
X-VCS-Committer-Name: William Hubbs
X-VCS-Revision: a00a4d95b0974f98a175628bb97a0d643ed09973
X-VCS-Branch: master
Date: Mon, 10 Aug 2015 19:49:41 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 1220dc3d-ba17-445e-a93e-a81b2050932a
X-Archives-Hash: b5960ec56d7d917daca61093356ab8cb

commit:     a00a4d95b0974f98a175628bb97a0d643ed09973
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Aug 10 19:43:43 2015 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Aug 10 19:43:43 2015 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a00a4d95

dev-go/go-snappy: convert to use go eclasses

 dev-go/go-snappy/go-snappy-0_pre20150729.ebuild | 35 +------------------------
 1 file changed, 1 insertion(+), 34 deletions(-)

diff --git a/dev-go/go-snappy/go-snappy-0_pre20150729.ebuild b/dev-go/go-snappy/go-snappy-0_pre20150729.ebuild
index d06f1cc..eb2196b 100644
--- a/dev-go/go-snappy/go-snappy-0_pre20150729.ebuild
+++ b/dev-go/go-snappy/go-snappy-0_pre20150729.ebuild
@@ -13,6 +13,7 @@ else
 	KEYWORDS="~amd64"
 	EGIT_COMMIT="723cc1e459b8eea2dea4583200fd60757d40097a"
 	SRC_URI="https://${EGO_SRC}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
+	inherit golang-vcs-snapshot
 fi
 inherit golang-build
 
@@ -23,37 +24,3 @@ SLOT="0/${PV}"
 IUSE=""
 DEPEND=""
 RDEPEND=""
-
-if [[ ${PV} != *9999* ]]; then
-src_unpack() {
-	local f
-
-	for f in ${A}
-	do
-		case "${f}" in
-			*.tar|*.tar.gz|*.tar.bz2|*.tar.xz)
-				local destdir=${WORKDIR}/${P}/src/${EGO_SRC}
-
-				debug-print "${FUNCNAME}: unpacking ${f} to ${destdir}"
-
-				# XXX: check whether the directory structure inside is
-				# fine? i.e. if the tarball has actually a parent dir.
-				mkdir -p "${destdir}" || die
-				tar -C "${destdir}" -x --strip-components 1 \
-					-f "${DISTDIR}/${f}" || die
-				;;
-			*)
-				debug-print "${FUNCNAME}: falling back to unpack for ${f}"
-
-				# fall back to the default method
-				unpack "${f}"
-				;;
-		esac
-	done
-}
-fi
-
-src_install() {
-	rm -rf src/${EGO_SRC}/.git* || die
-	golang-build_src_install
-}