Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 15 Sep 2016 09:45:17 +0000 (UTC)
From:      Bartek Rutkowski <robak@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r422183 - head/devel/etcd
Message-ID:  <201609150945.u8F9jHPK005771@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: robak
Date: Thu Sep 15 09:45:17 2016
New Revision: 422183
URL: https://svnweb.freebsd.org/changeset/ports/422183

Log:
  devel/etcd: minor port updates
  
  * Switch to USES=go and drop BUILD_DEPENDS
  * Limit portscout version scans to 2.* version
  * Correct PORTREVISION placement

Modified:
  head/devel/etcd/Makefile

Modified: head/devel/etcd/Makefile
==============================================================================
--- head/devel/etcd/Makefile	Thu Sep 15 09:28:54 2016	(r422182)
+++ head/devel/etcd/Makefile	Thu Sep 15 09:45:17 2016	(r422183)
@@ -2,8 +2,8 @@
 
 PORTNAME=	etcd
 PORTVERSION=	2.3.7
-PORTREVISION=	1
 DISTVERSIONPREFIX=	v
+PORTREVISION=	2
 CATEGORIES=	devel
 PKGNAMEPREFIX=	coreos-
 
@@ -13,10 +13,14 @@ COMMENT=	Highly-available key value stor
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
-BUILD_DEPENDS=	${LOCALBASE}/bin/go:lang/go
-
 CONFLICTS_INSTALL=coreos-etcdctl-0.* coreos-etcd3-*
 
+PORTSCOUT=	limit:^2.*
+
+USES=		go
+GO_PKGNAME=	github.com/coreos/etcd
+GO_TARGET=	github.com/coreos/etcd \
+		github.com/coreos/etcd/etcdctl
 USE_GITHUB=	yes
 GH_ACCOUNT=	coreos
 
@@ -27,12 +31,9 @@ PORTDOCS=	README.md
 OPTIONS_DEFINE=	DOCS
 DOCS_DESC=	Install etcd README file
 
-do-build:
-	cd ${WRKSRC}; ${SH} build
-
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/etcd ${STAGEDIR}${PREFIX}/bin/
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/etcdctl ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/etcd ${STAGEDIR}${PREFIX}/bin/
+	${INSTALL_PROGRAM} ${GO_WRKDIR_BIN}/etcdctl ${STAGEDIR}${PREFIX}/bin/
 
 do-install-DOCS-on:
 	${MKDIR} ${STAGEDIR}${DOCSDIR}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201609150945.u8F9jHPK005771>