summaryrefslogtreecommitdiff
path: root/media-gfx/mcomix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-07-08 10:19:19 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-07-08 10:19:19 +0100
commit92ebda186167f9887d5f43803ced730b499dcf57 (patch)
treeee0e4261f26516d8b6bdaa4c330eee878d9ca136 /media-gfx/mcomix
parentd84be18029b166ee26fe5416098974a8d05b2983 (diff)
gentoo auto-resync : 08:07:2023 - 10:19:19
Diffstat (limited to 'media-gfx/mcomix')
-rw-r--r--media-gfx/mcomix/Manifest2
-rw-r--r--media-gfx/mcomix/files/mcomix-2.1.1-pillow_version.patch15
-rw-r--r--media-gfx/mcomix/mcomix-2.1.1-r1.ebuild47
3 files changed, 64 insertions, 0 deletions
diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest
index 15346b307680..03ac73c135f2 100644
--- a/media-gfx/mcomix/Manifest
+++ b/media-gfx/mcomix/Manifest
@@ -1,6 +1,8 @@
+AUX mcomix-2.1.1-pillow_version.patch 697 BLAKE2B 4ddc0c824bedb8e53032a39d7fc770ec1e607532935db58ad9e53b98a6caa39bf250635e5dc5288ca262a12901b23dfaa2ffbfc19a02578c7c6042b37813916a SHA512 b76ec954f5d935c15a23abc547e38c0141fb644a066ae97c5b2738393d8cb4b2f58d321d998740032f8dae7e1e69e418725f031845c79c1d823dc95191403317
DIST mcomix-2.1.0.tar.gz 517070 BLAKE2B 71aa67b48ac4cc09f12516312a07c1688e3d9ba086e0af8fab0f22549814fc82841b30965b7ac4e90192086338414c50d253af2d37b158fea8fc2358cee3d3db SHA512 385654c48192c20e285a053a8a90f1e792d58f7adbb0960745f31703d2ff5906f5e5bfd868ebaa08dd27314543a761a255503e5d586edd1baa064ffcea0205ca
DIST mcomix-2.1.1.tar.gz 517628 BLAKE2B fb4d6cb4a10966795156672e8710e264f6e22abeebc3bd9471f378169417a6aab39c705d916624b9c1cd547516ae042d94cf00cf4596242f4655045c305bc630 SHA512 699fc1fe2348491ca5f94c9142e8a7432a3afc932aff42187ec57b5026d84ad189700283082fb60f920088747f13cc8f74297feaaab8ce2a5a9bd42d74b7f5e2
EBUILD mcomix-2.1.0.ebuild 1109 BLAKE2B 0041670c4f8cdb3eac50f5526305aca2c0448a3aec7123626a2eb3ebebbd792da721642505a392a059a7db7cef40bb048b6b1086a713c9bab18644bad9a04549 SHA512 0793f5c761a31b43e36b22cae11567ebd6d35cb38de608b051dc88f5a808ca31812ab47c324bfcc901e9b64c2435e34609f401b76e86f19fd2b9f319dc407575
+EBUILD mcomix-2.1.1-r1.ebuild 1164 BLAKE2B 43dc15b6e54faa3a2f2157c86150785af1b3b59308c422f5184f381d40e8c9eb69f2266c6769dc9801d1481e196e110726cbad29c88a0c7c482e83dad92df212 SHA512 4ae9d007439e20a9cdb74a081495c8cbb4b4620f19a4a28063ebffd1e74d4a3d9ef37b31fc24a8e94e87f5075cde79f5a9c485063e15c778f39c569b15ff998c
EBUILD mcomix-2.1.1.ebuild 1111 BLAKE2B 56f9ccb5606133dd38bd572586226fd2b4ddf13cc589dc5becc7a52c1a2e65f7a17abd9b7770481b04b177b5bfce26a0e20d0b3bcd7993ddc2af4646ed9dcbf0 SHA512 ee58a7aeb7273e7191e6a95818bfe6a030865c47e0b2183495e1cd5acb1bef09b24a290cee4a2b03e4a8b83be030bb085a7874fd57f710395fff97ba505e3e71
EBUILD mcomix-9999.ebuild 1096 BLAKE2B f42c1830533a776f2c89b58cc4e563a6c4552ee5796112d22dfbd0644f6b34803867ad31669fc08c225adafd183c90dc822b1b3bd54fb68ee809a54fd84d93cc SHA512 36b339b90fb739e6973eee2c2c0a096e6858ac960923cd37db6b2bdacd36fdce4dc93e2c06ac998c8cd3ad6d75ce8747ceabeeec3e5674e384e7c35dedb372c5
MISC metadata.xml 398 BLAKE2B 1595be3107e03d5ea0602c77d75d0d5b10c6c36307edaa979b64ce3418c674cd3905578ea098159493860ea4b3fb3c297da24b281869dedf92b7eec8f70d32c8 SHA512 4783cdb12689f0e346769eebd4da9a14e40225c30f6afed9b7058a6ac6eb3591b39990c70f2b57339582f27a71c2fa9f88390401f51cb5f7d43cc8c0d9a39205
diff --git a/media-gfx/mcomix/files/mcomix-2.1.1-pillow_version.patch b/media-gfx/mcomix/files/mcomix-2.1.1-pillow_version.patch
new file mode 100644
index 000000000000..b4e51d230292
--- /dev/null
+++ b/media-gfx/mcomix/files/mcomix-2.1.1-pillow_version.patch
@@ -0,0 +1,15 @@
+--- a/mcomix/run.py 2023-07-03 21:39:35.146479272 +0300
++++ b/mcomix/run.py 2023-07-03 21:40:16.742507561 +0300
+@@ -122,7 +122,11 @@
+ try:
+ import PIL.Image
+
+- if PIL.__version__ < '6.0.0':
++ try:
++ pil_major_version = int(PIL.__version__[0:PIL.__version__.index('.')])
++ except (ValueError, IndexError):
++ pil_major_version = 0
++ if pil_major_version < 6:
+ log.error( _("You don't have the required version of the Python Imaging Library Fork (Pillow) installed."))
+ log.error( _('Installed Pillow version is: %s') % PIL.__version__ )
+ log.error( _('Required Pillow version is: 6.0.0 or higher') )
diff --git a/media-gfx/mcomix/mcomix-2.1.1-r1.ebuild b/media-gfx/mcomix/mcomix-2.1.1-r1.ebuild
new file mode 100644
index 000000000000..899761314205
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-2.1.1-r1.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{9..12} )
+inherit distutils-r1 optfeature xdg
+
+DESCRIPTION="GTK image viewer for comic book archives"
+HOMEPAGE="https://mcomix.sourceforge.net"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}"
+RDEPEND="${DEPEND}
+ >=dev-python/pillow-6.0.0[${PYTHON_USEDEP}]
+ >=dev-python/pycairo-1.16.0[${PYTHON_USEDEP}]
+ >=dev-python/pygobject-3.36.0[${PYTHON_USEDEP}]
+ media-libs/libjpeg-turbo:0
+ x11-libs/gtk+:3[introspection]"
+BDEPEND="sys-devel/gettext"
+# Most tests are quite old and do not run
+RESTRICT="test"
+
+PATCHES=( "${FILESDIR}"/${P}-pillow_version.patch )
+
+src_prepare() {
+ default
+
+ # Uncompress man page
+ gunzip mcomix.1.gz || die
+ sed -e "s/mcomix.1.gz/mcomix.1/" -i setup.py || die
+}
+
+pkg_postinst() {
+ xdg_pkg_postinst
+
+ optfeature "RAR (.cbr) archives" app-arch/unrar
+ optfeature "7Zip archives" app-arch/p7zip
+ optfeature "LHA/LZA archives" app-arch/lha
+ optfeature "PDF files" app-text/mupdf
+}