diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2020-12-04 10:17:07 +0100 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2020-12-04 10:17:16 +0100 |
commit | 953eba653a80d2f004f45964a892511207f1dbec (patch) | |
tree | 5d088901b551b26efa6f0ade5635ee374aac96d3 /media-gfx/mcomix/mcomix-1.3.0_pre20201123.ebuild | |
parent | net-libs/libtirpc: Removed old (diff) | |
download | gentoo-953eba653a80d2f004f45964a892511207f1dbec.tar.gz gentoo-953eba653a80d2f004f45964a892511207f1dbec.tar.bz2 gentoo-953eba653a80d2f004f45964a892511207f1dbec.zip |
media-gfx/mcomix: update snapshot, fix live ebuild
Bug: https://bugs.gentoo.org/757093
Package-Manager: Portage-3.0.11, Repoman-3.0.2
Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'media-gfx/mcomix/mcomix-1.3.0_pre20201123.ebuild')
-rw-r--r-- | media-gfx/mcomix/mcomix-1.3.0_pre20201123.ebuild | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/media-gfx/mcomix/mcomix-1.3.0_pre20201123.ebuild b/media-gfx/mcomix/mcomix-1.3.0_pre20201123.ebuild new file mode 100644 index 000000000000..5f6da1834a5f --- /dev/null +++ b/media-gfx/mcomix/mcomix-1.3.0_pre20201123.ebuild @@ -0,0 +1,75 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{6,7,8,9} ) +inherit desktop python-r1 xdg + +# Hash used for this version +GIT_PV="cdcb27533dc7ee2ebf7b0a8ab5ba10e61c0b8ff8" + +DESCRIPTION="GTK image viewer for comic book archives" +HOMEPAGE="https://github.com/multiSnow/mcomix3" +SRC_URI="https://github.com/multiSnow/mcomix3/archive/${GIT_PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="" + +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} + virtual/jpeg + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pygobject[${PYTHON_USEDEP}] + !media-gfx/comix" +BDEPEND="sys-devel/gettext" + +REQUIRED_USE=${PYTHON_REQUIRED_USE} + +S=${WORKDIR}/mcomix3-${GIT_PV} + +src_prepare() { + default + + for file in mcomix/mcomix/messages/*/LC_MESSAGES/*po + do + msgfmt ${file} -o ${file/po/mo} || die + rm ${file} || die + done +} + +src_install() { + python_foreach_impl python_domodule mcomix/mcomix + python_foreach_impl python_newscript mcomix/mcomixstarter.py mcomix + + for size in 16 22 24 32 48 + do + doicon -s ${size} \ + mime/icons/${size}x${size}/*png \ + mcomix/mcomix/images/${size}x${size}/mcomix.png + done + doicon mcomix/mcomix/images/mcomix.png + domenu mime/mcomix.desktop + doman man/mcomix.1 + + insinto /usr/share/metainfo + doins mime/mcomix.appdata.xml + + dodoc README.rst TODO +} + +pkg_postinst() { + xdg_pkg_postinst + 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 +} |