openbsd-ports/security/py-paramiko/Makefile

41 lines
1001 B
Makefile
Raw Normal View History

2013-03-11 07:35:43 -04:00
# $OpenBSD: Makefile,v 1.29 2013/03/11 11:41:28 espie Exp $
2009-08-31 21:29:02 -04:00
COMMENT = Python module that implements the SSH2 protocol
MODPY_EGG_VERSION = 1.10.0
2009-08-31 21:29:02 -04:00
DISTNAME = paramiko-${MODPY_EGG_VERSION}
PKGNAME = py-${DISTNAME}
CATEGORIES = security
HOMEPAGE = https://github.com/paramiko/paramiko/
2009-08-31 21:29:02 -04:00
MAINTAINER = Benoit Lecocq <benoit@openbsd.org>
# LGPL
2009-08-31 21:29:02 -04:00
PERMIT_PACKAGE_CDROM = Yes
MASTER_SITES = ${MASTER_SITE_PYPI:=p/paramiko/}
2009-08-31 21:29:02 -04:00
MODULES = lang/python
2009-08-31 21:29:02 -04:00
MODPY_SETUPTOOLS = Yes
2010-11-20 12:22:40 -05:00
RUN_DEPENDS = security/py-crypto
2013-03-11 07:35:43 -04:00
TEST_DEPENDS = ${RUN_DEPENDS}
pre-build:
2009-08-31 21:29:02 -04:00
@perl -pi -e "s,^\#\!/usr/bin/env python,#!${MODPY_BIN}," \
${WRKSRC}/demos/*.py
post-install:
2009-08-31 21:29:02 -04:00
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/py-paramiko
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/py-paramiko
${INSTALL_DATA} ${WRKSRC}/docs/* ${PREFIX}/share/doc/py-paramiko
${INSTALL_DATA} ${WRKSRC}/demos/* \
${PREFIX}/share/examples/py-paramiko
2013-03-11 07:35:43 -04:00
do-test:
2009-08-31 21:29:02 -04:00
cd ${WRKSRC} && ${MODPY_BIN} test.py --verbose
.include <bsd.port.mk>