Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F110986591
D13299.id35999.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D13299.id35999.diff
View Options
Index: head/www/Makefile
===================================================================
--- head/www/Makefile
+++ head/www/Makefile
@@ -1556,6 +1556,7 @@
SUBDIR += py-cssmin
SUBDIR += py-cssselect
SUBDIR += py-cssutils
+ SUBDIR += py-ddgr
SUBDIR += py-django
SUBDIR += py-django-allauth
SUBDIR += py-django-annotations
Index: head/www/py-ddgr/Makefile
===================================================================
--- head/www/py-ddgr/Makefile
+++ head/www/py-ddgr/Makefile
@@ -0,0 +1,34 @@
+# $FreeBSD$
+
+PORTNAME= ddgr
+DISTVERSIONPREFIX= v
+DISTVERSION= 1.1
+CATEGORIES= www
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= jsmith@resonatingmedia.com
+COMMENT= Command line tool for performing DuckDuckGo web searches
+
+LICENSE= GPLv3
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}requests>=2.4.3:www/py3-requests
+
+USES= python:3.3+ shebangfix
+USE_GITHUB= yes
+GH_ACCOUNT= jarun
+USE_PYTHON= concurrent requests
+NO_BUILD= yes
+NO_ARCH= yes
+SHEBANG_FILES= ${PORTNAME}
+python_OLD_CMD= "/usr/bin/env python3" # see bug#223980
+
+MAKE_ARGS= DOCDIR=${STAGEDIR}${DOCSDIR} FREEBSD_PYTHON_VER=${PYTHON_VER}
+
+OPTIONS_DEFINE= DOCS
+
+PLIST_FILES= bin/ddgr \
+ share/man/man1/ddgr-${PYTHON_VER}.1.gz
+PORTDOCS= README.md
+
+.include <bsd.port.mk>
Index: head/www/py-ddgr/distinfo
===================================================================
--- head/www/py-ddgr/distinfo
+++ head/www/py-ddgr/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1511990479
+SHA256 (jarun-ddgr-v1.1_GH0.tar.gz) = 6fbf7a638e3e4c0db57ef4a86f253b5810e5755b88727444b17d4528e3a4f5d8
+SIZE (jarun-ddgr-v1.1_GH0.tar.gz) = 38553
Index: head/www/py-ddgr/files/patch-Makefile
===================================================================
--- head/www/py-ddgr/files/patch-Makefile
+++ head/www/py-ddgr/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- Makefile.orig 2017-11-29 12:33:58 UTC
++++ Makefile
+@@ -13,7 +13,7 @@ install:
+ install -m755 -d $(DOCDIR)
+ gzip -c ddgr.1 > ddgr.1.gz
+ install -m755 ddgr $(BINDIR)
+- install -m644 ddgr.1.gz $(MANDIR)
++ install -m644 ddgr.1.gz $(MANDIR)/ddgr-${FREEBSD_PYTHON_VER}.1.gz
+ install -m644 README.md $(DOCDIR)
+ rm -f ddgr.1.gz
+
Index: head/www/py-ddgr/pkg-descr
===================================================================
--- head/www/py-ddgr/pkg-descr
+++ head/www/py-ddgr/pkg-descr
@@ -0,0 +1,7 @@
+ddgr is a cmdline utility to search DuckDuckGo from the terminal.
+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.
+
+WWW: https://github.com/jarun/ddgr
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 26, 8:16 PM (1 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
16848021
Default Alt Text
D13299.id35999.diff (2 KB)
Attached To
Mode
D13299: New port: www/py-ddgr: Command line tool for performing DuckDuckGo web searches
Attached
Detach File
Event Timeline
Log In to Comment