app-text/OCRmyPDF: Adding completion support

Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
Alarig Le Lay 2020-04-14 22:19:11 +02:00
parent cdc639095e
commit 73cead178d
Signed by: alarig
GPG key ID: 7AFE62C6DF8BCDEC

View file

@ -21,7 +21,8 @@ RDEPEND="
app-text/ghostscript-gpl app-text/ghostscript-gpl
app-text/tesseract app-text/tesseract
app-text/unpaper app-text/unpaper
dev-python/pdfminer-six[${PYTHON_USEDEP}] <=dev-python/pdfminer-six-20200124[${PYTHON_USEDEP}]
>=dev-python/pdfminer-six-20181108[${PYTHON_USEDEP}]
dev-python/pikepdf[${PYTHON_USEDEP}] dev-python/pikepdf[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}] dev-python/pillow[${PYTHON_USEDEP}]
dev-python/reportlab[${PYTHON_USEDEP}] dev-python/reportlab[${PYTHON_USEDEP}]
@ -33,3 +34,14 @@ RDEPEND="
jbig2enc? ( media-libs/jbig2enc ) jbig2enc? ( media-libs/jbig2enc )
" "
BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" BDEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
src_install() {
distutils-r1_src_install
newbashcomp "${S}"/misc/completion/ocrmypdf.bash "${PN,,}"
insinto /usr/share/fish/vendor_completions.d
doins "${S}"/misc/completion/ocrmypdf.fish
dodoc README.md
}