[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: ff10715036b56750d468994e5c75d39246324680 Author: Ulrich Müller gentoo org> AuthorDate: Sat Jul 3 15:47:30 2021 + Commit: Ulrich Müller gentoo org> CommitDate: Sun Jul 4 14:02:09 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ff107150 x11-misc/qcomicbook: Update from l10n.eclass to plocale.eclass Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Ulrich Müller gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index e17000ce7a5..ea3d5ea091c 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -6,7 +6,7 @@ EAPI=7 MY_PN="QComicBook" CMAKE_IN_SOURCE_BUILD=1 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" -inherit cmake flag-o-matic l10n xdg +inherit cmake flag-o-matic plocale xdg DESCRIPTION="Viewer for comic book archives containing jpeg/png images" HOMEPAGE="https://github.com/stolowski/QComicBook"; @@ -36,8 +36,8 @@ src_prepare() { rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed" } rm "i18n/${PN}_en_EN.ts" || die 'removing redundant english locale failed' - l10n_find_plocales_changes "i18n" "${PN}_" ".ts" - l10n_for_each_disabled_locale_do rm_loc + plocale_find_changes "i18n" "${PN}_" ".ts" + plocale_for_each_disabled_locale rm_loc # fix desktop file sed -e '/^Encoding/d' \
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: 43647489e1bda31655aa176c1a8bf4709ea8b2c5 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Feb 14 18:19:14 2021 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Feb 14 19:04:30 2021 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=43647489 x11-misc/qcomicbook: EAPI-7 bump, port to cmake.eclass Indendation fix Package-Manager: Portage-3.0.14, Repoman-3.0.2 Signed-off-by: Andreas Sturmlechner gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 27 +-- 1 file changed, 13 insertions(+), 14 deletions(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index ec3dbfe2f75..e17000ce7a5 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -1,14 +1,14 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 MY_PN="QComicBook" CMAKE_IN_SOURCE_BUILD=1 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" -inherit cmake-utils flag-o-matic l10n xdg +inherit cmake flag-o-matic l10n xdg -DESCRIPTION="A viewer for comic book archives containing jpeg/png images" +DESCRIPTION="Viewer for comic book archives containing jpeg/png images" HOMEPAGE="https://github.com/stolowski/QComicBook"; SRC_URI="https://github.com/stolowski/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" @@ -17,15 +17,15 @@ SLOT="0" KEYWORDS="amd64 ~ppc x86" IUSE="debug" -RDEPEND="app-text/poppler[qt5] +RDEPEND=" + app-text/poppler[qt5] dev-qt/qtcore:5 dev-qt/qtgui:5 dev-qt/qtprintsupport:5 dev-qt/qtwidgets:5 dev-qt/qtx11extras:5" -DEPEND="${RDEPEND} - dev-qt/linguist-tools:5 -" +DEPEND="${RDEPEND}" +BDEPEND="dev-qt/linguist-tools:5" DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) @@ -33,25 +33,24 @@ S="${WORKDIR}/${MY_PN}-${PV}" src_prepare() { rm_loc() { - rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed" + rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed" } rm "i18n/${PN}_en_EN.ts" || die 'removing redundant english locale failed' l10n_find_plocales_changes "i18n" "${PN}_" ".ts" l10n_for_each_disabled_locale_do rm_loc # fix desktop file - sed -i \ - -e '/^Encoding/d' \ + sed -e '/^Encoding/d' \ -e '/^Icon/s/.png//' \ -e '/^Categories/s/Application;//' \ - "data/${PN}.desktop" || die 'sed on desktop file failed' + -i data/${PN}.desktop || die 'sed on desktop file failed' - cmake-utils_src_prepare + cmake_src_prepare } src_configure() { use !debug && append-cppflags -DQT_NO_DEBUG_OUTPUT - cmake-utils_src_configure + cmake_src_configure } pkg_postinst() {
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: f00389515092d49c974a6f70e1a506e57fcd79c6 Author: Jakov Smolic sartura hr> AuthorDate: Sun Sep 20 13:50:09 2020 + Commit: David Seifert gentoo org> CommitDate: Sun Sep 20 13:50:09 2020 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0038951 x11-misc/qcomicbook: update desktop mimeinfo cache Closes: https://bugs.gentoo.org/742797 Package-Manager: Portage-3.0.4, Repoman-3.0.1 Signed-off-by: Jakov Smolic sartura.hr> Signed-off-by: David Seifert gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index aaa44f68514..ec3dbfe2f75 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2018 Gentoo Authors +# Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -6,7 +6,7 @@ EAPI=6 MY_PN="QComicBook" CMAKE_IN_SOURCE_BUILD=1 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" -inherit cmake-utils flag-o-matic l10n +inherit cmake-utils flag-o-matic l10n xdg DESCRIPTION="A viewer for comic book archives containing jpeg/png images" HOMEPAGE="https://github.com/stolowski/QComicBook"; @@ -55,6 +55,7 @@ src_configure() { } pkg_postinst() { + xdg_pkg_postinst elog "For using QComicBook with compressed archives you may want to install:" elog "app-arch/p7zip" elog "app-arch/unace"
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: 76d66ab78458ac650ebf8bf0c3da70d491ec880b Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Dec 5 19:04:50 2018 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Dec 5 19:12:40 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=76d66ab7 x11-misc/qcomicbook: Fix HOMEPAGE qcomicbook.org was forwarding to random and potentially malicious websites. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index 9613f04b016..aede992489d 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -8,7 +8,7 @@ PLOCALES="cs_CZ de_DE es_ES fi_FI fr_CA fr_FR it_IT ko_KR nl_NL pl_PL pt_BR ru_R inherit cmake-utils flag-o-matic l10n vcs-snapshot DESCRIPTION="A viewer for comic book archives containing jpeg/png images" -HOMEPAGE="http://qcomicbook.org/"; +HOMEPAGE="https://github.com/stolowski/QComicBook"; SRC_URI="https://github.com/stolowski/QComicBook/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2"
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: 1963e58cf69099c0d1d7c60e5d203e123cd825d4 Author: Andreas Sturmlechner gentoo org> AuthorDate: Wed Dec 5 19:08:05 2018 + Commit: Andreas Sturmlechner gentoo org> CommitDate: Wed Dec 5 19:12:40 2018 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1963e58c x11-misc/qcomicbook: Drop unnecessary use of vcs-snapshot Predictable dir is predictable. Package-Manager: Portage-2.3.52, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index aede992489d..aaa44f68514 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -3,13 +3,14 @@ EAPI=6 +MY_PN="QComicBook" CMAKE_IN_SOURCE_BUILD=1 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" -inherit cmake-utils flag-o-matic l10n vcs-snapshot +inherit cmake-utils flag-o-matic l10n DESCRIPTION="A viewer for comic book archives containing jpeg/png images" HOMEPAGE="https://github.com/stolowski/QComicBook"; -SRC_URI="https://github.com/stolowski/QComicBook/archive/${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI="https://github.com/stolowski/${MY_PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" LICENSE="GPL-2" SLOT="0" @@ -28,6 +29,8 @@ DEPEND="${RDEPEND} DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) +S="${WORKDIR}/${MY_PN}-${PV}" + src_prepare() { rm_loc() { rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed"
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: e8fb214e7037ee559bef7482b3cf717c93c8bfb0 Author: Michael Palimaka gentoo org> AuthorDate: Sat Mar 18 02:56:01 2017 + Commit: Michael Palimaka gentoo org> CommitDate: Sat Mar 18 02:57:48 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e8fb214e x11-misc/qcomicbook: remove 0.9.0-r1 Package-Manager: Portage-2.3.4, Repoman-2.3.2 x11-misc/qcomicbook/Manifest | 1 - x11-misc/qcomicbook/qcomicbook-0.9.0-r1.ebuild | 54 -- 2 files changed, 55 deletions(-) diff --git a/x11-misc/qcomicbook/Manifest b/x11-misc/qcomicbook/Manifest index bed4a991f44..aa3fb9ff0dd 100644 --- a/x11-misc/qcomicbook/Manifest +++ b/x11-misc/qcomicbook/Manifest @@ -1,2 +1 @@ -DIST qcomicbook-0.9.0.tar.gz 738514 SHA256 8e36f94d7b55798258b6df085324da150b0983020853eb270992157e9692abcb SHA512 e3df724d851822a1d7e72fd6a9fc3b14d5d406d97e0098ddd07a6329a3fe98cc8aa5e77d071f98399d60f231bd0d6dd17ab995aa5e784171aa69fa3fd1ce861b WHIRLPOOL 93234e38c3a589139e305497aaef6d70ffdd09c9fd7fa71e39287dbd3e37dd3a7831b549bf53a72bb3193ca29fd353c282af1a80554de838cbd26265bd23b578 DIST qcomicbook-0.9.1.tar.gz 739887 SHA256 39bb6ba0e20569985c930b0e8bdb19ae9c5453f27e9f7c01c6d44f56fb204619 SHA512 87bd983c4442e220f1bc463e54e0ea583cddbc6becd9eec64801dc5e7e061cdac5805cba83167685ab454e41fcce329fa399d622d7f588940bf057ce4b1f423d WHIRLPOOL 2acebceb33ae273ce7cc7868dcde0cd20fde65a36d972719c995c3bb7fdecec4da06b5ae27c0d660e0d0043a5bf178effcfe518aa8fbdc2597cdc4297499797f diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.0-r1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.0-r1.ebuild deleted file mode 100644 index 6047fae6281..000 --- a/x11-misc/qcomicbook/qcomicbook-0.9.0-r1.ebuild +++ /dev/null @@ -1,54 +0,0 @@ -# Copyright 1999-2015 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -EAPI=5 - -CMAKE_IN_SOURCE_BUILD=1 -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" -inherit cmake-utils flag-o-matic l10n - -DESCRIPTION="A viewer for comic book archives containing jpeg/png images" -HOMEPAGE="http://qcomicbook.org/"; -SRC_URI="http://qcomicbook.org/releases/${P}.tar.gz"; - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 ~ppc x86" -IUSE="debug" - -DEPEND="dev-qt/qtgui:4 - app-text/poppler[qt4]" -RDEPEND="${DEPEND}" - -DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) - -src_prepare() { - rm_loc() { - rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed" - } - rm "i18n/${PN}_en_EN.ts" || die 'removing redundant english locale failed' - l10n_find_plocales_changes "i18n" "${PN}_" ".ts" - l10n_for_each_disabled_locale_do rm_loc - - # fix desktop file - sed -i \ - -e '/^Encoding/d' \ - -e '/^Icon/s/.png//' \ - -e '/^Categories/s/Application;//' \ - "data/${PN}.desktop" || die 'sed on desktop file failed' - - cmake-utils_src_prepare -} - -src_configure() { - use !debug && append-cppflags -DQT_NO_DEBUG_OUTPUT - cmake-utils_src_configure -} - -pkg_postinst() { - elog "For using QComicBook with compressed archives you may want to install:" - elog "app-arch/p7zip" - elog "app-arch/unace" - elog "app-arch/unrar or app-arch/rar" - elog "app-arch/unzip" -}
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: b12659c08c3feabcc3f1c131373f0633cbd54ca5 Author: Agostino Sarubbo gentoo org> AuthorDate: Fri Mar 17 10:25:16 2017 + Commit: Agostino Sarubbo gentoo org> CommitDate: Fri Mar 17 10:26:40 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b12659c0 x11-misc/qcomicbook: x86 stable wrt bug #612476 Package-Manager: Portage-2.3.3, Repoman-2.3.1 RepoMan-Options: --include-arches="x86" Signed-off-by: Agostino Sarubbo gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index b4454a488d9..5e6676e31c6 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/stolowski/QComicBook/archive/${PV}.tar.gz -> ${P}.ta LICENSE="GPL-2" SLOT="0" -KEYWORDS="amd64 ~ppc ~x86" +KEYWORDS="amd64 ~ppc x86" IUSE="debug" DEPEND="app-text/poppler[qt5]
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: 846a59f936ed7c4c941d432a423b3bb0ba32fa59 Author: Agostino Sarubbo gentoo org> AuthorDate: Mon Mar 13 12:58:08 2017 + Commit: Agostino Sarubbo gentoo org> CommitDate: Mon Mar 13 12:58:08 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=846a59f9 x11-misc/qcomicbook: amd64 stable wrt bug #612476 Package-Manager: Portage-2.3.3, Repoman-2.3.1 RepoMan-Options: --include-arches="amd64" Signed-off-by: Agostino Sarubbo gentoo.org> x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index af59a4dd7e8..b4454a488d9 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -13,7 +13,7 @@ SRC_URI="https://github.com/stolowski/QComicBook/archive/${PV}.tar.gz -> ${P}.ta LICENSE="GPL-2" SLOT="0" -KEYWORDS="~amd64 ~ppc ~x86" +KEYWORDS="amd64 ~ppc ~x86" IUSE="debug" DEPEND="app-text/poppler[qt5]
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: e2cd6345080c08a173ef281b4ca451aea96afbc1 Author: Michael Palimaka gentoo org> AuthorDate: Mon Mar 13 01:56:28 2017 + Commit: Michael Palimaka gentoo org> CommitDate: Mon Mar 13 01:57:43 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e2cd6345 x11-misc/qcomicbook: pin dev-qt/qtx11extras to SLOT 5 Package-Manager: Portage-2.3.4, Repoman-2.3.2 x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild index 059b55ba431..af59a4dd7e8 100644 --- a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -21,7 +21,7 @@ DEPEND="app-text/poppler[qt5] dev-qt/qtgui:5 dev-qt/qtprintsupport:5 dev-qt/qtwidgets:5 - dev-qt/qtx11extras" + dev-qt/qtx11extras:5" RDEPEND="${DEPEND}" DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
[gentoo-commits] repo/gentoo:master commit in: x11-misc/qcomicbook/
commit: 66ab94eadd0480d2fe736da7df927cd2cc9832ee Author: Michael Weber gentoo org> AuthorDate: Sun Jan 29 11:44:44 2017 + Commit: Michael Weber gentoo org> CommitDate: Sun Jan 29 11:44:56 2017 + URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=66ab94ea x11-misc/qcomicbook: Version bump (bug 607536, thanks consus gmx.com), update SRC_URI. Package-Manager: Portage-2.3.3, Repoman-2.3.1 x11-misc/qcomicbook/Manifest| 1 + x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild | 59 + 2 files changed, 60 insertions(+) diff --git a/x11-misc/qcomicbook/Manifest b/x11-misc/qcomicbook/Manifest index 97abe71..bed4a99 100644 --- a/x11-misc/qcomicbook/Manifest +++ b/x11-misc/qcomicbook/Manifest @@ -1 +1,2 @@ DIST qcomicbook-0.9.0.tar.gz 738514 SHA256 8e36f94d7b55798258b6df085324da150b0983020853eb270992157e9692abcb SHA512 e3df724d851822a1d7e72fd6a9fc3b14d5d406d97e0098ddd07a6329a3fe98cc8aa5e77d071f98399d60f231bd0d6dd17ab995aa5e784171aa69fa3fd1ce861b WHIRLPOOL 93234e38c3a589139e305497aaef6d70ffdd09c9fd7fa71e39287dbd3e37dd3a7831b549bf53a72bb3193ca29fd353c282af1a80554de838cbd26265bd23b578 +DIST qcomicbook-0.9.1.tar.gz 739887 SHA256 39bb6ba0e20569985c930b0e8bdb19ae9c5453f27e9f7c01c6d44f56fb204619 SHA512 87bd983c4442e220f1bc463e54e0ea583cddbc6becd9eec64801dc5e7e061cdac5805cba83167685ab454e41fcce329fa399d622d7f588940bf057ce4b1f423d WHIRLPOOL 2acebceb33ae273ce7cc7868dcde0cd20fde65a36d972719c995c3bb7fdecec4da06b5ae27c0d660e0d0043a5bf178effcfe518aa8fbdc2597cdc4297499797f diff --git a/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild new file mode 100644 index ..ec6e6aa --- /dev/null +++ b/x11-misc/qcomicbook/qcomicbook-0.9.1.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 + +CMAKE_IN_SOURCE_BUILD=1 +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" +inherit cmake-utils flag-o-matic l10n vcs-snapshot + +DESCRIPTION="A viewer for comic book archives containing jpeg/png images" +HOMEPAGE="http://qcomicbook.org/"; +SRC_URI="https://github.com/stolowski/QComicBook/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="debug" + +DEPEND="app-text/poppler[qt5] + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 + dev-qt/qtx11extras" +RDEPEND="${DEPEND}" + +DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO ) + +src_prepare() { + rm_loc() { + rm "i18n/${PN}_${1}.ts" || die "removing ${1} locale failed" + } + rm "i18n/${PN}_en_EN.ts" || die 'removing redundant english locale failed' + l10n_find_plocales_changes "i18n" "${PN}_" ".ts" + l10n_for_each_disabled_locale_do rm_loc + + # fix desktop file + sed -i \ + -e '/^Encoding/d' \ + -e '/^Icon/s/.png//' \ + -e '/^Categories/s/Application;//' \ + "data/${PN}.desktop" || die 'sed on desktop file failed' + + cmake-utils_src_prepare +} + +src_configure() { + use !debug && append-cppflags -DQT_NO_DEBUG_OUTPUT + cmake-utils_src_configure +} + +pkg_postinst() { + elog "For using QComicBook with compressed archives you may want to install:" + elog "app-arch/p7zip" + elog "app-arch/unace" + elog "app-arch/unrar or app-arch/rar" + elog "app-arch/unzip" +}