1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
7 CMAKE_IN_SOURCE_BUILD=1
8 PLOCALES="cs_CZ de_DE es_ES fi_FI fr_CA fr_FR it_IT ko_KR nl_NL pl_PL pt_BR ru_RU uk_UA zh_CN"
9 inherit cmake-utils flag-o-matic l10n vcs-snapshot
11 DESCRIPTION="A viewer for comic book archives containing jpeg/png images"
12 HOMEPAGE="http://qcomicbook.org/"
13 SRC_URI="https://github.com/stolowski/QComicBook/archive/${PV}.tar.gz -> ${P}.tar.gz"
17 KEYWORDS="~amd64 ~ppc ~x86"
20 DEPEND="app-text/poppler[qt5]
23 dev-qt/qtprintsupport:5
28 DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
32 rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed"
34 rm "i18n/${PN}_en_EN.ts" || die 'removing redundant english locale failed'
35 l10n_find_plocales_changes "i18n" "${PN}_" ".ts"
36 l10n_for_each_disabled_locale_do rm_loc
41 -e '/^Icon/s/.png//' \
42 -e '/^Categories/s/Application;//' \
43 "data/${PN}.desktop" || die 'sed on desktop file failed'
45 cmake-utils_src_prepare
49 use !debug && append-cppflags -DQT_NO_DEBUG_OUTPUT
50 cmake-utils_src_configure
54 elog "For using QComicBook with compressed archives you may want to install:"
55 elog " app-arch/p7zip"
56 elog " app-arch/unace"
57 elog " app-arch/unrar or app-arch/rar"
58 elog " app-arch/unzip"