aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-sanetime/Makefile
blob: b07db677ea6bf82a91029f4ba16ac646a5a94b3c (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
# Created by: Kubilay Kocak <koobs@FreeBSD.org>
# $FreeBSD$

PORTNAME=   sanetime
PORTVERSION=    4.2.3
PORTREVISION=   1
CATEGORIES= devel python astro
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= koobs@FreeBSD.org
COMMENT=    Sane date/time Python interface, with Django support

LICENSE=    MIT

RUN_DEPENDS=    ${PYTHON_PKGNAMEPREFIX}dateutil>=1.5:${PORTSDIR}/devel/py-dateutil \
        ${PYTHON_PKGNAMEPREFIX}pytz>=2010:${PORTSDIR}/devel/py-pytz
TEST_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}unittest2:${PORTSDIR}/devel/py-unittest2

OPTIONS_DEFINE= TESTS
TESTS_DESC= Include tools for unit tests

USES=       python:2
USE_PYTHON= distutils autoplist

TESTS_BUILD_DEPENDS=    ${TEST_DEPENDS}

.include <bsd.port.options.mk>

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

.include <bsd.port.mk>