Created attachment 408204 [details, diff] Fixes to the ebuild The URI prefix is wrong. This causes a sha256 verification error and causes it to download Github webpages instead of the needed files. The attached patch fixes that. It also created the necessity to update the manifest file. Because it appears as though I am only allowed to attach one file per message the next file will in my reply.
Created attachment 408206 [details] Updated manifest file. It still needs to be signed.
Created attachment 408208 [details, diff] Superseeds the old patch. I forgot to fix the doins which used the wrong path. This patch allows for a successful emerge. Ignore the old patch.
While you are at it, you should really add a version number (${PV}) to the filenames using SRC_URI arrow syntax so that the files do not overlap in DISTDIR.
To clarify, you want something like this: linguas_el? ( ${URI_PREFIX}/ell.traineddata -> ell.traineddata-${PV} )
Sorry for all this major screw-up. Yesterday was not my day. I hope I've fixed the ebuild properly now. - All distfiles are suffixed with the version number (although the language files will see releases much more seldom than source files...) - Installation was simplified and corrected - URI was corrected - Confirmed that OCR worked (for English, with pdfsandwich)
(In reply to theprogrammernerd from comment #0) > Created attachment 408204 [details, diff] [details, diff] > Fixes to the ebuild > > The URI prefix is wrong. This causes a sha256 verification error and causes > it to download Github webpages instead of the needed files. The attached > patch fixes that. It also created the necessity to update the manifest file. > Because it appears as though I am only allowed to attach one file per > message the next file will in my reply. Manually applying your instructions (attachment 408208 [details, diff]) and adding the "-p" flag to the mkdir line in src_unpack did the trick for me. --- tesseract-3.04.00-r1.ebuild +++ tesseract-3.04.00-r1.ebuild @@ -78,7 +78,7 @@ src_unpack() { unpack ${PV}.tar.gz use doc && unpack tesseract-ocr-3.02.02-doc-html.tar.gz - mkdir -p "${WORKDIR}"/tesseract-ocr/tessdata || die + mkdir "${WORKDIR}"/tesseract-ocr/tessdata || die cp "${DISTDIR}"/*.traineddata "${WORKDIR}"/tesseract-ocr/tessdata/ || die } Thank you.
The solution that I just added to CVS is better (hopefully), please wait a few hours, sync, and try the in tree ebuild. The attached diff has other errors.