1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-30 10:38:37 +00:00

- Update to 4.2

- Use devel/py-pytest for the test target

Changes:	https://github.com/jarun/googler/releases/tag/v4.2
This commit is contained in:
Nicola Vitale 2020-09-25 20:32:31 +00:00
parent eec5dd6f57
commit 700c0edaa0
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=550082
2 changed files with 5 additions and 11 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= googler
PORTVERSION= 4.0
PORTVERSION= 4.2
DISTVERSIONPREFIX= v
CATEGORIES= www
@ -13,8 +13,6 @@ LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= xclip:x11/xclip
TEST_DEPENDS= bash:shells/bash \
gshuf:sysutils/coreutils
USES= python:3.5+ shebangfix
USE_GITHUB= yes
@ -28,19 +26,15 @@ PLIST_FILES= bin/googler man/man1/googler.1.gz
SHEBANG_FILES= googler
USE_LOCALE?= en_US.UTF-8
post-patch:
@${SED} -i.bak 's/^\(ENABLE_SELF_UPGRADE_MECHANISM = \)True$$/\1False/' \
${WRKSRC}/${PORTNAME}
@${REINPLACE_CMD} -e 's/shuf/gshuf/' ${WRKSRC}/tests/test
@${REINPLACE_CMD} -e 's/python3/${PYTHON_VERSION}/' ${WRKSRC}/tests/test
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}/${PREFIX}/bin/${PORTNAME}
${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${STAGEDIR}/${MANPREFIX}/man/man1/
do-test:
@${SETENV} LANG=${USE_LOCALE} LC_ALL=${USE_LOCALE} ${WRKSRC}/tests/test --ci
@cd ${WRKSRC} && ${PYTHON_CMD} -m pytest tests
.include <bsd.port.mk>

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1575568042
SHA256 (jarun-googler-v4.0_GH0.tar.gz) = f72593ca2a3dccd7301c0fed55effd223cc38f6c21910bffbbfba1360c985cd3
SIZE (jarun-googler-v4.0_GH0.tar.gz) = 77873
TIMESTAMP = 1601064684
SHA256 (jarun-googler-v4.2_GH0.tar.gz) = ee0887ec30aea14823bb32117c97f4af8cdba381244b393665d2e273f8b60b43
SIZE (jarun-googler-v4.2_GH0.tar.gz) = 80005