Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 26 Oct 2016 10:12:33 +0000 (UTC)
From:      Akinori MUSHA <knu@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r424685 - head/textproc/peco
Message-ID:  <201610261012.u9QACXWF066795@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: knu
Date: Wed Oct 26 10:12:33 2016
New Revision: 424685
URL: https://svnweb.freebsd.org/changeset/ports/424685

Log:
  Update to 0.4.4.
  
  Peco started to use glide to fix dependencies, so depending on other
  ports no longer works.  We need to have our own distfile and put it in
  the local-distfiles directory.

Modified:
  head/textproc/peco/Makefile
  head/textproc/peco/distinfo

Modified: head/textproc/peco/Makefile
==============================================================================
--- head/textproc/peco/Makefile	Wed Oct 26 09:31:59 2016	(r424684)
+++ head/textproc/peco/Makefile	Wed Oct 26 10:12:33 2016	(r424685)
@@ -2,29 +2,44 @@
 # $FreeBSD$
 
 PORTNAME=	peco
-PORTVERSION=	0.3.5
+PORTVERSION=	0.4.4
 DISTVERSIONPREFIX=	v
 CATEGORIES=	textproc
+MASTER_SITES=	LOCAL/knu
 
 MAINTAINER=	knu@FreeBSD.org
 COMMENT=	Simplistic interactive filtering tool
 
 LICENSE=	MIT
 
-BUILD_DEPENDS=	${LOCALBASE}/${GO_LIBDIR}/github.com/jessevdk/go-flags.a:devel/go-flags \
-		${LOCALBASE}/${GO_LIBDIR}/github.com/mattn/go-runewidth.a:devel/go-runewidth \
-		${LOCALBASE}/${GO_LIBDIR}/github.com/nsf/termbox-go.a:devel/go-termbox \
-		${LOCALBASE}/${GO_LIBDIR}/github.com/google/btree.a:devel/go-btree
-
 USES=		go
-USE_GITHUB=	yes
 
-WRKSRC_SUBDIR=	cmd/peco
-GO_PKGNAME=	github.com/${PORTNAME}/${PORTNAME}/cmd/peco
+WRKSRC_SUBDIR=	${GO_PKG_SUBDIR}
+WRKSRC_GITDIR=	${WRKSRC:S|/${WRKSRC_SUBDIR}$$||}
+GO_PKG_GITURL=	https://github.com/${PORTNAME}/${PORTNAME}
+GO_PKG_SUBDIR=	cmd/peco
+GO_PKGNAME=	${GO_PKG_GITURL:S|^https://||}/${GO_PKG_SUBDIR}
 PLIST_FILES=	bin/peco
+UPLOAD_FILE=	${_DISTDIR:S|/$||}/${DISTFILES:[1]}
 
 post-extract:
 	@${MKDIR} ${GO_WRKSRC:H:H:H}
 	@${LN} -sf ${WRKSRC:H:H} ${GO_WRKSRC:H:H}
 
+maintainer-fetch:
+	@${MAKE} clean
+	@${MKDIR} ${WRKSRC_GITDIR}
+	@git clone ${GO_PKG_GITURL} \
+		--branch v${DISTVERSION} --depth 1 ${WRKSRC_GITDIR}
+	@cd ${WRKSRC_GITDIR} && glide install
+	@${TAR} zcf ${UPLOAD_FILE} \
+		-C ${WRKSRC_GITDIR}/.. --exclude .git ${DISTNAME}
+	@${MAKE} makesum
+	@${MAKE} clean
+
+${UPLOAD_FILE}: maintainer-fetch
+
+maintainer-distfile: ${UPLOAD_FILE}
+	@rsync -aP ${UPLOAD_FILE} freefall.freebsd.org:public_distfiles/
+
 .include <bsd.port.mk>

Modified: head/textproc/peco/distinfo
==============================================================================
--- head/textproc/peco/distinfo	Wed Oct 26 09:31:59 2016	(r424684)
+++ head/textproc/peco/distinfo	Wed Oct 26 10:12:33 2016	(r424685)
@@ -1,2 +1,3 @@
-SHA256 (peco-peco-v0.3.5_GH0.tar.gz) = 416d2547b639b11563d0bd910fa043e532f25fcc40de3ec0d7bec4943747fff1
-SIZE (peco-peco-v0.3.5_GH0.tar.gz) = 59443
+TIMESTAMP = 1477476482
+SHA256 (peco-v0.4.4.tar.gz) = 01f8ce6c4dbbe048da98a9809dbba99df64dac6823ddbe98fdc1b0b1955c00b3
+SIZE (peco-v0.4.4.tar.gz) = 1079119



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