summaryrefslogtreecommitdiff
path: root/sysutils/dnf/Makefile
blob: e060f24788233ae19226799ece4f86ef585c0220 (plain)
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
PORTNAME=	dnf
DISTVERSION=	4.5.2
CATEGORIES=	sysutils

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Dandified YUM, the next-generation version of YUM

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

RUN_DEPENDS=	libcomps>0:misc/libcomps \
		libdnf>0:sysutils/libdnf \
		rpm4>0:archivers/rpm4 \
		${PYTHON_PKGNAMEPREFIX}gpgme>0:security/py-gpgme@${PY_FLAVOR}

USES=		cmake gettext-tools python
USE_GITHUB=	yes
GH_ACCOUNT=	rpm-software-management
GH_PROJECT=	dnf

CMAKE_OFF=	FREEBSD_INSTALL_DOC
CMAKE_ARGS=	-DPYTHON_DESIRED=${PYTHON_MAJOR_VER}

INSTALL_TARGET=	install

NO_ARCH=	yes

post-patch:
	@${REINPLACE_CMD} -e "s|'/usr/bin'|'${PREFIX}/bin'|" ${WRKSRC}/bin/dnf*.in

post-install:
	cd ${STAGEDIR}${PREFIX}/bin && \
		${LN} -s dnf-3 dnf && \
		${LN} -s dnf-automatic-3 dnf-automatic

.include <bsd.port.mk>