summaryrefslogtreecommitdiff
path: root/media-gfx/mcomix
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
committerV3n3RiX <venerix@redcorelinux.org>2020-02-29 18:01:47 +0000
commitceeeb463cc1eef97fd62eaee8bf2196ba04bc384 (patch)
tree9f47ee47c31a0f13f9496879cd88a1042550aa81 /media-gfx/mcomix
parent53cba99042fa967e2a93da9f8db806fe2d035543 (diff)
gentoo (leap year) resync : 29.02.2020
Diffstat (limited to 'media-gfx/mcomix')
-rw-r--r--media-gfx/mcomix/Manifest5
-rw-r--r--media-gfx/mcomix/mcomix-1.3.0_pre20200206.ebuild78
-rw-r--r--media-gfx/mcomix/mcomix-9999.ebuild73
-rw-r--r--media-gfx/mcomix/metadata.xml5
4 files changed, 160 insertions, 1 deletions
diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest
index 5f7847bf61df..3ff381835e78 100644
--- a/media-gfx/mcomix/Manifest
+++ b/media-gfx/mcomix/Manifest
@@ -1,3 +1,6 @@
DIST mcomix-1.2.1.tar.bz2 571128 BLAKE2B fa00e55e5cf2ef676a625b97ca467ade6b629fa08bfd920b8c370dc7d33c6602c5614d120d7279df32d063db646da8b635712ba90793175eea2c74c2c1973a8a SHA512 efa4d57edc3a48d9e711767fb3e233ef9b334ff8ba467999e572e60ed747a4ee4aa420c8aa7788b16d7eb6e0901d454d6a405fcec47a8c74098a49491e915cd0
+DIST mcomix-1.3.0_pre20200206.tar.gz 3292571 BLAKE2B ad76316020645495042d27bf831588e628da11077efe29b302a57be4e688558b4db8d3f850200bf4a54b84b428a16a52f88ea5e20be85b628ef3630a5f624643 SHA512 c98d4a7022993af3a5c0b5425df52f14b586549472bcd4576a72039c8c6d4fde31df4255df45ab7467acb0280bda02b92d4803b7f92b7c1c818b58df7b52a3ff
EBUILD mcomix-1.2.1.ebuild 1684 BLAKE2B 593e3bffc8bb970f7839bc4ded48bef0505cfe30982d1432b357e4d4ab5607feb9999898afbafbc3855892249b2c5c18bae1586fd8db89d0b31a6c5bebbf11d2 SHA512 4b799f1e6d4a40f1aa88cbe34c27d787046b65ed05c55e0a5ca9918762b345481b7ed5bd8fbde10508e2f14f68ad16c8029aaf8a56c922e16fb635fc5809a1f1
-MISC metadata.xml 345 BLAKE2B 5b642c2387884d75cef7f8121f65d121dd6c83c3b0abc78cb2d81eed5195653fffd4c1e1ad4f441bfc7ee391fa5e356a10e28d05438dca5aaad25ece60d15f41 SHA512 2abfc4450db91c8b5a4645600e2a289d81d416e5f01f5f45020e5626a008bde48e6864c13a132c755b9dbafa1ebcd4756da7a1be30c897f02aad0aebaab38d5e
+EBUILD mcomix-1.3.0_pre20200206.ebuild 1796 BLAKE2B 6059407c351ea46238728e1545cba3be40cb433888f3ac8128d928c07c8eff86ba67b16f01f3218b470340871b7a280227c9e091e2511d84ad6526475442861e SHA512 b6e1e084514ec3fe38faed2e45d2ccb36a7897ca160a8290ecab5a78101f77133fa158a74eb113dc3944af80bbb613fb3d49a9bc6639154c44aaa214a57aca79
+EBUILD mcomix-9999.ebuild 1646 BLAKE2B 1d3b03cf2a5584f446b8b59501c044be9a7c4a10fd0aa20e8fa2f8fcd71f24c0e4a7b3d24e90e9ad152eccb639daaeba8aecb6e92724e5e6429f5e8fd367434c SHA512 3c5f49c2808abbe48dac1ff1ab6f2d92bf48e8882c972c325c2ab78a6ab4a2120f8c32a32e78bfae73da31fb78aec38e1d854737b8b9032592567fb71ae5e4d6
+MISC metadata.xml 523 BLAKE2B adac37e097094bc3704967b0ecd2c1366168e39e2fb86805846e2a9b92c1aabaff6e36e39d3318d45ed4147f9e8a253e561a75645d9672ec4a0d32f78673a3f6 SHA512 d36ee6da57cd276e16a95507ec3982a8a0f481044695185161b1a37bf95f709e972634397dd2aaa635c64b0dbf17406557a47e9e1f1a85ad18799ebe4eb367b1
diff --git a/media-gfx/mcomix/mcomix-1.3.0_pre20200206.ebuild b/media-gfx/mcomix/mcomix-1.3.0_pre20200206.ebuild
new file mode 100644
index 000000000000..dcfc08d61190
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-1.3.0_pre20200206.ebuild
@@ -0,0 +1,78 @@
+# 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 python-r1 xdg
+
+# Hash used for this version
+GIT_PV="b80f3485b6ec324aec1dc20f28296a8891ad70dd"
+
+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 ~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
+
+ 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/mcomix-9999.ebuild b/media-gfx/mcomix/mcomix-9999.ebuild
new file mode 100644
index 000000000000..15afb7c558eb
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-9999.ebuild
@@ -0,0 +1,73 @@
+# 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"
+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>