aboutsummaryrefslogtreecommitdiffstats
path: root/math/py-bitvector/Makefile
blob: 9a44e5d7c0fd8493af814b34f9c1f29fe6eda8b8 (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
39
40
41
42
43
44
# New ports collection makefile for:    py-bitvector
# Date created:     2006-12-27
# Whom:         Li-Wen Hsu <lwhsu@lwhsu.org>
#
# $FreeBSD$
#

PORTNAME=   bitvector
PORTVERSION=    3.1
CATEGORIES= math python
MASTER_SITES=   CHEESESHOP
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   BitVector-${PORTVERSION}

MAINTAINER= lwhsu@FreeBSD.org
COMMENT=    A pure-Python memory-efficient packed representation for bit arrays

LICENSE=    PSFL

USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYDISTUTILS_PKGNAME=    BitVector

PORTDOCS=   README BitVector-${PORTVERSION}.html

PLIST_FILES=    %%PYTHON_SITELIBDIR%%/BitVector.py \
        %%PYTHON_SITELIBDIR%%/BitVector.pyc \
        %%PYTHON_SITELIBDIR%%/BitVector.pyo

post-extract:
    @${RM} -f ${WRKSRC}/test.py

.if !defined(NOPORTDOCS)
DOCSDIR=    ${PREFIX}/share/doc/py-${PORTNAME}

post-install:
    @${MKDIR} ${DOCSDIR}
    @${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
.endif

regression-test:
    @(cd ${WRKSRC}/TestBitVector && ${PYTHON_CMD} Test.py)

.include <bsd.port.mk>