summaryrefslogtreecommitdiff
path: root/sysutils/py-diffoscope/Makefile
blob: ce30b29fff499d340e0e1481a3e5f8d90a2311b4 (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=	diffoscope
PORTVERSION=	306
CATEGORIES=	sysutils python
MASTER_SITES=	PYPI
PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	In-depth comparison of files, archives, and directories
WWW=		https://diffoscope.org/ \
		https://salsa.debian.org/reproducible-builds/diffoscope

LICENSE=	GPLv3+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools>=0:devel/py-setuptools@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS=	gdiff:textproc/diffutils \
		${PYTHON_PKGNAMEPREFIX}libarchive-c>=0:archivers/py-libarchive-c@${PY_FLAVOR} \
		${PYTHON_PKGNAMEPREFIX}python-magic>=0:devel/py-python-magic@${PY_FLAVOR}
TEST_DEPENDS=	isoinfo:sysutils/cdrkit \
		rpm2cpio:archivers/rpm2cpio \
		zipinfo:archivers/unzip

USES=		cpe python
USE_PYTHON=	autoplist concurrent pep517 pytest

NO_ARCH=	yes

CPE_VENDOR=	reproducible_builds

OPTIONS_DEFINE=	CMDLINE DISTRO_DETECTION
CMDLINE_DESC=		Command line support
DISTRO_DETECTION_DESC=	OS distro detection

CMDLINE_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}argcomplete>=0:devel/py-argcomplete@${PY_FLAVOR} \
			${PYTHON_PKGNAMEPREFIX}progressbar>=0:misc/py-progressbar@${PY_FLAVOR}
DISTRO_DETECTION_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}distro>=0:sysutils/py-distro@${PY_FLAVOR}

.include <bsd.port.mk>