Add app-i18n/translate

Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
Shin'ya Minazuki
2026-04-17 10:40:58 -03:00
parent acd6e1c7ac
commit 94aef0691a
3 changed files with 35 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
# Copyright 2026 Shin'ya Minazuki
EAPI=8
DESCRIPTION="Translate strings using Google Translate"
HOMEPAGE="https://www.freebsdcluster.org/~mich/"
SRC_URI="https://www.freebsdcluster.org/~mich/software/${P}.tar.gz"
LICENSE="BSD"
SLOT="0"
# In theory, should run wherever Perl runs
KEYWORDS="~amd64 ~x86"
DEPEND="dev-perl/libwww"
RDEPEND="
${DEPEND}
>=dev-lang/perl-5.0
"
src_prepare() {
einfo "Fixing shebang in ${S}/translate"
sed -i -e "1s#/usr/local/bin/perl#${EPREFIX}/usr/bin/perl#" "${S}/translate" || die
}
src_install() {
dobin translate
doman translate.1
}