Gentoo Archives: gentoo-commits

From: Ryan Hill <rhill@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/mcomix/
Date: Thu, 18 Feb 2016 03:44:32
Message-Id: 1455767048.afa5dd7f29da656d8534018dc726c307ab9c9748.rhill@gentoo
1 commit: afa5dd7f29da656d8534018dc726c307ab9c9748
2 Author: Ryan Hill <rhill <AT> gentoo <DOT> org>
3 AuthorDate: Thu Feb 18 03:43:45 2016 +0000
4 Commit: Ryan Hill <rhill <AT> gentoo <DOT> org>
5 CommitDate: Thu Feb 18 03:44:08 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=afa5dd7f
7
8 media-gfx/mcomix: Version bump (bug #574928).
9
10 Also added l10n support.
11
12 Package-Manager: portage-2.2.27
13
14 media-gfx/mcomix/Manifest | 1 +
15 media-gfx/mcomix/mcomix-1.2.1.ebuild | 70 ++++++++++++++++++++++++++++++++++++
16 2 files changed, 71 insertions(+)
17
18 diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest
19 index 848fefe..54fab46 100644
20 --- a/media-gfx/mcomix/Manifest
21 +++ b/media-gfx/mcomix/Manifest
22 @@ -1,2 +1,3 @@
23 DIST mcomix-1.00.tar.bz2 527779 SHA256 d8453109a297153f67fdc898d822fa57057d575b71ed857e538da9a7426f0cde SHA512 9fc975afa92ad7130fe0d39058463cf26f8a9415257869e45e4cf83fae5e2bd8f4f264821046fcf425ee3729ec3dacfa59cd52342055a6246cf0b61b866f09b1 WHIRLPOOL 6aed2176904d5f12cd66e7f6f41fc23914d5a81cd514242a209994222b7ee1d18ceca4367e78f8a61bb6edbec559d0da94165f4db841c44840d6d768ba700f14
24 DIST mcomix-1.01.tar.bz2 543293 SHA256 da333d0bce5157fc8e15d13de6d9ce46b1c35692aa510cb20d6b2230f7c2774c SHA512 d31ed5d851c761d9680643df5c5bac1af817c61b49455bfd887381e0d7651593f9fb70fdbdb7533ae7bb6f8a203f0cabcbfdcce8a9681aa1d9ceaa3a411c1e70 WHIRLPOOL eb57890b612341d9920894b757c2eed8d1b6e8d31c911f2d7aff33a76c7cc2d1c3f5ebf3bfe96945fc0fa3ad612c369e6d96517b200ead3679559be69924329a
25 +DIST mcomix-1.2.1.tar.bz2 571128 SHA256 7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b SHA512 efa4d57edc3a48d9e711767fb3e233ef9b334ff8ba467999e572e60ed747a4ee4aa420c8aa7788b16d7eb6e0901d454d6a405fcec47a8c74098a49491e915cd0 WHIRLPOOL cabebccb5793bdd78686c22448688826bc4ba7b9e422e3aa712f0930b8e8029721cf48bbe4e8d06e34c8f76515785ff259d08a7021e60beb1719c9b35d356619
26
27 diff --git a/media-gfx/mcomix/mcomix-1.2.1.ebuild b/media-gfx/mcomix/mcomix-1.2.1.ebuild
28 new file mode 100644
29 index 0000000..4e1087f
30 --- /dev/null
31 +++ b/media-gfx/mcomix/mcomix-1.2.1.ebuild
32 @@ -0,0 +1,70 @@
33 +# Copyright 1999-2016 Gentoo Foundation
34 +# Distributed under the terms of the GNU General Public License v2
35 +# $Id$
36 +
37 +EAPI="5"
38 +
39 +PYTHON_COMPAT=( python2_7 )
40 +PYTHON_REQ_USE="sqlite"
41 +
42 +PLOCALES="ca cs de el es fa fr gl he hr hu id it ja ko nl pl pt_BR ru sv uk zh_CN zh_TW"
43 +
44 +inherit distutils-r1 fdo-mime l10n
45 +
46 +DESCRIPTION="A fork of comix, a GTK image viewer for comic book archives"
47 +HOMEPAGE="http://mcomix.sourceforge.net"
48 +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
49 +
50 +LICENSE="GPL-2"
51 +SLOT="0"
52 +KEYWORDS="~amd64 ~x86"
53 +IUSE=""
54 +
55 +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
56 +RDEPEND="${DEPEND}
57 + >=dev-python/pygtk-2.14[${PYTHON_USEDEP}]
58 + virtual/jpeg
59 + dev-python/pillow[${PYTHON_USEDEP}]
60 + x11-libs/gdk-pixbuf
61 + !media-gfx/comix"
62 +
63 +DOCS=( ChangeLog README )
64 +
65 +src_prepare() {
66 + local checklocales
67 + for l in $(find "${S}"/mcomix/messages/* -maxdepth 0 -type d);
68 + do checklocales+="$(basename $l) "
69 + done
70 +
71 + [[ ${PLOCALES} == ${checklocales% } ]] \
72 + || eqawarn "Update to PLOCALES=\"${checklocales% }\""
73 +
74 + my_rm_loc() {
75 + rm -rf "${S}/mcomix/messages/${1}/LC_MESSAGES" || die
76 + rmdir "${S}/mcomix/messages/${1}" || die
77 + }
78 +
79 + l10n_for_each_disabled_locale_do my_rm_loc
80 +
81 + distutils-r1_src_prepare
82 +}
83 +
84 +pkg_postinst() {
85 + fdo-mime_mime_database_update
86 + fdo-mime_desktop_database_update
87 + echo
88 + elog "Additional packages are required to open the most common comic archives:"
89 + elog
90 + elog " cbr: app-arch/unrar"
91 + elog " cbz: app-arch/unzip"
92 + elog
93 + elog "You can also add support for 7z or LHA archives by installing"
94 + elog "app-arch/p7zip or app-arch/lha. Install app-text/mupdf for"
95 + elog "pdf support."
96 + echo
97 +}
98 +
99 +pkg_postrm() {
100 + fdo-mime_mime_database_update
101 + fdo-mime_desktop_database_update
102 +}