diff options
author | Ryan Hill <rhill@gentoo.org> | 2016-02-17 21:43:45 -0600 |
---|---|---|
committer | Ryan Hill <rhill@gentoo.org> | 2016-02-17 21:44:08 -0600 |
commit | afa5dd7f29da656d8534018dc726c307ab9c9748 (patch) | |
tree | c1de1d6fe58bb84b7222b227b9524455d420160d /media-gfx | |
parent | dev-libs/boehm-gc: workaround sparc build failure #574566 (diff) | |
download | gentoo-afa5dd7f29da656d8534018dc726c307ab9c9748.tar.gz gentoo-afa5dd7f29da656d8534018dc726c307ab9c9748.tar.bz2 gentoo-afa5dd7f29da656d8534018dc726c307ab9c9748.zip |
media-gfx/mcomix: Version bump (bug #574928).
Also added l10n support.
Package-Manager: portage-2.2.27
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/mcomix/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/mcomix/mcomix-1.2.1.ebuild | 70 |
2 files changed, 71 insertions, 0 deletions
diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest index 848fefe718bd..54fab4697234 100644 --- a/media-gfx/mcomix/Manifest +++ b/media-gfx/mcomix/Manifest @@ -1,2 +1,3 @@ DIST mcomix-1.00.tar.bz2 527779 SHA256 d8453109a297153f67fdc898d822fa57057d575b71ed857e538da9a7426f0cde SHA512 9fc975afa92ad7130fe0d39058463cf26f8a9415257869e45e4cf83fae5e2bd8f4f264821046fcf425ee3729ec3dacfa59cd52342055a6246cf0b61b866f09b1 WHIRLPOOL 6aed2176904d5f12cd66e7f6f41fc23914d5a81cd514242a209994222b7ee1d18ceca4367e78f8a61bb6edbec559d0da94165f4db841c44840d6d768ba700f14 DIST mcomix-1.01.tar.bz2 543293 SHA256 da333d0bce5157fc8e15d13de6d9ce46b1c35692aa510cb20d6b2230f7c2774c SHA512 d31ed5d851c761d9680643df5c5bac1af817c61b49455bfd887381e0d7651593f9fb70fdbdb7533ae7bb6f8a203f0cabcbfdcce8a9681aa1d9ceaa3a411c1e70 WHIRLPOOL eb57890b612341d9920894b757c2eed8d1b6e8d31c911f2d7aff33a76c7cc2d1c3f5ebf3bfe96945fc0fa3ad612c369e6d96517b200ead3679559be69924329a +DIST mcomix-1.2.1.tar.bz2 571128 SHA256 7e43159dc585bc9bc31970a44bd2b4e42c303660c4c8cf7f0eda413a6f72fa3b SHA512 efa4d57edc3a48d9e711767fb3e233ef9b334ff8ba467999e572e60ed747a4ee4aa420c8aa7788b16d7eb6e0901d454d6a405fcec47a8c74098a49491e915cd0 WHIRLPOOL cabebccb5793bdd78686c22448688826bc4ba7b9e422e3aa712f0930b8e8029721cf48bbe4e8d06e34c8f76515785ff259d08a7021e60beb1719c9b35d356619 diff --git a/media-gfx/mcomix/mcomix-1.2.1.ebuild b/media-gfx/mcomix/mcomix-1.2.1.ebuild new file mode 100644 index 000000000000..4e1087fe036f --- /dev/null +++ b/media-gfx/mcomix/mcomix-1.2.1.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI="5" + +PYTHON_COMPAT=( python2_7 ) +PYTHON_REQ_USE="sqlite" + +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" + +inherit distutils-r1 fdo-mime l10n + +DESCRIPTION="A fork of comix, a GTK image viewer for comic book archives" +HOMEPAGE="http://mcomix.sourceforge.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]" +RDEPEND="${DEPEND} + >=dev-python/pygtk-2.14[${PYTHON_USEDEP}] + virtual/jpeg + dev-python/pillow[${PYTHON_USEDEP}] + x11-libs/gdk-pixbuf + !media-gfx/comix" + +DOCS=( ChangeLog README ) + +src_prepare() { + local checklocales + for l in $(find "${S}"/mcomix/messages/* -maxdepth 0 -type d); + do checklocales+="$(basename $l) " + done + + [[ ${PLOCALES} == ${checklocales% } ]] \ + || eqawarn "Update to PLOCALES=\"${checklocales% }\"" + + my_rm_loc() { + rm -rf "${S}/mcomix/messages/${1}/LC_MESSAGES" || die + rmdir "${S}/mcomix/messages/${1}" || die + } + + l10n_for_each_disabled_locale_do my_rm_loc + + distutils-r1_src_prepare +} + +pkg_postinst() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update + echo + elog "Additional packages are required to open the most common comic archives:" + elog + elog " cbr: app-arch/unrar" + elog " cbz: app-arch/unzip" + elog + elog "You can also add support for 7z or LHA archives by installing" + elog "app-arch/p7zip or app-arch/lha. Install app-text/mupdf for" + elog "pdf support." + echo +} + +pkg_postrm() { + fdo-mime_mime_database_update + fdo-mime_desktop_database_update +} |