Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Mar 2018 01:00:05 +0000 (UTC)
From:      "Jason E. Hale" <jhale@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r463855 - in head/www: . py-weboob
Message-ID:  <201803080100.w28105GA064526@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jhale
Date: Thu Mar  8 01:00:05 2018
New Revision: 463855
URL: https://svnweb.freebsd.org/changeset/ports/463855

Log:
  New port www/py-weboob
  
  Weboob is a collection of applications able to interact with websites,
  without requiring the user to open them in a browser. It also
  provides well-defined APIs to talk to websites lacking one.
  
  WWW: http://weboob.org

Added:
  head/www/py-weboob/
  head/www/py-weboob/Makefile   (contents, props changed)
  head/www/py-weboob/distinfo   (contents, props changed)
  head/www/py-weboob/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Thu Mar  8 00:58:52 2018	(r463854)
+++ head/www/Makefile	Thu Mar  8 01:00:05 2018	(r463855)
@@ -1894,6 +1894,7 @@
     SUBDIR += py-webhelpers
     SUBDIR += py-webkitgtk
     SUBDIR += py-webob
+    SUBDIR += py-weboob
     SUBDIR += py-websocket-client
     SUBDIR += py-webunit
     SUBDIR += py-werkzeug

Added: head/www/py-weboob/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-weboob/Makefile	Thu Mar  8 01:00:05 2018	(r463855)
@@ -0,0 +1,67 @@
+# $FreeBSD$
+
+PORTNAME=	weboob
+DISTVERSION=	1.3
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTFILES=	${PORTNAME}-${DISTVERSION}+1${EXTRACT_SUFX}
+
+MAINTAINER=	jhale@FreeBSD.org
+COMMENT=	Web Outside of Browsers
+
+LICENSE=	AGPLv3+
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dateutil>0:devel/py-dateutil@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pillow>=0:graphics/py-pillow@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}html2text>=3.200:textproc/py-html2text@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}cssselect>0:www/py-cssselect@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.0.0:www/py-requests@${PY_FLAVOR}
+RUN_DEPENDS:=	${BUILD_DEPENDS} \
+		${PYTHON_PKGNAMEPREFIX}prettytable>0:devel/py-prettytable@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}simplejson>0:devel/py-simplejson@${PY_FLAVOR} \
+		wget:ftp/wget \
+		gpg2:security/gnupg
+
+py27_BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}futures>0:devel/py-futures@${PY_FLAVOR} \
+			${PYTHON_PKGNAMEPREFIX}mechanize>0:www/py-mechanize@${PY_FLAVOR}
+py27_RUN_DEPENDS:=	${py27_BUILD_DEPENDS}
+
+USES=		python
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+PYDISTUTILS_BUILDARGS=	${CONFIGURE_ARGS}
+PYDISTUTILS_INSTALLARGS=-c -O1 --prefix=${PREFIX} ${CONFIGURE_ARGS}
+
+OPTIONS_DEFINE=		CLICOLOR MMS NSS QT5 RTMPDUMP
+OPTIONS_DEFAULT=	CLICOLOR NSS
+
+CLICOLOR_DESC=		Color command line interface
+CLICOLOR_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}termcolor>0:devel/py-termcolor@${PY_FLAVOR}
+
+MMS_RUN_DEPENDS=	mimms:multimedia/mimms
+
+NSS_RUN_DEPENDS=	${LOCALBASE}/share/certs/ca-root-nss.crt:security/ca_root_nss \
+			${PYTHON_PKGNAMEPREFIX}python-nss>0:security/py-python-nss@${PY_FLAVOR}
+
+QT5_USES=		gmake pyqt:5
+QT5_USE=		PYQT=core,gui,multimedia,multimediawidgets,sip,widgets
+QT5_CONFIGURE_ON=	--qt --xdg
+QT5_CONFIGURE_OFF=	--no-qt --no-xdg
+
+RTMPDUMP_RUN_DEPENDS=	rtmpdump:multimedia/rtmpdump
+
+post-patch:
+	@${REINPLACE_CMD} -e 's|share/man|man|g' ${WRKSRC}/setup.py
+	@${REINPLACE_CMD} -e 's|/etc/ssl/certs|${LOCALBASE}/etc/ssl|g' ${WRKSRC}/weboob/browser/nss.py
+
+post-patch-QT5-off:
+	@(cd ${WRKSRC}/man && ${RM} q*.1 weboob-config-qt.1)
+
+.include <bsd.port.mk>

Added: head/www/py-weboob/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-weboob/distinfo	Thu Mar  8 01:00:05 2018	(r463855)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1518519428
+SHA256 (weboob-1.3+1.tar.gz) = eb38fdd48f93cdae3e67042dfb34640159e4978616f74679bac5378ae1f962c4
+SIZE (weboob-1.3+1.tar.gz) = 2697842

Added: head/www/py-weboob/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-weboob/pkg-descr	Thu Mar  8 01:00:05 2018	(r463855)
@@ -0,0 +1,5 @@
+Weboob is a collection of applications able to interact with websites,
+without requiring the user to open them in a browser. It also
+provides well-defined APIs to talk to websites lacking one.
+
+WWW: http://weboob.org



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201803080100.w28105GA064526>