summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2020-02-24 00:36:43 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2020-02-24 00:58:04 +0100
commite3ca3828762e5812dbe68bcb36cb66b3894b6bcb (patch)
treeaeaf608b5767cc39185a773d8a182b0bf17cfaf4 /media-gfx/mcomix
parentvirtual/httpd-php: amd64 stable (bug #710304) (diff)
downloadgentoo-e3ca3828762e5812dbe68bcb36cb66b3894b6bcb.tar.gz
gentoo-e3ca3828762e5812dbe68bcb36cb66b3894b6bcb.tar.bz2
gentoo-e3ca3828762e5812dbe68bcb36cb66b3894b6bcb.zip
media-gfx/mcomix: add live ebuild of python3 fork
Also add myself to maintainers Package-Manager: Portage-2.3.89, Repoman-2.3.20 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'media-gfx/mcomix')
-rw-r--r--media-gfx/mcomix/mcomix-9999.ebuild74
-rw-r--r--media-gfx/mcomix/metadata.xml5
2 files changed, 79 insertions, 0 deletions
diff --git a/media-gfx/mcomix/mcomix-9999.ebuild b/media-gfx/mcomix/mcomix-9999.ebuild
new file mode 100644
index 000000000000..6dd55b82b07f
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-9999.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{5,6,7,8} )
+inherit desktop git-r3 python-r1 xdg
+
+DESCRIPTION="GTK image viewer for comic book archives"
+HOMEPAGE="https://github.com/multiSnow/mcomix3"
+EGIT_REPO_URI="https://github.com/multiSnow/mcomix3"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ virtual/jpeg
+ dev-python/pillow[${PYTHON_USEDEP}]
+ dev-python/pygobject[${PYTHON_USEDEP}]
+ !media-gfx/comix
+ !media-gfx/mcomix"
+BDEPEND="sys-devel/gettext"
+
+REQUIRED_USE=${PYTHON_REQUIRED_USE}
+
+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
+
+ insinto /usr/share/mime/packages
+ doins mime/mcomix.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
+}
diff --git a/media-gfx/mcomix/metadata.xml b/media-gfx/mcomix/metadata.xml
index 266193ff5e3b..dc6d17f3b83c 100644
--- a/media-gfx/mcomix/metadata.xml
+++ b/media-gfx/mcomix/metadata.xml
@@ -1,11 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
+ <maintainer type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
<maintainer type="project">
<email>graphics@gentoo.org</email>
<name>Gentoo Graphics Project</name>
</maintainer>
<upstream>
<remote-id type="sourceforge">mcomix</remote-id>
+ <remote-id type="github">multiSnow/mcomix3</remote-id>
</upstream>
</pkgmetadata>