pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Command-line utility to search DuckDuckGo from the terminal. While googler is extremely popular among command line users, in many forums the need of a similar utility for privacy-aware DuckDuckGo came up. So here's `ddgr` for you!



Module Name:	pkgsrc-wip
Committed By:	pin <voidpin%protonmail.com@localhost>
Pushed By:	pin
Date:		Tue Feb 9 16:22:13 2021 +0100
Changeset:	abd7ff4b8ab40dc3c511ad464ba52b676eac3bdb

Modified Files:
	Makefile
Added Files:
	ddgr/DESCR
	ddgr/Makefile
	ddgr/PLIST
	ddgr/distinfo

Log Message:
Command-line utility to search DuckDuckGo from the terminal. While googler is
extremely popular among command line users, in many forums the need of a similar
utility for privacy-aware DuckDuckGo came up. So here's `ddgr` for you!

Unlike the web interface, you can specify the number of search results you would
like to see per page. It's more convenient than skimming through 30-odd search
results per page.
The default interface is carefully designed to use minimum space without
sacrificing readability.

A big advantage of ddgr over googler is DuckDuckGo works over the Tor network.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=abd7ff4b8ab40dc3c511ad464ba52b676eac3bdb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 Makefile      |  1 +
 ddgr/DESCR    | 11 +++++++++++
 ddgr/Makefile | 23 +++++++++++++++++++++++
 ddgr/PLIST    | 10 ++++++++++
 ddgr/distinfo |  6 ++++++
 5 files changed, 51 insertions(+)

diffs:
diff --git a/Makefile b/Makefile
index 3a50ea99ec..c90295b271 100644
--- a/Makefile
+++ b/Makefile
@@ -582,6 +582,7 @@ SUBDIR+=	dbus-dfbsd
 SUBDIR+=	dbus-explorer
 SUBDIR+=	dcdis
 SUBDIR+=	ddate
+SUBDIR+=	ddgr
 SUBDIR+=	ddocent
 SUBDIR+=	deadbeef
 SUBDIR+=	debian_base
diff --git a/ddgr/DESCR b/ddgr/DESCR
new file mode 100644
index 0000000000..ad97eea387
--- /dev/null
+++ b/ddgr/DESCR
@@ -0,0 +1,11 @@
+Command-line utility to search DuckDuckGo from the terminal. While googler is
+extremely popular among command line users, in many forums the need of a similar
+utility for privacy-aware DuckDuckGo came up. So here's `ddgr` for you!
+
+Unlike the web interface, you can specify the number of search results you would
+like to see per page. It's more convenient than skimming through 30-odd search
+results per page.
+The default interface is carefully designed to use minimum space without
+sacrificing readability.
+
+A big advantage of ddgr over googler is DuckDuckGo works over the Tor network.
diff --git a/ddgr/Makefile b/ddgr/Makefile
new file mode 100644
index 0000000000..323430f299
--- /dev/null
+++ b/ddgr/Makefile
@@ -0,0 +1,23 @@
+# $NetBSD$
+
+DISTNAME=	ddgr-1.9
+CATEGORIES=	www
+MASTER_SITES=	${MASTER_SITE_GITHUB:=jarun/}
+GITHUB_TAG=	v${PKGVERSION_NOREV}
+
+MAINTAINER=	pin%NetBSD.org@localhost
+HOMEPAGE=	https://github.com/jarun/ddgr
+COMMENT=	DuckDuckGo from the terminal
+LICENSE=	gnu-gpl-v3
+
+USE_LANGUAGES=	# none
+
+SUBST_CLASSES+=		prefix
+SUBST_MESSAGE.prefix=	Fixing paths.
+SUBST_STAGE.prefix=	pre-configure
+SUBST_FILES.prefix+=	Makefile
+SUBST_SED.prefix+=	-e 's,/usr/local,${PREFIX},g'
+SUBST_SED.prefix+=	-e 's,share/man,${PKGMANDIR},g'
+
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/ddgr/PLIST b/ddgr/PLIST
new file mode 100644
index 0000000000..a717ced1ce
--- /dev/null
+++ b/ddgr/PLIST
@@ -0,0 +1,10 @@
+@comment $NetBSD$
+bin/ddgr
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/entry_points.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/ddgr.py
+${PYSITELIB}/ddgr.pyc
+${PYSITELIB}/ddgr.pyo
diff --git a/ddgr/distinfo b/ddgr/distinfo
new file mode 100644
index 0000000000..154a9f8a38
--- /dev/null
+++ b/ddgr/distinfo
@@ -0,0 +1,6 @@
+$NetBSD$
+
+SHA1 (ddgr-1.9.tar.gz) = 7c1cf38e9cc64b6d55ef9ed6eb6494476f1e44a3
+RMD160 (ddgr-1.9.tar.gz) = 2aecec42c48ce2c4fc873438ff30e83020beab68
+SHA512 (ddgr-1.9.tar.gz) = 25fb995d32cf19ed1d4493ec463f60db39f4728ffe052dabccb49b721e65250e444bb4cc54f5f41dd1d6365d4e8bd1139277c44a9bd1d39394dec998ccb93b7c
+Size (ddgr-1.9.tar.gz) = 44181 bytes


Home | Main Index | Thread Index | Old Index