mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-04 06:15:24 +00:00
7f7b08fe54
- 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
34 lines
817 B
Makefile
34 lines
817 B
Makefile
# Created by: Qing Feng <qingfeng@douban.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Scrapy
|
|
PORTVERSION= 0.16.2
|
|
CATEGORIES= www python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= clsung@FreeBSD.org
|
|
COMMENT= High level scraping and web crawling framework
|
|
|
|
LICENSE= BSD
|
|
|
|
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_DEFINE= SSL
|
|
OPTIONS_DEFAULT=SSL
|
|
OPTIONSFILE= ${PORT_DBDIR}/py-${PORTNAME}/options
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MSSL}
|
|
RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}openssl>0:${PORTSDIR}/security/py-openssl
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|