diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-text/yagf |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-text/yagf')
-rw-r--r-- | app-text/yagf/Manifest | 5 | ||||
-rw-r--r-- | app-text/yagf/metadata.xml | 20 | ||||
-rw-r--r-- | app-text/yagf/yagf-0.9.5.ebuild | 61 |
3 files changed, 86 insertions, 0 deletions
diff --git a/app-text/yagf/Manifest b/app-text/yagf/Manifest new file mode 100644 index 000000000000..8d502bf1202e --- /dev/null +++ b/app-text/yagf/Manifest @@ -0,0 +1,5 @@ +DIST yagf-0.9.5.tar.gz 427018 SHA256 c0e9fe4b16d39378319fe37772403104a81c58084aa918e78347f56456ed5ebc SHA512 a0b77e49c11be0ed043d3f44b1c48122cdabf0ae4ae69d84bc01eee0a8b084dae8201234e08816065d449e4d47bd704f282b1cd3b31c3539d201e9f32dfef05c WHIRLPOOL 92a7c6f02aa1bdc567b9599e6a57888a880eeba111c18645f3987f6d350770ef492d8f0394f2b429daabab4843f496819299fb2e9bdca6f6e6d187d4e1facd18 +EBUILD yagf-0.9.5.ebuild 1544 SHA256 8367458f2f6ff54ca369955448c0396a62e2ca483c8df48c6553116fb5c16214 SHA512 5baceb14e795047d7a0cc9c9ef7c77bf3e8ab36055982d0f3b9268ea34caa3ad53373ebff3ae1fd7afaa3a6cb30125640fbbde1d8aa52433ae304284d485a004 WHIRLPOOL fd44280ddfb5157d4df8dfacf4add480a2e3a1c48140d51fae60af8ddfdfe5e92151daa8d46f166d5d811be3c1d37f6ea26241f91b9e5aa96cb3fe6594777236 +MISC ChangeLog 2861 SHA256 15bfe0e074d0d4f7fb67fa624542ba85aeec4d906e9ca79ce7a890157b897bdc SHA512 3cf0c1fc72a4ee5c087ffaa02ea41536d6b14ce0dbc33f0d964e58ae99113ac2fd9f98a82701c9109cefd131a7a675f368465d7cf566e59a5abbb3d906701d4f WHIRLPOOL e0c97ce54c475725de41ed30f84f997d45e6f2d01c6c0619495b03583628ca7a30bf26174a24f0f6585f11a2a9d82e85f51e8fccab0cce0f422050b5e47fea20 +MISC ChangeLog-2015 3988 SHA256 1d1f5741280c9506f82f01b6593794287015dbace51bb26a572cf983fc69bc05 SHA512 d6102e07920e84c02e47fb145e979cc922d114ca68b69d4591c369817a3a85627bd55dd00f992d21660f0ae8d7a9d374dcbbb34578e46b7c61a3f488db91d227 WHIRLPOOL 6cb79d249bb3903df455eac80fc83bd71e5781f384721e86d586d584c08026b3c6e6b900446b6dd76d2adcea797ca321f3445752965dd12ca3ebe84c5a00b16f +MISC metadata.xml 1017 SHA256 36352a6e7e2ef183288de9ceecd828159b038e0d06d5ba94848a804620973592 SHA512 f7a240694f0fa6dc6f26f042d5d332acc2a255819c0b5a0b99d46220b747da94d9f345e0fb87cd631f7b6fabdcddde3cbd42ffd8e738e119034e1608749c094a WHIRLPOOL 5dda84281845b048570cd97aaa06441eef4dc18ce5e98a580cd00c86b7b50b4d2b669ae0e06accb767361c544801d20f6d854f1226c55b3e1edb9ac0c76cc235 diff --git a/app-text/yagf/metadata.xml b/app-text/yagf/metadata.xml new file mode 100644 index 000000000000..76b22cdda21f --- /dev/null +++ b/app-text/yagf/metadata.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <longdescription lang="en"> + YAGF is a graphical front-end for cuneiform and tesseract OCR tools. + With YAGF you can open already scanned image files or obtain new images + via XSane (scanning results are automatically passed to YAGF). + Once you have a scanned image you can prepare it for recognition, select + particular image areas for recognition, set the recognition language and + so no. Recognized text is displayed in a editor window where it can be + corrected, saved to disk or copied to clipboard. + YAGF also provides some facilities for a multi-page recognition (see + the online help for more details). + </longdescription> + <use> + <flag name="cuneiform">Enable support for the <pkg>app-text/cuneiform</pkg> OCR engine.</flag> + <flag name="tesseract">Enable support for the <pkg>app-text/tesseract</pkg> OCR engine.</flag> + </use> +</pkgmetadata> diff --git a/app-text/yagf/yagf-0.9.5.ebuild b/app-text/yagf/yagf-0.9.5.ebuild new file mode 100644 index 000000000000..3ebcae73386e --- /dev/null +++ b/app-text/yagf/yagf-0.9.5.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +PLOCALES="fr ru" +inherit cmake-utils l10n multilib + +DESCRIPTION="Graphical front-end for cuneiform and tesseract OCR tools" +HOMEPAGE="http://sourceforge.net/projects/yagf-ocr/" +SRC_URI="mirror://sourceforge/project/yagf-ocr/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="scanner cuneiform +tesseract pdf" + +REQUIRED_USE="|| ( cuneiform tesseract )" + +DEPEND=" + dev-qt/qtcore:4 + dev-qt/qtgui:4 + app-text/aspell +" +RDEPEND="${DEPEND} + cuneiform? ( app-text/cuneiform ) + tesseract? ( app-text/tesseract ) + scanner? ( media-gfx/xsane ) + pdf? ( || ( app-text/poppler[utils] app-text/ghostscript-gpl ) ) +" + +DOCS=( AUTHORS ChangeLog DESCRIPTION README ) + +src_prepare() { + # uk translation generation is broken + rm src/translations/yagf_uk.ts || die + # respect CFLAGS and fix translations path + sed -i \ + -e '/add_definitions(-Wall -g)/d' \ + -e '/-DQML_INSTALL_PATH=/s:${QML_DESTINATION}:/${QML_DESTINATION}:' \ + CMakeLists.txt || die 'sed on CMakeLists.txt failed' + + l10n_find_plocales_changes "src/translations" "${PN}_" '.ts' + cmake-utils_src_prepare +} + +src_configure() { + local libdir="$(get_libdir)" + local mycmakeargs=( + -DLIB_PATH_SUFFIX=${libdir#lib} + ) + cmake-utils_src_configure +} + +src_install() { + remove_translation() { + rm "${ED}/usr/share/yagf/translations/${PN}_${1}.qm" || die "remove '${PN}_${1}.qm' file failed" + } + cmake-utils_src_install + l10n_for_each_disabled_locale_do remove_translation +} |