Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Feb 2023 00:12:22 GMT
From:      Hiroki Tagato <tagattie@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: a5d97dfa8a2e - 2023Q1 - textproc/peco: update to 0.5.10 and take maintainership
Message-ID:  <202302210012.31L0CMJX039006@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2023Q1 has been updated by tagattie:

URL: https://cgit.FreeBSD.org/ports/commit/?id=a5d97dfa8a2e94e30ef0029a83e8b0266aab3933

commit a5d97dfa8a2e94e30ef0029a83e8b0266aab3933
Author:     Hiroki Tagato <tagattie@FreeBSD.org>
AuthorDate: 2023-02-21 00:06:05 +0000
Commit:     Hiroki Tagato <tagattie@FreeBSD.org>
CommitDate: 2023-02-21 00:12:10 +0000

    textproc/peco: update to 0.5.10 and take maintainership
    
    While here:
    - switch to USES=go:modules
    - add DOCS option
    
    Changelog: https://github.com/peco/peco/blob/v0.5.10/Changes
    
    PR:             269700
    Approved by:    fernape
    MFH:            2023Q1
    
    (cherry picked from commit bd7e123608126e005d62041586cae486c5a1e62d)
---
 textproc/peco/Makefile | 56 ++++++++++++++++++++++----------------------------
 textproc/peco/distinfo | 24 +++++++++++++++++++---
 2 files changed, 46 insertions(+), 34 deletions(-)

diff --git a/textproc/peco/Makefile b/textproc/peco/Makefile
index 3382f6115ff6..ea31865a85f6 100644
--- a/textproc/peco/Makefile
+++ b/textproc/peco/Makefile
@@ -1,44 +1,38 @@
 PORTNAME=	peco
-PORTVERSION=	0.4.4
 DISTVERSIONPREFIX=	v
-PORTREVISION=	9
+DISTVERSION=	0.5.10
 CATEGORIES=	textproc
-MASTER_SITES=	LOCAL/knu
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	tagattie@FreeBSD.org
 COMMENT=	Simplistic interactive filtering tool
 WWW=		https://github.com/peco/peco
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		go
+USES=		go:modules
+
+USE_GITHUB=	yes
+GH_TUPLE=	\
+		davecgh:go-spew:v1.1.0:davecgh_go_spew/vendor/github.com/davecgh/go-spew \
+		google:btree:0c3044bc8bad:google_btree/vendor/github.com/google/btree \
+		jessevdk:go-flags:v1.1.0:jessevdk_go_flags/vendor/github.com/jessevdk/go-flags \
+		lestrrat-go:pdebug:39f9a71bcabe:lestrrat_go_pdebug/vendor/github.com/lestrrat-go/pdebug \
+		mattn:go-runewidth:v0.0.9:mattn_go_runewidth/vendor/github.com/mattn/go-runewidth \
+		nsf:termbox-go:v1.1.1:nsf_termbox_go/vendor/github.com/nsf/termbox-go \
+		pkg:errors:248dadf4e906:pkg_errors/vendor/github.com/pkg/errors \
+		pmezard:go-difflib:v1.0.0:pmezard_go_difflib/vendor/github.com/pmezard/go-difflib \
+		stretchr:testify:18a02ba4a312:stretchr_testify/vendor/github.com/stretchr/testify
+
+GO_TARGET=	./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:Mpeco-*.tar.gz}
-
-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/
+PORTDOCS=	Changes README.md
+
+OPTIONS_DEFINE=	DOCS
+
+post-install-DOCS-on:
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>
diff --git a/textproc/peco/distinfo b/textproc/peco/distinfo
index 1f1118ed8bb3..eb3e89005a57 100644
--- a/textproc/peco/distinfo
+++ b/textproc/peco/distinfo
@@ -1,3 +1,21 @@
-TIMESTAMP = 1477476482
-SHA256 (peco-v0.4.4.tar.gz) = 01f8ce6c4dbbe048da98a9809dbba99df64dac6823ddbe98fdc1b0b1955c00b3
-SIZE (peco-v0.4.4.tar.gz) = 1079119
+TIMESTAMP = 1676854416
+SHA256 (peco-peco-v0.5.10_GH0.tar.gz) = 781c2effc4f6a58d9ff96fb0fc8b0fba3aab56a91a34933d68c5de3aea5fe3f6
+SIZE (peco-peco-v0.5.10_GH0.tar.gz) = 81697
+SHA256 (davecgh-go-spew-v1.1.0_GH0.tar.gz) = 1f7e0bd2db0341925b5f2ee5834e99380f4c2b1bd36cf0fa62d7717899d39d62
+SIZE (davecgh-go-spew-v1.1.0_GH0.tar.gz) = 42337
+SHA256 (google-btree-0c3044bc8bad_GH0.tar.gz) = ff25b8e325f18ab055fddf561a2c9851268bcbce17885d20966a48f3656ba404
+SIZE (google-btree-0c3044bc8bad_GH0.tar.gz) = 14149
+SHA256 (jessevdk-go-flags-v1.1.0_GH0.tar.gz) = 86f199a0c55e88647bbabf806bd3ac5aeb5abda5c3a2e0fbf65863f75b536017
+SIZE (jessevdk-go-flags-v1.1.0_GH0.tar.gz) = 54372
+SHA256 (lestrrat-go-pdebug-39f9a71bcabe_GH0.tar.gz) = a3351415b94e0bb29bbdcd91e4b0bb2fdaf189ac314385412136b5893411019e
+SIZE (lestrrat-go-pdebug-39f9a71bcabe_GH0.tar.gz) = 5179
+SHA256 (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 4f20a337ad06e071f29535afe9c5207d3e8840c8c86672bbc5f9837c6229c835
+SIZE (mattn-go-runewidth-v0.0.9_GH0.tar.gz) = 16714
+SHA256 (nsf-termbox-go-v1.1.1_GH0.tar.gz) = 05ad3261fbead5fbcd8d69a4addc50fc0a292f660881964fbed93c5a9e7481d3
+SIZE (nsf-termbox-go-v1.1.1_GH0.tar.gz) = 37575
+SHA256 (pkg-errors-248dadf4e906_GH0.tar.gz) = 9208ff9e330d5c23de36e791dac5fedfaee01ec0462583ff3e31fdb1f6c3de40
+SIZE (pkg-errors-248dadf4e906_GH0.tar.gz) = 11339
+SHA256 (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 28f3dc1b5c0efd61203ab07233f774740d3bf08da4d8153fb5310db6cea0ebda
+SIZE (pmezard-go-difflib-v1.0.0_GH0.tar.gz) = 11398
+SHA256 (stretchr-testify-18a02ba4a312_GH0.tar.gz) = 26920e2c93050e81ac55fed887e49789d12ce3c6f307f3fe570397d47670ebe6
+SIZE (stretchr-testify-18a02ba4a312_GH0.tar.gz) = 83524



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