aboutsummaryrefslogtreecommitdiffstats
path: root/net/turses/Makefile
blob: 11165e00a5612a3c803bc294bd4a1abd75635f9c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$

PORTNAME=   turses
PORTVERSION=    0.2.15
CATEGORIES= net python
MASTER_SITES=   CHEESESHOP

MAINTAINER= koobs@FreeBSD.org
COMMENT=    Python Twitter client for the console

LICENSE=    GPLv3

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}oauth2>0:${PORTSDIR}/net/py-oauth2 \
        ${PYTHON_PKGNAMEPREFIX}urwid>0:${PORTSDIR}/devel/py-urwid \
        ${PYTHON_PKGNAMEPREFIX}tweepy>=2.0:${PORTSDIR}/net/py-tweepy

TEST_DEPENDS:=  ${RUN_DEPENDS} \
        ${PYTHON_PKGNAMEPREFIX}nose>0:${PORTSDIR}/devel/py-nose \
        ${PYTHON_PKGNAMEPREFIX}mock>0:${PORTSDIR}/devel/py-mock

OPTIONS_DEFINE= TESTS
TESTS_DESC= Install tools for unit tests
OPTIONSFILE?=   ${PORT_DBDIR}/py-${PORTNAME}/options

.include <bsd.port.options.mk>

USE_PYTHON=     -2.7
USE_PYDISTUTILS=    easy_install

.if ${PORT_OPTIONS:MTESTS}
BUILD_DEPENDS:= ${TEST_DEPENDS}
.endif

regression-test: build
    @cd ${WRKSRC} && ${PYTHON_CMD} ${PYSETUP} test

.include <bsd.port.mk>