aboutsummaryrefslogtreecommitdiffstats
path: root/www/py-scrapy/Makefile
diff options
context:
space:
mode:
authorrm <rm@FreeBSD.org>2012-12-02 18:58:49 +0800
committerrm <rm@FreeBSD.org>2012-12-02 18:58:49 +0800
commit8894aeac41cdb05b99356716a05cb90c34013455 (patch)
treeae35beb5580a6ef628d280e965518491f1c96c33 /www/py-scrapy/Makefile
parent3b117770a0b329d30b89ae2ee3224686f8c6c619 (diff)
downloadfreebsd-ports-gnome-8894aeac41cdb05b99356716a05cb90c34013455.tar.gz
freebsd-ports-gnome-8894aeac41cdb05b99356716a05cb90c34013455.tar.zst
freebsd-ports-gnome-8894aeac41cdb05b99356716a05cb90c34013455.zip
- update to 0.16.2
- trim Makefile header - remove indefinite article from COMMENT - add LICENSE - remove not needed BUILD_DEPENDS - depend on TwistedCore via USE_TWISTED_RUN instead of direct dependency on meta-port - convert to optionsng - convert PYTHON_SITELIBDIR usage with PYTHON_PKGNAMEPREFIX PR: 173661 Submitted by: rm (myself) Approved by: maintainer timeout (2 weeks+) Feature safe: yes
Diffstat (limited to 'www/py-scrapy/Makefile')
-rw-r--r--www/py-scrapy/Makefile34
1 files changed, 16 insertions, 18 deletions
diff --git a/www/py-scrapy/Makefile b/www/py-scrapy/Makefile
index 3c2a2c871d9a..9ba99683d373 100644
--- a/www/py-scrapy/Makefile
+++ b/www/py-scrapy/Makefile
@@ -1,35 +1,33 @@
-# New ports collection makefile for: py-scrapy
-# Date created: 10 Jul 2009
-# Whom: Qing Feng <qingfeng@douban.com>
-#
+# Created by: Qing Feng <qingfeng@douban.com>
# $FreeBSD$
-#
PORTNAME= Scrapy
-PORTVERSION= 0.12.0.2542
+PORTVERSION= 0.16.2
CATEGORIES= www python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= clsung@FreeBSD.org
-COMMENT= A high level scraping and web crawling framework
+COMMENT= High level scraping and web crawling framework
-BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=8.2.0:${PORTSDIR}/devel/py-twisted \
- ${PYTHON_PKGNAMEPREFIX}lxml>=2.0:${PORTSDIR}/devel/py-lxml
-RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}twisted>=8.2.0:${PORTSDIR}/devel/py-twisted \
- ${PYTHON_PKGNAMEPREFIX}lxml>=2.0:${PORTSDIR}/devel/py-lxml \
- ${PYTHON_SITELIBDIR}/_sqlite3.so:${PORTSDIR}/databases/py-sqlite3
+LICENSE= BSD
-USE_PYTHON= 2.6-2.7
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}lxml>=2.0:${PORTSDIR}/devel/py-lxml \
+ ${PYTHON_PKGNAMEPREFIX}sqlite3>0:${PORTSDIR}/databases/py-sqlite3 \
+ ${PYTHON_PKGNAMEPREFIX}w3lib>=1.2:${PORTSDIR}/www/py-w3lib
+
+USE_PYTHON= -2.7
USE_PYDISTUTILS=easy_install
+USE_TWISTED_RUN=yes
-OPTIONS= SSL "Support HTTPS" on
+OPTIONS_DEFINE= SSL
+OPTIONS_DEFAULT=SSL
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_SSL)
-RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/OpenSSL/__init__.py:${PORTSDIR}/security/py-openssl
+.if ${PORT_OPTIONS:MSSL}
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl
.endif
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>