mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-11 07:22:22 +00:00
Add py-libvirt 1.2.0, python bindings for Libvirt virtualization API.
Many thanks to kwm@ for initial port work :) And to novel@ for testing that it actually works!
This commit is contained in:
parent
f48f86101a
commit
b2ab3ab827
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=338260
@ -3641,6 +3641,7 @@
|
||||
SUBDIR += py-levenshtein
|
||||
SUBDIR += py-liblarch
|
||||
SUBDIR += py-libplist
|
||||
SUBDIR += py-libvirt
|
||||
SUBDIR += py-ll-core
|
||||
SUBDIR += py-lock_file
|
||||
SUBDIR += py-lockfile
|
||||
|
38
devel/py-libvirt/Makefile
Normal file
38
devel/py-libvirt/Makefile
Normal file
@ -0,0 +1,38 @@
|
||||
# Created by: Jason Helfman <jgh@FreeBSD.org>
|
||||
# $FreeBSD$
|
||||
|
||||
PORTNAME= libvirt
|
||||
PORTVERSION= 1.2.0
|
||||
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 shebangfix
|
||||
SHEBANG_LANG= python
|
||||
SHEBANG_FILES= generator.py sanitytest.py setup.py
|
||||
|
||||
USE_PYTHON_BUILD= yes
|
||||
USE_PYTHON_RUN= yes
|
||||
USE_PYDISTUTILS= yes
|
||||
PYDISTUTILS_NOEGGINFO= yes
|
||||
PYDISTUTILS_AUTOPLIST= yes
|
||||
|
||||
post-patch-script:
|
||||
@${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>
|
2
devel/py-libvirt/distinfo
Normal file
2
devel/py-libvirt/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (libvirt-python-1.2.0.tar.gz) = 2fe7e341cb1b35cff130b7a04d0d58f3607094e63cbca689bc16c7b47da0f52b
|
||||
SIZE (libvirt-python-1.2.0.tar.gz) = 140757
|
18
devel/py-libvirt/files/patch-libvirt-utils.h
Normal file
18
devel/py-libvirt/files/patch-libvirt-utils.h
Normal file
@ -0,0 +1,18 @@
|
||||
--- libvirt-utils.h.orig 2013-12-22 12:53:26.000000000 +0100
|
||||
+++ libvirt-utils.h 2013-12-22 13:00:31.000000000 +0100
|
||||
@@ -54,6 +54,15 @@
|
||||
((size_t) (sizeof (ptrdiff_t) <= sizeof (size_t) ? -1 : -2) / (s) < (n))
|
||||
|
||||
|
||||
+#ifndef __GNUC_PREREQ
|
||||
+# if defined __GNUC__ && defined __GNUC_MINOR__
|
||||
+# define __GNUC_PREREQ(maj, min) \
|
||||
+ ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
|
||||
+# else
|
||||
+# define __GNUC_PREREQ(maj, min) 0
|
||||
+# endif
|
||||
+#endif /* __GNUC_PREREQ */
|
||||
+
|
||||
/* The __attribute__((__warn_unused_result__)) feature
|
||||
is available in gcc versions 3.4 and newer,
|
||||
while the typeof feature has been available since 2.7 at least. */
|
3
devel/py-libvirt/pkg-descr
Normal file
3
devel/py-libvirt/pkg-descr
Normal file
@ -0,0 +1,3 @@
|
||||
Python bindings for Libvirt virtualization API
|
||||
|
||||
WWW: http://libvirt.org/python.html
|
Loading…
Reference in New Issue
Block a user