1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-07 06:40:06 +00:00
freebsd-ports/sysutils/py-XenAPI/Makefile
Antoine Brodin f7455240e3 Reduce dependency on the python2 metaport
PR:		225752
Submitted by:	Yasuhiro KIMURA
2018-02-19 11:10:43 +00:00

36 lines
897 B
Makefile

# Created by: Evan Sarmiento <bsdports@wayfair.com>
# $FreeBSD$
PORTNAME= XenAPI
PORTVERSION= 1.0
PORTREVISION= 1
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
USES= 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:
@${MKDIR} ${STAGEDIR}${PYTHON_SITELIBDIR}
${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.py* ${STAGEDIR}${PYTHON_SITELIBDIR}
.include <bsd.port.mk>