mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-03 06:04:53 +00:00
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
This commit is contained in:
parent
ae07fa1c69
commit
a77ffdb2bf
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=463855
@ -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
|
||||
|
67
www/py-weboob/Makefile
Normal file
67
www/py-weboob/Makefile
Normal file
@ -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>
|
3
www/py-weboob/distinfo
Normal file
3
www/py-weboob/distinfo
Normal file
@ -0,0 +1,3 @@
|
||||
TIMESTAMP = 1518519428
|
||||
SHA256 (weboob-1.3+1.tar.gz) = eb38fdd48f93cdae3e67042dfb34640159e4978616f74679bac5378ae1f962c4
|
||||
SIZE (weboob-1.3+1.tar.gz) = 2697842
|
5
www/py-weboob/pkg-descr
Normal file
5
www/py-weboob/pkg-descr
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user