2025-12-03 14:26:03 +08:00

47 lines
1.3 KiB
Makefile

PORTNAME= dialect
DISTVERSION= 2.6.1
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 \
libsecret-1.so:security/libsecret
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gTTS>=2.5.4:audio/py-gtts@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}beautifulsoup>=4.13.4: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:bd426bd3adc9917429290f4b6da378076ecf7e2e: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= CONTRIBUTING.md NEWS.md 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.mk>