diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-01-27 12:56:47 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-01-27 12:56:47 +0000 |
commit | 4482d99f0743195c71b2b03faa8bfbda5501910b (patch) | |
tree | 853f042c5e26ca4bce5b091ccc3128b9a763984a /media-gfx/mcomix/mcomix-3.1.0.ebuild | |
parent | 9c4ecbcb1ba97e8bfd6dac8c2433fb9fdfee5fe6 (diff) |
gentoo auto-resync : 27:01:2024 - 12:56:47
Diffstat (limited to 'media-gfx/mcomix/mcomix-3.1.0.ebuild')
-rw-r--r-- | media-gfx/mcomix/mcomix-3.1.0.ebuild | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/media-gfx/mcomix/mcomix-3.1.0.ebuild b/media-gfx/mcomix/mcomix-3.1.0.ebuild new file mode 100644 index 000000000000..d6fa2ffcfe75 --- /dev/null +++ b/media-gfx/mcomix/mcomix-3.1.0.ebuild @@ -0,0 +1,59 @@ +# Copyright 1999-2024 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 desktop 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" + +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" + +src_prepare() { + default + + # Uncompress man page + gunzip share/man/man1/mcomix.1.gz || die +} + +src_install() { + distutils-r1_src_install + + # Application meta files are not installed automatically anymore + domenu share/applications/*.desktop + local x + for x in 16 22 24 32 48 256 scalable; do + doicon -s ${x} share/icons/hicolor/${x}*/* + done + doman share/man/man1/mcomix.1 + insinto /usr/share/metainfo + doins share/metainfo/*.xml + insinto /usr/share/mime/packages + doins share/mime/packages/*.xml +} + +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 +} |