- Update to 3.6

- Add x11/xclip as run dependency (x11/xsel does not work)

Changes:	https://github.com/jarun/googler/releases/tag/v3.6
This commit is contained in:
Nicola Vitale 2018-08-16 11:56:47 +00:00
parent 1bfb0da556
commit a2a3a860a7
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=477322
3 changed files with 21 additions and 5 deletions

View File

@ -2,9 +2,9 @@
# $FreeBSD$
PORTNAME= googler
PORTVERSION= 3.2
PORTVERSION= 3.6
DISTVERSIONPREFIX= v
PORTREVISION= 1
PORTREVISION= 0
CATEGORIES= www
MAINTAINER= nivit@FreeBSD.org
@ -13,6 +13,8 @@ COMMENT= Google Search, Google Site Search, Google News from the terminal
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= xclip:x11/xclip
USES= python:3.3+ shebangfix
SHEBANG_FILES= googler
USE_GITHUB= yes

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1500360091
SHA256 (jarun-googler-v3.2_GH0.tar.gz) = 62c43871e2095fc05a2b632173f3d80b952531dc7bb306b24dcacdbc0472ae5a
SIZE (jarun-googler-v3.2_GH0.tar.gz) = 58102
TIMESTAMP = 1534410147
SHA256 (jarun-googler-v3.6_GH0.tar.gz) = 514218f5155a2c1bd653462a503507beafca9d7ddff7203aeabb3ab4812e4b44
SIZE (jarun-googler-v3.6_GH0.tar.gz) = 71738

View File

@ -0,0 +1,14 @@
--- googler.orig 2018-05-23 03:22:46 UTC
+++ googler
@@ -2083,9 +2083,9 @@ class GooglerCmd(object):
try:
# try copying the url to clipboard using native utilities
if sys.platform.startswith(('linux', 'freebsd', 'openbsd')):
- if shutil.which('xsel') is None:
+ if shutil.which('xclip') is None:
raise FileNotFoundError
- copier_params = ['xsel', '-b', '-i']
+ copier_params = ['xclip', '-selection', 'clipboard']
elif sys.platform == 'darwin':
copier_params = ['pbcopy']
elif sys.platform == 'win32':