summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernard Cafarelli <voyageur@gentoo.org>2022-01-28 23:42:34 +0100
committerBernard Cafarelli <voyageur@gentoo.org>2022-01-28 23:42:47 +0100
commit411f0930418b5ef4eb8c10c1e7f96f20d7d1d210 (patch)
treea5005cb3c3a22b89efded97058de83a201af2685 /media-gfx/mcomix
parentmedia-gfx/mcomix: drop old stable (diff)
downloadgentoo-411f0930418b5ef4eb8c10c1e7f96f20d7d1d210.tar.gz
gentoo-411f0930418b5ef4eb8c10c1e7f96f20d7d1d210.tar.bz2
gentoo-411f0930418b5ef4eb8c10c1e7f96f20d7d1d210.zip
media-gfx/mcomix: bump to newer snapshot
This one has python 3.10 deprecation fixes Package-Manager: Portage-3.0.30, Repoman-3.0.3 Signed-off-by: Bernard Cafarelli <voyageur@gentoo.org>
Diffstat (limited to 'media-gfx/mcomix')
-rw-r--r--media-gfx/mcomix/Manifest1
-rw-r--r--media-gfx/mcomix/mcomix-1.3.0_pre20211015.ebuild75
2 files changed, 76 insertions, 0 deletions
diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest
index 1318d93ef75e..02d0f2660ca2 100644
--- a/media-gfx/mcomix/Manifest
+++ b/media-gfx/mcomix/Manifest
@@ -1 +1,2 @@
DIST mcomix-1.3.0_pre20201123.tar.gz 3888279 BLAKE2B 0bce5d8b3d6e20fc3c422d137963fa8cf506ce969bb5c8062b1db4dcd85d5c1912352fa1eb8c752719b0ac95715486ae47d56e0bf24119f9f55af56f6fbf657c SHA512 24b470e1dca266851bb241f109b39c785443ece36d12a01e579c8a59cb7585ad3978b3696829318f04d4b172cfcf57cf100d76c7c25765260bf26f698d85ba2a
+DIST mcomix-1.3.0_pre20211015.tar.gz 3888967 BLAKE2B 16275b5e63dbedb481dba34e787681a9bbc0615c53c71a0037f7d15fa5ee135b5c2508bbf4ef7fddeb45b65c291d5651d81b2e0a180de26054cdbe994ceab028 SHA512 93092a8ec992922bd2327c33a5ab86edbffcdc66e9da5b443d7e4131686b2c3b47017aa4f02b0ca991b6d08dd68e6578137bbf6028ca274efcd2679a12cfe05d
diff --git a/media-gfx/mcomix/mcomix-1.3.0_pre20211015.ebuild b/media-gfx/mcomix/mcomix-1.3.0_pre20211015.ebuild
new file mode 100644
index 000000000000..095d015ca001
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-1.3.0_pre20211015.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..10} )
+inherit desktop python-r1 xdg
+
+# Hash used for this version
+GIT_PV="483f4b3f2d9a125606d47597ae7eff3b38e5bf9d"
+
+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 ~riscv ~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
+}