Fix tests and add a missing runtime dependency
PR: 250368 Approved by: maintainer timeout
This commit is contained in:
parent
d67ccffb29
commit
1f914323ed
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=553880
@ -4,6 +4,7 @@
|
||||
PORTNAME= google-translate-cli
|
||||
DISTVERSIONPREFIX= v
|
||||
DISTVERSION= 0.9.6.12
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= textproc
|
||||
|
||||
MAINTAINER= nivit@FreeBSD.org
|
||||
@ -14,14 +15,18 @@ LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
BUILD_DEPENDS= gawk:lang/gawk
|
||||
RUN_DEPENDS= bash:shells/bash \
|
||||
gawk:lang/gawk
|
||||
TEST_DEPENDS= gawk:lang/gawk
|
||||
gawk:lang/gawk \
|
||||
gbase64:sysutils/coreutils
|
||||
TEST_DEPENDS= curl:ftp/curl \
|
||||
emacs:editors/emacs@nox \
|
||||
rlwrap:devel/rlwrap
|
||||
|
||||
USE_GITHUB= yes
|
||||
GH_ACCOUNT= soimort
|
||||
GH_PROJECT= translate-shell
|
||||
|
||||
ALL_TARGET= build
|
||||
TEST_ENV= LC_ALL=C.UTF-8
|
||||
TEST_TARGET= test
|
||||
NO_ARCH= yes
|
||||
PLIST_FILES= bin/trans \
|
||||
|
11
textproc/google-translate-cli/files/patch-include_Utils.awk
Normal file
11
textproc/google-translate-cli/files/patch-include_Utils.awk
Normal file
@ -0,0 +1,11 @@
|
||||
--- include/Utils.awk.orig 2020-10-15 13:53:06 UTC
|
||||
+++ include/Utils.awk
|
||||
@@ -233,6 +233,8 @@ function dumpX(text, group, command, temp) {
|
||||
function base64(text, command, temp) {
|
||||
if (detectProgram("uname", "-s", 1) == "Linux") # GNU base64 wraps lines by default
|
||||
command = "echo -n " parameterize(text) PIPE "base64 -w0"
|
||||
+ if (detectProgram("gbase64", "--version")) # GNU base64 is sometimes available as gbase64
|
||||
+ command = "echo -n " parameterize(text) PIPE "gbase64 -w0"
|
||||
else
|
||||
command = "echo -n " parameterize(text) PIPE "base64"
|
||||
command = "bash -c " parameterize(command, "\"")
|
Loading…
Reference in New Issue
Block a user