ports/sysutils/dnf/Makefile
Jason E. Hale 217815b0af security/gpgme: Update to 2.0.0
Upstream has split most of the bindings out into separate projects with
this release, so the child ports that were previously providing various
bindings are now autonomous and have new origins. The python bindings
should have been called py-gpg for many years now, since 'gpg' is the
actual module name, so this also corrects that issue.

security/gpgme-cpp -> security/gpgmepp
security/gpgme-qt -> security/qgpgme
security/py-gpgme -> security/py-gpg

gpgmepp and qgpgme have been converted to CMake. py-gpg is now a "fun"
autotools and FreeBSD ports system hybrid. Gpgme, itself, still uses
autotools, but with much less parenting (patching) to do for its
emancipated children.

Adjust several ports to fix API incompatibility with upstream patches
and with some of my own. Adjust all consumers to use the new port
origins of the former child ports.

https://dev.gnupg.org/T7673
2025-06-24 09:09:24 -04:00

41 lines
892 B
Makefile

PORTNAME= dnf
DISTVERSION= 4.22.0
CATEGORIES= sysutils
MAINTAINER= yuri@FreeBSD.org
COMMENT= Dandified YUM, the next-generation version of YUM
WWW= https://github.com/rpm-software-management/dnf
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= libcomps>0:misc/libcomps \
libdnf>0:sysutils/libdnf \
rpm4>0:archivers/rpm4 \
${PYTHON_PKGNAMEPREFIX}gpg>=2.0.0:security/py-gpg@${PY_FLAVOR}
USES= cmake gettext-tools python
USE_GITHUB= yes
GH_ACCOUNT= rpm-software-management
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'|;\
s|@PYTHON_EXECUTABLE@|${PYTHON_CMD}|\
" ${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>