Files
ports/textproc/translate-shell/Makefile
T
Tijl Coosemans b6ec06f079 */*: Use C.UTF-8 locale
Ports 02f27a83b4 fixed the ports tree to the C locale so it would work
correctly in environments where users use a locale that isn't compatible
with the C locale, e.g. xx_YY.UTF-8 where [A-Z] includes more than just
upper case letters.  USE_LOCALE was introduced to let ports use another
locale if they needed it.  The C.UTF-8 locale was created later on to be
mostly compatible with the C locale.

Switch the ports tree locale to C.UTF-8 and remove USE_LOCALE.  The
world has moved to Unicode so all ports either require it or know how to
build correctly in a Unicode environment.

PR:		295945
Exp-run by:	antoine
2026-06-30 22:03:57 +02:00

48 lines
1.1 KiB
Makefile

PORTNAME= translate-shell
DISTVERSIONPREFIX= v
DISTVERSION= 0.9.7.1
PORTREVISION= 1
CATEGORIES= textproc
MAINTAINER= nivit@FreeBSD.org
COMMENT= Command line interface to translation engines
WWW= https://www.soimort.org/translate-shell/
LICENSE= UNLICENSE
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= gawk:lang/gawk
RUN_DEPENDS= bash:shells/bash \
gawk:lang/gawk \
gbase64:sysutils/coreutils
TEST_DEPENDS= curl:ftp/curl \
emacs:editors/emacs@nox \
rlwrap:devel/rlwrap
USE_GITHUB= yes
GH_ACCOUNT= soimort
ALL_TARGET= build
TEST_TARGET= test
NO_ARCH= yes
PLIST_FILES= bin/trans \
share/man/man1/trans.1.gz
OPTIONS_DEFINE= ASPELL FRIBIDI READLINE TEXT2SPEECH
TEXT2SPEECH_DESC= Enable Text-to-Speech functionality via espeak
ASPELL_RUN_DEPENDS= aspell:textproc/aspell
FRIBIDI_RUN_DEPENDS= fribidi:converters/fribidi
READLINE_RUN_DEPENDS= rlwrap:devel/rlwrap
TEXT2SPEECH_RUN_DEPENDS= espeak-ng:audio/espeak-ng
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/build/trans ${STAGEDIR}${PREFIX}/bin/trans
${INSTALL_MAN} ${WRKSRC}/man/trans.1 ${STAGEDIR}${PREFIX}/share/man/man1/trans.1
.include <bsd.port.mk>