aboutsummaryrefslogtreecommitdiffstats
path: root/devel/py-libvirt/Makefile
blob: e4ad51f8a30716a0a3f070f16a9a755b0b582100 (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
# Created by: Jason Helfman <jgh@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libvirt
PORTVERSION=    1.2.9
CATEGORIES= devel
MASTER_SITES=   http://libvirt.org/sources/python/ \
        ftp://libvirt.org/libvirt/python/
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
DISTNAME=   ${PORTNAME}-python-${PORTVERSION}

MAINTAINER= jgh@FreeBSD.org
COMMENT=    Python bindings for Libvirt virtualization API

LICENSE=    GPLv2

LIB_DEPENDS=    libvirt.so:${PORTSDIR}/devel/libvirt

USES=   pkgconfig python shebangfix
SHEBANG_FILES=  generator.py sanitytest.py setup.py
USE_PYTHON= distutils autoplist

post-patch:
    @${REINPLACE_CMD} -e 's|"python"|"${PYTHON_CMD}"|g' \
        ${WRKSRC}/setup.py

post-install:
.for lib in libvirtmod libvirtmod_qemu libvirtmod_lxc
    @${STRIP_CMD} ${STAGEDIR}${PYTHON_LIBDIR}/site-packages/${lib}.so
.endfor

.include <bsd.port.mk>