public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Bernard Cafarelli" <voyageur@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/mcomix/
Date: Sat,  9 Jul 2022 15:43:39 +0000 (UTC)	[thread overview]
Message-ID: <1657381254.16e61335682f168c215504e4fe4e7090397fc4f1.voyageur@gentoo> (raw)

commit:     16e61335682f168c215504e4fe4e7090397fc4f1
Author:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  9 15:40:07 2022 +0000
Commit:     Bernard Cafarelli <voyageur <AT> gentoo <DOT> org>
CommitDate: Sat Jul  9 15:40:54 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16e61335

media-gfx/mcomix: 2.0.2 bump

Switch back to original project, now python3 and gtk3 compatible with
new releases

Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org>

 media-gfx/mcomix/Manifest            |  1 +
 media-gfx/mcomix/mcomix-2.0.2.ebuild | 44 ++++++++++++++++++++++++++
 media-gfx/mcomix/mcomix-9999.ebuild  | 61 +++++++++++-------------------------
 media-gfx/mcomix/metadata.xml        |  1 -
 4 files changed, 63 insertions(+), 44 deletions(-)

diff --git a/media-gfx/mcomix/Manifest b/media-gfx/mcomix/Manifest
index e331ad6213f0..c39b8398fb36 100644
--- a/media-gfx/mcomix/Manifest
+++ b/media-gfx/mcomix/Manifest
@@ -1 +1,2 @@
 DIST mcomix-1.3.0_pre20211015.tar.gz 3888967 BLAKE2B 16275b5e63dbedb481dba34e787681a9bbc0615c53c71a0037f7d15fa5ee135b5c2508bbf4ef7fddeb45b65c291d5651d81b2e0a180de26054cdbe994ceab028 SHA512 93092a8ec992922bd2327c33a5ab86edbffcdc66e9da5b443d7e4131686b2c3b47017aa4f02b0ca991b6d08dd68e6578137bbf6028ca274efcd2679a12cfe05d
+DIST mcomix-2.0.2.tar.gz 515427 BLAKE2B 3f7b7a0788622173049169034a0a8ed3d3d5fb64fd32e10f4cb3f5b1a4815dee29a1a1b576798bddaeb41534ab66cb301825ddcd39b0b01252e1bbe37e0384b9 SHA512 fb908f19b98364e8a765c26fe6b2d7e0b147210b4406a421ae7f010ffdf1987520899ffe2343a26bcdb0bf6b6c9cc5f5ec866f72adb49fb16f0911dd42289a0d

diff --git a/media-gfx/mcomix/mcomix-2.0.2.ebuild b/media-gfx/mcomix/mcomix-2.0.2.ebuild
new file mode 100644
index 000000000000..575e32e3e1ee
--- /dev/null
+++ b/media-gfx/mcomix/mcomix-2.0.2.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+inherit distutils-r1 optfeature xdg
+
+DESCRIPTION="GTK image viewer for comic book archives"
+HOMEPAGE="http://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"
+BDEPEND="sys-devel/gettext"
+# Most tests are quite old and do not run
+RESTRICT="test"
+
+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
+}

diff --git a/media-gfx/mcomix/mcomix-9999.ebuild b/media-gfx/mcomix/mcomix-9999.ebuild
index 137628e7dda6..f0dfb0115b36 100644
--- a/media-gfx/mcomix/mcomix-9999.ebuild
+++ b/media-gfx/mcomix/mcomix-9999.ebuild
@@ -3,12 +3,13 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{8..10} )
-inherit desktop git-r3 python-r1 xdg
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{8..11} )
+inherit distutils-r1 git-r3 optfeature xdg
 
 DESCRIPTION="GTK image viewer for comic book archives"
-HOMEPAGE="https://github.com/multiSnow/mcomix3"
-EGIT_REPO_URI="https://github.com/multiSnow/mcomix3"
+HOMEPAGE="http://mcomix.sourceforge.net"
+EGIT_REPO_URI="https://git.code.sf.net/p/${PN}/git"
 
 LICENSE="GPL-2"
 SLOT="0"
@@ -17,53 +18,27 @@ IUSE=""
 
 DEPEND="${PYTHON_DEPS}"
 RDEPEND="${DEPEND}
-	dev-python/pillow[${PYTHON_USEDEP}]
-	dev-python/pygobject[${PYTHON_USEDEP}]
+	>=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"
 BDEPEND="sys-devel/gettext"
-
-REQUIRED_USE=${PYTHON_REQUIRED_USE}
+# Most tests are quite old and do not run
+RESTRICT="test"
 
 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
+	# 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
-	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
+
+	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
 }

diff --git a/media-gfx/mcomix/metadata.xml b/media-gfx/mcomix/metadata.xml
index d517b361220b..f62d0f2ed5e2 100644
--- a/media-gfx/mcomix/metadata.xml
+++ b/media-gfx/mcomix/metadata.xml
@@ -7,6 +7,5 @@
   </maintainer>
   <upstream>
     <remote-id type="sourceforge">mcomix</remote-id>
-    <remote-id type="github">multiSnow/mcomix3</remote-id>
   </upstream>
 </pkgmetadata>


             reply	other threads:[~2022-07-09 15:43 UTC|newest]

Thread overview: 42+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09 15:43 Bernard Cafarelli [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-01-27 10:02 [gentoo-commits] repo/gentoo:master commit in: media-gfx/mcomix/ Bernard Cafarelli
2024-01-27 10:02 Bernard Cafarelli
2024-01-25 20:03 Bernard Cafarelli
2024-01-19  3:18 Sam James
2023-10-29 20:52 Sam James
2023-10-29 20:52 Sam James
2023-09-22  6:59 Bernard Cafarelli
2023-09-21 21:24 Bernard Cafarelli
2023-09-21 21:24 Bernard Cafarelli
2023-07-19 11:47 Bernard Cafarelli
2023-07-19 11:47 Bernard Cafarelli
2023-06-19 20:32 Bernard Cafarelli
2023-06-19 20:32 Bernard Cafarelli
2023-06-19 20:32 Bernard Cafarelli
2023-04-21  7:54 Sam James
2023-04-21  7:53 Sam James
2023-04-20  5:01 Sam James
2022-12-19 16:27 Bernard Cafarelli
2022-10-17 15:18 Bernard Cafarelli
2022-07-09 15:43 Bernard Cafarelli
2022-05-20 18:42 Jakov Smolić
2022-05-20 18:42 Jakov Smolić
2022-05-20 12:09 Bernard Cafarelli
2022-05-20 12:09 Bernard Cafarelli
2022-01-28 22:42 Bernard Cafarelli
2022-01-28 22:42 Bernard Cafarelli
2021-06-01  6:59 Agostino Sarubbo
2021-06-01  6:32 Agostino Sarubbo
2020-12-04  9:17 Bernard Cafarelli
2020-07-09 16:40 Bernard Cafarelli
2020-03-06 13:01 Bernard Cafarelli
2020-03-06 12:32 Agostino Sarubbo
2020-03-06 11:35 Agostino Sarubbo
2020-02-23 23:58 Bernard Cafarelli
2020-02-23 23:58 Bernard Cafarelli
2020-02-16 20:24 David Seifert
2018-04-20 19:43 David Seifert
2018-03-10 12:23 Pacho Ramos
2017-08-31 12:16 Tim Harder
2016-06-15  2:47 Ryan Hill
2016-02-18  3:44 Ryan Hill

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1657381254.16e61335682f168c215504e4fe4e7090397fc4f1.voyageur@gentoo \
    --to=voyageur@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox