2013-03-28 19:58:48 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.13 2013/03/28 23:58:48 rpe Exp $
|
2008-06-09 14:20:36 -04:00
|
|
|
|
2013-03-28 19:58:48 -04:00
|
|
|
COMMENT = python interface to amazon web services
|
2008-06-09 14:20:36 -04:00
|
|
|
|
2013-03-28 19:58:48 -04:00
|
|
|
MODPY_EGG_VERSION = 2.8.0
|
2008-06-09 14:20:36 -04:00
|
|
|
DISTNAME = boto-${MODPY_EGG_VERSION}
|
2009-05-15 12:31:45 -04:00
|
|
|
PKGNAME = py-${DISTNAME}
|
2008-06-09 14:20:36 -04:00
|
|
|
CATEGORIES = net
|
|
|
|
|
2013-03-28 19:58:48 -04:00
|
|
|
HOMEPAGE = https://github.com/boto/boto
|
|
|
|
MASTER_SITES = ${MASTER_SITE_PYPI:=b/boto/}
|
2008-06-09 14:20:36 -04:00
|
|
|
|
2009-05-15 12:31:45 -04:00
|
|
|
MAINTAINER = Jim Razmus II <jim@openbsd.org>
|
2008-06-09 14:20:36 -04:00
|
|
|
|
|
|
|
# MIT
|
|
|
|
PERMIT_PACKAGE_CDROM = Yes
|
|
|
|
|
|
|
|
MODULES = lang/python
|
|
|
|
MODPY_SETUPTOOLS = Yes
|
|
|
|
|
2013-03-28 19:58:48 -04:00
|
|
|
RUN_DEPENDS = textproc/py-sphinx \
|
|
|
|
security/py-M2Crypto \
|
|
|
|
www/py-requests
|
|
|
|
|
|
|
|
BUILD_DEPENDS = ${RUN_DEPENDS}
|
|
|
|
|
|
|
|
TEST_DEPENDS = devel/py-nose \
|
|
|
|
devel/py-mock
|
|
|
|
|
|
|
|
DOCDIR = ${PREFIX}/share/doc/py-boto
|
|
|
|
|
|
|
|
post-build:
|
|
|
|
cd ${WRKSRC} && \
|
|
|
|
PYTHONPATH=${WRKSRC}\
|
|
|
|
${LOCALBASE}/bin/sphinx-build -N -b text docs/source \
|
|
|
|
build/doc
|
2008-06-09 14:20:36 -04:00
|
|
|
|
|
|
|
post-install:
|
2013-03-28 19:58:48 -04:00
|
|
|
${INSTALL_DATA_DIR} ${DOCDIR}/ref
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/README.rst ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/build/doc/*.txt ${DOCDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/build/doc/ref/*.txt ${DOCDIR}/ref
|
|
|
|
|
|
|
|
# XXX: This tests only ec2 and s2, which is only a small part of
|
|
|
|
# the whole testsuite. An aws user account with the respective
|
|
|
|
# features enabled is needed.
|
|
|
|
do-test:
|
|
|
|
@cd ${WRKSRC}/tests && python test.py -v -t ec2 -t s3
|
|
|
|
|
2008-06-09 14:20:36 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|