Add app-i18n/translate
Signed-off-by: Shin'ya Minazuki <shinyoukai@laidback.moe>
This commit is contained in:
26
app-i18n/translate/translate-1.20.ebuild
Normal file
26
app-i18n/translate/translate-1.20.ebuild
Normal 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
|
||||
}
|
||||
Reference in New Issue
Block a user