aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-filemagic/Makefile
blob: 964492aa49b502f209d4e53f812b14a5c58e3737 (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=   filemagic
PORTVERSION=    1.6
CATEGORIES= devel python
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= koobs@FreeBSD.org
COMMENT=    Python API for libmagic, the library behind the Unix file command

LICENSE=    APACHE20
LICENSE_FILE=   ${WRKSRC}/LICENSE

TEST_DEPENDS=   ${PYTHON_PKGNAMEPREFIX}mock>0:devel/py-mock

OPTIONS_DEFINE= TESTS

TESTS_DESC=     Install test suite requirements
TESTS_BUILD_DEPENDS=    ${TEST_DEPENDS}

USES=       python
USE_GITHUB= yes
USE_PYTHON= autoplist distutils

GH_ACCOUNT= aliles
GH_TAGNAME= b24df9f

.include <bsd.port.pre.mk>

.if ${PYTHON_REL} < 3000
TEST_DEPENDS+=  ${PYTHON_PKGNAMEPREFIX}unittest2>0:devel/py-unittest2
.endif

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

.include <bsd.port.post.mk>