aboutsummaryrefslogtreecommitdiffstats
path: root/www
diff options
context:
space:
mode:
authorolivierd <olivierd@FreeBSD.org>2015-06-30 00:56:06 +0800
committerolivierd <olivierd@FreeBSD.org>2015-06-30 00:56:06 +0800
commitdab588c4015df6589812196d9923cbd2c28f21e5 (patch)
tree1db261697e3412cf8404b0181c03c560bfa9d75b /www
parentd586f1a7455a38c11f72317983404061548c9995 (diff)
downloadfreebsd-ports-gnome-dab588c4015df6589812196d9923cbd2c28f21e5.tar.gz
freebsd-ports-gnome-dab588c4015df6589812196d9923cbd2c28f21e5.tar.zst
freebsd-ports-gnome-dab588c4015df6589812196d9923cbd2c28f21e5.zip
Wikipedia is a Python library that makes it easy to access and parse data
from MediaWiki API. WWW: https://github.com/goldsmith/Wikipedia
Diffstat (limited to 'www')
-rw-r--r--www/Makefile1
-rw-r--r--www/py-wikipedia/Makefile21
-rw-r--r--www/py-wikipedia/distinfo2
-rw-r--r--www/py-wikipedia/pkg-descr4
4 files changed, 28 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index 245a29f7e8c0..a9e8e3a7b397 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1739,6 +1739,7 @@
SUBDIR += py-webware
SUBDIR += py-webware-component
SUBDIR += py-werkzeug
+ SUBDIR += py-wikipedia
SUBDIR += py-wikitools
SUBDIR += py-ws4py
SUBDIR += py-wsaccel
diff --git a/www/py-wikipedia/Makefile b/www/py-wikipedia/Makefile
new file mode 100644
index 000000000000..73852565bdf1
--- /dev/null
+++ b/www/py-wikipedia/Makefile
@@ -0,0 +1,21 @@
+# Created by: Olivier Duchateau
+# $FreeBSD$
+
+PORTNAME= wikipedia
+PORTVERSION= 1.4.0
+CATEGORIES= www python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= python@FreeBSD.org
+COMMENT= Wikipedia API for Python
+
+LICENSE= MIT
+
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.3.2:${PORTSDIR}/www/py-beautifulsoup \
+ ${PYTHON_PKGNAMEPREFIX}requests>=2.7:${PORTSDIR}/www/py-requests
+
+USES= python
+USE_PYTHON= distutils autoplist
+
+.include <bsd.port.mk>
diff --git a/www/py-wikipedia/distinfo b/www/py-wikipedia/distinfo
new file mode 100644
index 000000000000..a21b21dfadba
--- /dev/null
+++ b/www/py-wikipedia/distinfo
@@ -0,0 +1,2 @@
+SHA256 (wikipedia-1.4.0.tar.gz) = db0fad1829fdd441b1852306e9856398204dc0786d2996dd2e0c8bb8e26133b2
+SIZE (wikipedia-1.4.0.tar.gz) = 27748
diff --git a/www/py-wikipedia/pkg-descr b/www/py-wikipedia/pkg-descr
new file mode 100644
index 000000000000..90b039db715f
--- /dev/null
+++ b/www/py-wikipedia/pkg-descr
@@ -0,0 +1,4 @@
+Wikipedia is a Python library that makes it easy to access and parse data
+from MediaWiki API.
+
+WWW: https://github.com/goldsmith/Wikipedia