git: 44babf6565ab - main - textproc/google-translate: New port: Emacs interface to Google Translate
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 21 Sep 2026 03:43:50 UTC
The branch main has been updated by mce:
URL: https://cgit.FreeBSD.org/ports/commit/?id=44babf6565ab86f54584fa893f01fe44e033db10
commit 44babf6565ab86f54584fa893f01fe44e033db10
Author: Kousuke Kannagi <mce@FreeBSD.org>
AuthorDate: 2026-09-13 16:47:36 +0000
Commit: Kousuke Kannagi <mce@FreeBSD.org>
CommitDate: 2026-09-21 03:42:33 +0000
textproc/google-translate: New port: Emacs interface to Google Translate
PR: 298459
Approved by: osa (mentor)
---
textproc/Makefile | 1 +
textproc/google-translate/Makefile | 33 ++++++++++++++++++++++++++
textproc/google-translate/distinfo | 3 +++
textproc/google-translate/files/pkg-message.in | 21 ++++++++++++++++
textproc/google-translate/pkg-descr | 2 ++
textproc/google-translate/pkg-plist | 7 ++++++
6 files changed, 67 insertions(+)
diff --git a/textproc/Makefile b/textproc/Makefile
index 5e8917b1f4ae..4a603337391d 100644
--- a/textproc/Makefile
+++ b/textproc/Makefile
@@ -255,6 +255,7 @@
SUBDIR += goldendict
SUBDIR += goldendict-ng
SUBDIR += google-ctemplate
+ SUBDIR += google-translate
SUBDIR += gpp
SUBDIR += grap
SUBDIR += grass
diff --git a/textproc/google-translate/Makefile b/textproc/google-translate/Makefile
new file mode 100644
index 000000000000..6ac42d470701
--- /dev/null
+++ b/textproc/google-translate/Makefile
@@ -0,0 +1,33 @@
+PORTNAME= google-translate
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.12.0-65
+DISTVERSIONSUFFIX= -g47c5719
+CATEGORIES= textproc elisp
+
+MAINTAINER= mce@FreeBSD.org
+COMMENT= Emacs interface to Google Translate
+WWW= https://github.com/atykhonov/google-translate
+
+LICENSE= GPLv2+
+
+USE_GITHUB= yes
+GH_ACCOUNT= atykhonov
+
+NO_ARCH= yes
+NO_BUILD= yes
+
+SUB_FILES= pkg-message
+
+OPTIONS_DEFINE= DOCS
+
+ELISPDIR= share/emacs/site-lisp/${PORTNAME}
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${PREFIX}/${ELISPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/*.el ${STAGEDIR}${PREFIX}/${ELISPDIR}
+
+post-install-DOCS-on:
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
+
+.include <bsd.port.mk>
diff --git a/textproc/google-translate/distinfo b/textproc/google-translate/distinfo
new file mode 100644
index 000000000000..1f2e8f60746a
--- /dev/null
+++ b/textproc/google-translate/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1789314236
+SHA256 (atykhonov-google-translate-v0.12.0-65-g47c5719_GH0.tar.gz) = 44461c57a8f4ae9cacee5c4efdf835f3e43c638aa088fe74d0d8b5290242a6c0
+SIZE (atykhonov-google-translate-v0.12.0-65-g47c5719_GH0.tar.gz) = 35347
diff --git a/textproc/google-translate/files/pkg-message.in b/textproc/google-translate/files/pkg-message.in
new file mode 100644
index 000000000000..b506050ca44c
--- /dev/null
+++ b/textproc/google-translate/files/pkg-message.in
@@ -0,0 +1,21 @@
+[
+{ type: install
+ message: <<EOM
+To activate google-translate, you will need to add the following lines
+to your Emacs configuration:
+
+(require 'google-translate)
+(require 'google-translate-default-ui)
+(global-set-key "\C-ct" 'google-translate-at-point)
+(global-set-key "\C-cT" 'google-translate-query-translate)
+
+or
+
+(require 'google-translate)
+(require 'google-translate-smooth-ui)
+(global-set-key "\C-ct" 'google-translate-smooth-translate)
+
+Please read %%DOCSDIR%%/README.md for more details.
+EOM
+}
+]
diff --git a/textproc/google-translate/pkg-descr b/textproc/google-translate/pkg-descr
new file mode 100644
index 000000000000..4a18c953b77e
--- /dev/null
+++ b/textproc/google-translate/pkg-descr
@@ -0,0 +1,2 @@
+This package allows to translate the strings using Google Translate
+service directly from GNU Emacs.
diff --git a/textproc/google-translate/pkg-plist b/textproc/google-translate/pkg-plist
new file mode 100644
index 000000000000..e93d69c1d0e0
--- /dev/null
+++ b/textproc/google-translate/pkg-plist
@@ -0,0 +1,7 @@
+%%PORTDOCS%%%%DOCSDIR%%/README.md
+share/emacs/site-lisp/google-translate/google-translate-backend.el
+share/emacs/site-lisp/google-translate/google-translate-core-ui.el
+share/emacs/site-lisp/google-translate/google-translate-core.el
+share/emacs/site-lisp/google-translate/google-translate-default-ui.el
+share/emacs/site-lisp/google-translate/google-translate-smooth-ui.el
+share/emacs/site-lisp/google-translate/google-translate.el