blob: 69c168d3b4feec2ede6a4d302d7c8d04dccc1786 (
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
|
# New ports collection makefile for: py-snmp
# Date created: 26 March 2002
# Whom: Hye-Shik Chang <perky@fallin.lv>
#
# $FreeBSD$
#
PORTNAME= snmp
PORTVERSION= 2.0.3
CATEGORIES= net python
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= pysnmp
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
DISTNAME= pysnmp-${PORTVERSION}
MAINTAINER= perky@fallin.lv
USE_PYTHON= yes
USE_REINPLACE= yes
USE_PYDISTUTILS=yes
EXAMPLESDIR= ${PREFIX}/share/examples/py-snmp
DOCSDIR= ${PREFIX}/share/doc/py-snmp
post-patch:
@${REINPLACE_CMD} -E -e 's|^(#!/usr/bin/env[ ]+)python|\1${PYTHON_CMD}|' \
${WRKSRC}/setup.py
.if !defined(NOPORTDOCS)
post-install:
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/examples/* ${EXAMPLESDIR}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/html/* ${DOCSDIR}
.endif
.include <bsd.port.mk>
|