From 2571069b0f731660e13531d0538ef956c8531cc8 Mon Sep 17 00:00:00 2001 From: Crestwave <35413013+Crestwave@users.noreply.github.com> Date: Sat, 17 Nov 2018 21:14:41 +0800 Subject: [PATCH] ddgr: bump to 1.6 (#3381) --- .../ddgr/{ddgr-1.5.recipe => ddgr-1.6.recipe} | 7 +++-- www-client/ddgr/patches/ddgr-1.5.patch | 30 ------------------- 2 files changed, 5 insertions(+), 32 deletions(-) rename www-client/ddgr/{ddgr-1.5.recipe => ddgr-1.6.recipe} (93%) delete mode 100644 www-client/ddgr/patches/ddgr-1.5.patch diff --git a/www-client/ddgr/ddgr-1.5.recipe b/www-client/ddgr/ddgr-1.6.recipe similarity index 93% rename from www-client/ddgr/ddgr-1.5.recipe rename to www-client/ddgr/ddgr-1.6.recipe index a43b43360..5c2acee44 100644 --- a/www-client/ddgr/ddgr-1.5.recipe +++ b/www-client/ddgr/ddgr-1.6.recipe @@ -27,9 +27,8 @@ COPYRIGHT="2016-2018 Arun Prakash Jana" LICENSE="GNU GPL v3" REVISION="1" SOURCE_URI="$HOMEPAGE/archive/v$portVersion.tar.gz" -CHECKSUM_SHA256="b442f707a2c2ead42233d3bf3a9bf919e32ab9860e20d9d39f860840c13c0392" +CHECKSUM_SHA256="eae7ff1ab44dfda168a8bbe46593e80ca4a26ab45a9efbab13e6f466349e0e5c" SOURCE_FILENAME="ddgr-$portVersion.tar.gz" -PATCHES="ddgr-1.5.patch" ARCHITECTURES="any" @@ -46,6 +45,10 @@ BUILD_REQUIRES=" cmd:make " +TEST_REQUIRES=" + cmd:python3 + " + INSTALL() { make BINDIR=$binDir MANDIR=$manDir/man1 DOCDIR=$docDir install diff --git a/www-client/ddgr/patches/ddgr-1.5.patch b/www-client/ddgr/patches/ddgr-1.5.patch deleted file mode 100644 index 55c68161f..000000000 --- a/www-client/ddgr/patches/ddgr-1.5.patch +++ /dev/null @@ -1,30 +0,0 @@ ---- a/ddgr 2018-10-27 11:53:48.347865088 +0000 -+++ b/ddgr 2018-10-27 11:54:53.463470592 +0000 -@@ -1517,6 +1517,8 @@ - copier_params = ['pbcopy'] - elif sys.platform == 'win32': - copier_params = ['clip'] -+ elif sys.platform.startswith('haiku'): -+ copier_params = ['clipboard', '-i'] - - # If native clipboard utilities are absent, try to use terminal - # multiplexers, tmux/GNU screen, as fallback. ---- a/README.md 2018-10-27 11:53:55.458227712 +0000 -+++ b/README.md 2018-10-27 11:57:42.615251968 +0000 -@@ -77,7 +77,7 @@ - - `ddgr` requires Python 3.4 or later. Only the latest patch release of each minor version is supported. - --To copy url to clipboard at the omniprompt, `ddgr` looks for `xsel` or `xclip` or `termux-clipboard-set` (in the same order) on Linux, `pbcopy` (default installed) on OS X and `clip` (default installed) on Windows. -+To copy url to clipboard at the omniprompt, `ddgr` looks for `xsel` or `xclip` or `termux-clipboard-set` (in the same order) on Linux, `pbcopy` (default installed) on OS X, `clip` (default installed) on Windows and `clipboard` (default installed) on Haiku. - - Note: v1.1 and below require the Python3 `requests` library to make HTTPS requests. This dependency is removed in the later releases. - -@@ -87,6 +87,7 @@ - - [Debian](https://packages.debian.org/search?keywords=ddgr&searchon=names&exact=1) (`apt-get install ddgr`) - - [Fedora](https://apps.fedoraproject.org/packages/ddgr) (`dnf install ddgr`) - - [FreeBSD](https://www.freshports.org/www/ddgr/) (`pkg install ddgr`) -+- [Haiku](https://github.com/haikuports/haikuports/tree/master/www-client/ddgr) (`pkgman install ddgr`) - - [Homebrew](http://formulae.brew.sh/formula/ddgr) (`brew install ddgr`) - - [NixOS](https://github.com/NixOS/nixpkgs/tree/master/pkgs/applications/misc/ddgr) (`nix-env -i ddgr`) - - [openSUSE](https://software.opensuse.org/package/ddgr) (`zypper in ddgr`)