mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-13 03:03:15 +00:00
4942ce5a7d
- Add significantly better support in bsd.python.mk for working with Python Eggs and the easy_install system Tested by: pointyhat runs Approved by: pav (portmgr) Most work by: perky Thanks to: pav
39 lines
988 B
Makefile
39 lines
988 B
Makefile
# New ports collection makefile for: py-snmp2
|
|
# Date created: 16 Aug 2006
|
|
# Whom: Dmitriy Kirhlarov
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= snmp2
|
|
PORTVERSION= 2.0.9
|
|
CATEGORIES= net-mgmt python
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
MASTER_SITE_SUBDIR= pysnmp
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
DISTNAME= pysnmp-${PORTVERSION}
|
|
|
|
MAINTAINER= dimma@higis.ru
|
|
COMMENT= SNMP framework for Python
|
|
|
|
CONFLICTS= py??-snmp4-[0-9]* py??-snmp-3.*
|
|
|
|
USE_PYTHON= yes
|
|
USE_PYDISTUTILS=yes
|
|
PYDISTUTILS_PKGNAME= pysnmp
|
|
EXAMPLESDIR= ${PREFIX}/share/examples/py-${PORTNAME}
|
|
DOCSDIR= ${PREFIX}/share/doc/py-${PORTNAME}
|
|
MYPORTDOCS= CHANGES LICENSE MANIFEST PKG-INFO README contribution/WARNING
|
|
|
|
.if !defined(NOPORTDOCS)
|
|
post-install:
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
${TAR} -C ${WRKSRC}/examples -cf - . | ${TAR} -C ${EXAMPLESDIR} -xf -
|
|
${MKDIR} ${DOCSDIR}
|
|
${TAR} -C ${WRKSRC}/html -cf - . | ${TAR} -C ${DOCSDIR} -xf -
|
|
${TAR} -C ${WRKSRC}/ -cf - ${MYPORTDOCS} | ${TAR} -C ${DOCSDIR} -xf -
|
|
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|