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.
This commit is contained in:
Akinori MUSHA 2016-10-26 10:12:33 +00:00
parent 4412dccfb0
commit 42289ee56e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=424685
2 changed files with 27 additions and 11 deletions

View File

@ -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>

View File

@ -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