aboutsummaryrefslogtreecommitdiffstats
path: root/security/py-python-registry/Makefile
blob: 3dc6318559934f6723cab43378612d0712a4ed9f (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
45
46
47
# Created by: Antoine Brodin <antoine@FreeBSD.org>
# $FreeBSD$

PORTNAME=   python-registry
PORTVERSION=    1.0.0
CATEGORIES= security devel python
MASTER_SITES=   GH \
        LOCAL/antoine
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= antoine@FreeBSD.org
COMMENT=    Read access to Windows Registry files

LICENSE=    AL2

USE_GITHUB= yes
GH_ACCOUNT= williballenthin
GH_TAGNAME= v${PORTVERSION}
GH_COMMIT=  1d16db8

USES=       shebangfix
SHEBANG_FILES=  samples/*.py
python_OLD_CMD= .*
python_CMD= ${PYTHON_CMD}
USE_PYTHON= yes
USE_PYDISTUTILS=    yes
PYTHON_PY3K_PLIST_HACK= yes

OPTIONS_DEFINE= DOCS EXAMPLES

PORTDOCS=   *
PORTEXAMPLES=   *

.include <bsd.port.options.mk>

post-install:
.if ${PORT_OPTIONS:MDOCS}
    @${MKDIR} ${STAGEDIR}${DOCSDIR}
    ${INSTALL_DATA} ${WRKSRC}/CHANGELOG.TXT ${WRKSRC}/CONTRIBUTORS.TXT ${WRKSRC}/README.txt \
        ${WRKSRC}/documentation/* ${STAGEDIR}${DOCSDIR}
.endif
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/samples/*.py ${STAGEDIR}${EXAMPLESDIR}
.endif

.include <bsd.port.mk>