blob: ee877c27a004a2aba27a90ee92d519e80e621d4e (
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
|
# Created by: John W. O'Brien <john@saltant.com>
# $FreeBSD$
PORTNAME= pysmi
PORTVERSION= 0.0.7
CATEGORIES= net-mgmt python
MASTER_SITES= CHEESESHOP \
SF/pysmi/pysmi/${PORTVERSION}
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= john@saltant.com
COMMENT= SNMP/SMI MIB parsing in Python
LICENSE= BSD2CLAUSE
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}ply>=0:devel/py-ply
NO_ARCH= yes
USES= python shebangfix
USE_PYTHON= autoplist concurrent distutils
SHEBANG_FILES= scripts/mibdump.py
OPTIONS_DEFINE= DOCS EXAMPLES
PORTDOCS= *
PORTEXAMPLES= *
BASEDOCS= CHANGES.txt README.txt TODO.txt
post-patch:
${CP} ${FILESDIR}/tests__init__.py ${WRKSRC}/tests/__init__.py
${MV} ${WRKSRC}/tests ${WRKSRC}/${PORTNAME}
post-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${BASEDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
post-install-EXAMPLES-on:
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>
|