mirror of
https://git.freebsd.org/ports.git
synced 2025-06-01 02:46:27 -04:00
A translation app for GNOME. Features: - Translation based on Google Translate - Translation based on the LibreTranslate API, allowing you to use any public instance - Translation history - Automatic language detection - Text to speech - Clipboard buttons WWW: https://github.com/dialect-app/dialect
41 lines
1.1 KiB
Makefile
41 lines
1.1 KiB
Makefile
PORTNAME= dialect
|
|
DISTVERSION= 2.1.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= appstream-util:devel/appstream-glib \
|
|
blueprint-compiler:devel/blueprint-compiler
|
|
LIB_DEPENDS= libsoup-3.0.so:devel/libsoup3
|
|
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}gTTS>0:audio/py-gtts@${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:d7abf9dc4d2b6e153e6afeb2f1e6421fb94ce8f4:po/po
|
|
|
|
USE_GNOME= glib20 gtk40 introspection:build libadwaita pygobject3
|
|
GLIB_SCHEMAS= app.drey.Dialect.gschema.xml
|
|
|
|
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.mk>
|