diff --git a/www/Makefile b/www/Makefile index f116682fb981..80964c45e10f 100644 --- a/www/Makefile +++ b/www/Makefile @@ -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 diff --git a/www/py-weboob/Makefile b/www/py-weboob/Makefile new file mode 100644 index 000000000000..27ffeb438d7e --- /dev/null +++ b/www/py-weboob/Makefile @@ -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 diff --git a/www/py-weboob/distinfo b/www/py-weboob/distinfo new file mode 100644 index 000000000000..7af26bc416ba --- /dev/null +++ b/www/py-weboob/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1518519428 +SHA256 (weboob-1.3+1.tar.gz) = eb38fdd48f93cdae3e67042dfb34640159e4978616f74679bac5378ae1f962c4 +SIZE (weboob-1.3+1.tar.gz) = 2697842 diff --git a/www/py-weboob/pkg-descr b/www/py-weboob/pkg-descr new file mode 100644 index 000000000000..6ca2c9e9c9c3 --- /dev/null +++ b/www/py-weboob/pkg-descr @@ -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