summaryrefslogtreecommitdiff
path: root/sysutils/py-XenAPI/Makefile
blob: 4a40b46ad8c96da37dae48c62ae5850aca514b6e (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
37
# New ports collection makefile for:	py-XenAPI
# Date created:				13 April 2012
# Whom:					Evan Sarmiento <bsdports@wayfair.com>
#
# $FreeBSD$
#

PORTNAME=	XenAPI
PORTVERSION=	1.0
CATEGORIES=	sysutils python
MASTER_SITES=	http://community.citrix.com/download/attachments/38633496/
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
DISTNAME=	${PORTNAME}
EXTRACT_SUFX=	.py
EXTRACT_ONLY=

MAINTAINER=	bsdports@wayfair.com
COMMENT=	Xen API Library for Python

USE_PYTHON=	-2.7
WRKSRC=		${WRKDIR}/${PORTNAME}
PLIST_FILES=	%%PYTHON_SITELIBDIR%%/XenAPI.py \
		%%PYTHON_SITELIBDIR%%/XenAPI.pyc \
		%%PYTHON_SITELIBDIR%%/XenAPI.pyo

post-patch:
	${MKDIR} ${WRKSRC}
	${CP} ${DISTDIR}/${DISTFILES} ${WRKSRC}

do-build:
	@${PYTHON_CMD} -m py_compile ${WRKSRC}/${DISTFILES}
	@${PYTHON_CMD} -O -m py_compile ${WRKSRC}/${DISTFILES}

do-install:
	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.py* ${PYTHON_SITELIBDIR}

.include <bsd.port.mk>