summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-text/tesseract/tesseract-3.04.01-r1.ebuild')
-rw-r--r--app-text/tesseract/tesseract-3.04.01-r1.ebuild7
1 files changed, 5 insertions, 2 deletions
diff --git a/app-text/tesseract/tesseract-3.04.01-r1.ebuild b/app-text/tesseract/tesseract-3.04.01-r1.ebuild
index 776dd2a848a..d7d23a447a0 100644
--- a/app-text/tesseract/tesseract-3.04.01-r1.ebuild
+++ b/app-text/tesseract/tesseract-3.04.01-r1.ebuild
@@ -97,8 +97,11 @@ PATCHES=(
src_unpack() {
unpack ${P}.tar.gz
- find "${DISTDIR}/" -name "*traineddata-${LANGPACKV}" \
- -execdir sh -c 'cp -- "$0" "${S}/tessdata/${0%-*}"' '{}' ';' || die
+ for file in ${A}; do
+ if [[ "${file}" == *traineddata* ]]; then
+ cp "${DISTDIR}/${file}" "${S}/tessdata/${file%-*}" || die
+ fi
+ done
}
src_prepare() {