git: cef874dc47ef - main - textproc/py-dialect: add port: Translation app for GNOME
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 21 Mar 2023 00:47:16 UTC
The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=cef874dc47ef7a7c5ec0d678889fc48bb4508501 commit cef874dc47ef7a7c5ec0d678889fc48bb4508501 Author: Hiroki Tagato <tagattie@FreeBSD.org> AuthorDate: 2023-03-21 00:45:29 +0000 Commit: Hiroki Tagato <tagattie@FreeBSD.org> CommitDate: 2023-03-21 00:47:03 +0000 textproc/py-dialect: add port: Translation app for GNOME 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 --- textproc/Makefile | 1 + textproc/py-dialect/Makefile | 41 ++++++++++++++++++++++++ textproc/py-dialect/distinfo | 5 +++ textproc/py-dialect/pkg-descr | 10 ++++++ textproc/py-dialect/pkg-plist | 72 +++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 129 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index ac3b51414eb1..4382f654b2a4 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1311,6 +1311,7 @@ SUBDIR += py-csvkit SUBDIR += py-custom_inherit SUBDIR += py-dbfread + SUBDIR += py-dialect SUBDIR += py-dict2xml SUBDIR += py-diff-match-patch SUBDIR += py-docrepr diff --git a/textproc/py-dialect/Makefile b/textproc/py-dialect/Makefile new file mode 100644 index 000000000000..01eb1890813e --- /dev/null +++ b/textproc/py-dialect/Makefile @@ -0,0 +1,41 @@ +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> diff --git a/textproc/py-dialect/distinfo b/textproc/py-dialect/distinfo new file mode 100644 index 000000000000..df1090fc9300 --- /dev/null +++ b/textproc/py-dialect/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1677117243 +SHA256 (dialect-app-dialect-2.1.1_GH0.tar.gz) = 385b7bec4d722e5249e75fea868f2bc9c125e9a56c35638f28efa5f82c170b0d +SIZE (dialect-app-dialect-2.1.1_GH0.tar.gz) = 135097 +SHA256 (dialect-app-po-d7abf9dc4d2b6e153e6afeb2f1e6421fb94ce8f4_GH0.tar.gz) = 2ca883189b36fdfb82170e1f9f13c357423343303c90c57342d05c82ee039980 +SIZE (dialect-app-po-d7abf9dc4d2b6e153e6afeb2f1e6421fb94ce8f4_GH0.tar.gz) = 138045 diff --git a/textproc/py-dialect/pkg-descr b/textproc/py-dialect/pkg-descr new file mode 100644 index 000000000000..f2231b6a1829 --- /dev/null +++ b/textproc/py-dialect/pkg-descr @@ -0,0 +1,10 @@ +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 diff --git a/textproc/py-dialect/pkg-plist b/textproc/py-dialect/pkg-plist new file mode 100644 index 000000000000..1e3d83578307 --- /dev/null +++ b/textproc/py-dialect/pkg-plist @@ -0,0 +1,72 @@ +bin/dialect +share/applications/app.drey.Dialect.desktop +share/dbus-1/services/app.drey.Dialect.SearchProvider.service +%%DATADIR%%/dialect.gresource +%%DATADIR%%/dialect/__init__.py +%%DATADIR%%/dialect/define.py +%%DATADIR%%/dialect/lang_selector.py +%%DATADIR%%/dialect/main.py +%%DATADIR%%/dialect/preferences.py +%%DATADIR%%/dialect/session.py +%%DATADIR%%/dialect/settings.py +%%DATADIR%%/dialect/shortcuts.py +%%DATADIR%%/dialect/theme_switcher.py +%%DATADIR%%/dialect/translators/__init__.py +%%DATADIR%%/dialect/translators/basetrans.py +%%DATADIR%%/dialect/translators/gtrans.py +%%DATADIR%%/dialect/translators/libretrans.py +%%DATADIR%%/dialect/translators/lingva.py +%%DATADIR%%/dialect/tts/__init__.py +%%DATADIR%%/dialect/tts/basetts.py +%%DATADIR%%/dialect/tts/gtts.py +%%DATADIR%%/dialect/window.py +%%DATADIR%%/search_provider +share/gnome-shell/search-providers/app.drey.Dialect.SearchProvider.ini +share/icons/hicolor/scalable/apps/app.drey.Dialect.svg +share/icons/hicolor/symbolic/apps/app.drey.Dialect-symbolic.svg +share/locale/am/LC_MESSAGES/dialect.mo +share/locale/ar/LC_MESSAGES/dialect.mo +share/locale/bn/LC_MESSAGES/dialect.mo +share/locale/ca/LC_MESSAGES/dialect.mo +share/locale/cs/LC_MESSAGES/dialect.mo +share/locale/da/LC_MESSAGES/dialect.mo +share/locale/de/LC_MESSAGES/dialect.mo +share/locale/el/LC_MESSAGES/dialect.mo +share/locale/eo/LC_MESSAGES/dialect.mo +share/locale/es/LC_MESSAGES/dialect.mo +share/locale/eu/LC_MESSAGES/dialect.mo +share/locale/fa/LC_MESSAGES/dialect.mo +share/locale/fi/LC_MESSAGES/dialect.mo +share/locale/fr/LC_MESSAGES/dialect.mo +share/locale/fy/LC_MESSAGES/dialect.mo +share/locale/gl/LC_MESSAGES/dialect.mo +share/locale/he/LC_MESSAGES/dialect.mo +share/locale/hi/LC_MESSAGES/dialect.mo +share/locale/hr/LC_MESSAGES/dialect.mo +share/locale/hu/LC_MESSAGES/dialect.mo +share/locale/id/LC_MESSAGES/dialect.mo +share/locale/it/LC_MESSAGES/dialect.mo +share/locale/ja/LC_MESSAGES/dialect.mo +share/locale/ka/LC_MESSAGES/dialect.mo +share/locale/kmr/LC_MESSAGES/dialect.mo +share/locale/kn/LC_MESSAGES/dialect.mo +share/locale/ko/LC_MESSAGES/dialect.mo +share/locale/lt/LC_MESSAGES/dialect.mo +share/locale/lv/LC_MESSAGES/dialect.mo +share/locale/nb_NO/LC_MESSAGES/dialect.mo +share/locale/nl/LC_MESSAGES/dialect.mo +share/locale/oc/LC_MESSAGES/dialect.mo +share/locale/pl/LC_MESSAGES/dialect.mo +share/locale/pt/LC_MESSAGES/dialect.mo +share/locale/pt_BR/LC_MESSAGES/dialect.mo +share/locale/ru/LC_MESSAGES/dialect.mo +share/locale/si/LC_MESSAGES/dialect.mo +share/locale/sk/LC_MESSAGES/dialect.mo +share/locale/sr/LC_MESSAGES/dialect.mo +share/locale/sv/LC_MESSAGES/dialect.mo +share/locale/ta/LC_MESSAGES/dialect.mo +share/locale/tr/LC_MESSAGES/dialect.mo +share/locale/uk/LC_MESSAGES/dialect.mo +share/locale/zh_CN/LC_MESSAGES/dialect.mo +share/locale/zh_Hant/LC_MESSAGES/dialect.mo +share/metainfo/app.drey.Dialect.metainfo.xml