aboutsummaryrefslogtreecommitdiff
path: root/deskutils/virt-manager/Makefile
blob: a6a164f6abdc1add8b6ca107ade2c81536ff5df9 (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
38
39
PORTNAME=	virt-manager
PORTVERSION=	5.1.0
CATEGORIES=	deskutils net-mgmt
MASTER_SITES=	https://releases.pagure.org/${PORTNAME}/

MAINTAINER=	novel@FreeBSD.org
COMMENT=	Toolkit to interact with virtualization capabilities
WWW=		https://virt-manager.org/

LICENSE=	LGPL3

BUILD_DEPENDS=	rst2man:textproc/py-docutils@${PY_FLAVOR}
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}dbus>=0.83.2:devel/py-dbus@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}libxml2-python>=2.7.8:textproc/libxml2-python@${PY_FLAVOR} \
		vte3>=0:x11-toolkits/vte3 \
		${PYTHON_PKGNAMEPREFIX}ipaddr>=0:devel/py-ipaddr@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}libvirt>=0:devel/py-libvirt@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \
		gtk-vnc>=0.4.4:net/gtk-vnc \
		libvirt-glib>=0.1.9:devel/libvirt-glib \
		libosinfo>=0:devel/libosinfo \
		spice-gtk>=0.26:deskutils/spice-gtk \
		ssh-askpass:security/openssh-askpass

USES=		desktop-file-utils gettext gnome meson tar:xz python
USE_GNOME=	gtksourceview4 introspection:run intltool librsvg2 pygobject3
GLIB_SCHEMAS=	org.virt-manager.virt-manager.gschema.xml

CONFIGURE_ARGS=	-Dtests=disabled

NO_ARCH=	yes

post-patch:
	${REINPLACE_CMD} -e "s|'python3'|'${PYTHON_CMD}'|" \
		${WRKSRC}/meson.build
	${REINPLACE_CMD} -e 's|"""#!/usr/bin/env python3|"""#!${PYTHON_CMD}|' \
		${WRKSRC}/scripts/make_bin_wrapper.py

.include <bsd.port.mk>