opnsense-ports/textproc/py-dialect/Makefile
Franco Fichtner 5b75658019 */*: sync with upstream
Taken from: FreeBSD
2024-04-26 14:34:34 +02:00

51 lines
1.3 KiB
Makefile

PORTNAME= dialect
DISTVERSION= 2.3.0
CATEGORIES= textproc gnome python
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= tagattie@FreeBSD.org
COMMENT= Translation app for GNOME
WWW= https://github.com/dialect-app/dialect
LICENSE= GPLv3+
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= appstreamcli:devel/appstream \
blueprint-compiler:devel/blueprint-compiler
LIB_DEPENDS= libsoup-3.0.so:devel/libsoup3
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gTTS>0:audio/py-gtts@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}beautifulsoup>0:www/py-beautifulsoup@${PY_FLAVOR}
USES= desktop-file-utils gettext-tools gnome gstreamer meson \
pkgconfig python
USE_GITHUB= yes
GH_ACCOUNT= dialect-app
GH_TUPLE= dialect-app:po:5dc38d6bf510db873a4972fe2b0695239aa6bf00:po/po
USE_GNOME= glib20 gtk40 introspection:build libadwaita pygobject3
GLIB_SCHEMAS= app.drey.Dialect.gschema.xml
# workaround to avoid filesystem violations during poudriere build
MAKE_ENV+= PYTHONDONTWRITEBYTECODE=1
NO_ARCH= yes
PORTDOCS= README.md
OPTIONS_DEFINE= DOCS
post-patch:
${REINPLACE_CMD} -e 's/python3/${PYTHON_VERSION}/' ${WRKSRC}/meson.build
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_MAN} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.pre.mk>
.if ${PYTHON_REL} < 31000
IGNORE= requires Python 3.10+
.endif
.include <bsd.port.post.mk>