summaryrefslogtreecommitdiff
path: root/net/py-boto/Makefile
blob: 5be85faf5b54f0cc242307999fdcd7a5cccea1ab (plain)
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# $NetBSD: Makefile,v 1.23 2015/04/05 21:38:32 hiramatsu Exp $

DISTNAME=	boto-2.37.0
PKGNAME=	${PYPKGPREFIX}-${DISTNAME}
CATEGORIES=	net python www
MASTER_SITES=	https://pypi.python.org/packages/source/b/boto/

MAINTAINER=	pkgsrc-users@NetBSD.org
HOMEPAGE=	https://github.com/boto/boto/
COMMENT=	Python interface to Amazon web services
LICENSE=	mit

DEPENDS+=	${PYPKGPREFIX}-filechunkio-[0-9]*:../../devel/py-filechunkio

REPLACE_PYTHON+=	bin/* boto/pyami/launch_ami.py boto/services/bs.py
REPLACE_PYTHON+=	boto/services/result.py

PY_PATCHPLIST=			yes
PLIST_SUBST+=			PYVERSSUFFIX=${PYVERSSUFFIX}

post-install:
	${MV} ${DESTDIR}${PREFIX}/bin/asadmin \
		${DESTDIR}${PREFIX}/bin/asadmin${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/bundle_image \
		${DESTDIR}${PREFIX}/bin/bundle_image${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/cfadmin \
		${DESTDIR}${PREFIX}/bin/cfadmin${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/cq \
		${DESTDIR}${PREFIX}/bin/cq${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/cwutil \
		${DESTDIR}${PREFIX}/bin/cwutil${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/dynamodb_dump \
		${DESTDIR}${PREFIX}/bin/dynamodb_dump${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/dynamodb_load \
		${DESTDIR}${PREFIX}/bin/dynamodb_load${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/elbadmin \
		${DESTDIR}${PREFIX}/bin/elbadmin${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/fetch_file \
		${DESTDIR}${PREFIX}/bin/fetch_file${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/glacier \
		${DESTDIR}${PREFIX}/bin/glacier${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/instance_events \
		${DESTDIR}${PREFIX}/bin/instance_events${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/kill_instance \
		${DESTDIR}${PREFIX}/bin/kill_instance${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/launch_instance \
		${DESTDIR}${PREFIX}/bin/launch_instance${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/list_instances \
		${DESTDIR}${PREFIX}/bin/list_instances${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/lss3 \
		${DESTDIR}${PREFIX}/bin/lss3${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/mturk \
		${DESTDIR}${PREFIX}/bin/mturk${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/pyami_sendmail \
		${DESTDIR}${PREFIX}/bin/pyami_sendmail${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/route53 \
		${DESTDIR}${PREFIX}/bin/route53${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/s3put \
		${DESTDIR}${PREFIX}/bin/s3put${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/sdbadmin \
		${DESTDIR}${PREFIX}/bin/sdbadmin${PYVERSSUFFIX}
	${MV} ${DESTDIR}${PREFIX}/bin/taskadmin \
		${DESTDIR}${PREFIX}/bin/taskadmin${PYVERSSUFFIX}

.include "../../lang/python/application.mk"
.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"