From a2a3a860a70339ffd1d9e9644dad8397a8a3ff50 Mon Sep 17 00:00:00 2001 From: Nicola Vitale Date: Thu, 16 Aug 2018 11:56:47 +0000 Subject: [PATCH] - 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 --- www/googler/Makefile | 6 ++++-- www/googler/distinfo | 6 +++--- www/googler/files/patch-googler | 14 ++++++++++++++ 3 files changed, 21 insertions(+), 5 deletions(-) create mode 100644 www/googler/files/patch-googler diff --git a/www/googler/Makefile b/www/googler/Makefile index 1e364251005c..95bda9eecba6 100644 --- a/www/googler/Makefile +++ b/www/googler/Makefile @@ -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 diff --git a/www/googler/distinfo b/www/googler/distinfo index 34e49d6b7944..6abd3983b5de 100644 --- a/www/googler/distinfo +++ b/www/googler/distinfo @@ -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 diff --git a/www/googler/files/patch-googler b/www/googler/files/patch-googler new file mode 100644 index 000000000000..f3fb30163b58 --- /dev/null +++ b/www/googler/files/patch-googler @@ -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':