Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Hiroki Tagato
authored and
Hiroki Tagato
committed
Mar 21, 2023
1 parent
38c1f38
commit cef874d
Showing
5 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |