ddgr: bump to 1.6 (#3381)

This commit is contained in:
Crestwave
2018-11-17 21:14:41 +08:00
committed by fbrosson
parent 325c03b6a9
commit 2571069b0f
2 changed files with 5 additions and 32 deletions

View File

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

View File

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