1 |
commit: e3ca3828762e5812dbe68bcb36cb66b3894b6bcb |
2 |
Author: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Feb 23 23:36:43 2020 +0000 |
4 |
Commit: Bernard Cafarelli <voyageur <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Feb 23 23:58:04 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3ca3828 |
7 |
|
8 |
media-gfx/mcomix: add live ebuild of python3 fork |
9 |
|
10 |
Also add myself to maintainers |
11 |
|
12 |
Package-Manager: Portage-2.3.89, Repoman-2.3.20 |
13 |
Signed-off-by: Bernard Cafarelli <voyageur <AT> gentoo.org> |
14 |
|
15 |
media-gfx/mcomix/mcomix-9999.ebuild | 74 +++++++++++++++++++++++++++++++++++++ |
16 |
media-gfx/mcomix/metadata.xml | 5 +++ |
17 |
2 files changed, 79 insertions(+) |
18 |
|
19 |
diff --git a/media-gfx/mcomix/mcomix-9999.ebuild b/media-gfx/mcomix/mcomix-9999.ebuild |
20 |
new file mode 100644 |
21 |
index 00000000000..6dd55b82b07 |
22 |
--- /dev/null |
23 |
+++ b/media-gfx/mcomix/mcomix-9999.ebuild |
24 |
@@ -0,0 +1,74 @@ |
25 |
+# Copyright 1999-2020 Gentoo Authors |
26 |
+# Distributed under the terms of the GNU General Public License v2 |
27 |
+ |
28 |
+EAPI=7 |
29 |
+ |
30 |
+PYTHON_COMPAT=( python3_{5,6,7,8} ) |
31 |
+inherit desktop git-r3 python-r1 xdg |
32 |
+ |
33 |
+DESCRIPTION="GTK image viewer for comic book archives" |
34 |
+HOMEPAGE="https://github.com/multiSnow/mcomix3" |
35 |
+EGIT_REPO_URI="https://github.com/multiSnow/mcomix3" |
36 |
+ |
37 |
+LICENSE="GPL-2" |
38 |
+SLOT="0" |
39 |
+KEYWORDS="" |
40 |
+IUSE="" |
41 |
+ |
42 |
+DEPEND="${PYTHON_DEPS}" |
43 |
+RDEPEND="${DEPEND} |
44 |
+ virtual/jpeg |
45 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
46 |
+ dev-python/pygobject[${PYTHON_USEDEP}] |
47 |
+ !media-gfx/comix |
48 |
+ !media-gfx/mcomix" |
49 |
+BDEPEND="sys-devel/gettext" |
50 |
+ |
51 |
+REQUIRED_USE=${PYTHON_REQUIRED_USE} |
52 |
+ |
53 |
+src_prepare() { |
54 |
+ default |
55 |
+ |
56 |
+ for file in mcomix/mcomix/messages/*/LC_MESSAGES/*po |
57 |
+ do |
58 |
+ msgfmt ${file} -o ${file/po/mo} || die |
59 |
+ rm ${file} || die |
60 |
+ done |
61 |
+} |
62 |
+ |
63 |
+src_install() { |
64 |
+ python_foreach_impl python_domodule mcomix/mcomix |
65 |
+ python_foreach_impl python_newscript mcomix/mcomixstarter.py mcomix |
66 |
+ |
67 |
+ for size in 16 22 24 32 48 |
68 |
+ do |
69 |
+ doicon -s ${size} \ |
70 |
+ mime/icons/${size}x${size}/*png \ |
71 |
+ mcomix/mcomix/images/${size}x${size}/mcomix.png |
72 |
+ done |
73 |
+ doicon mcomix/mcomix/images/mcomix.png |
74 |
+ domenu mime/mcomix.desktop |
75 |
+ doman man/mcomix.1 |
76 |
+ |
77 |
+ insinto /usr/share/metainfo |
78 |
+ doins mime/mcomix.appdata.xml |
79 |
+ |
80 |
+ insinto /usr/share/mime/packages |
81 |
+ doins mime/mcomix.xml |
82 |
+ |
83 |
+ dodoc README.rst TODO |
84 |
+} |
85 |
+ |
86 |
+pkg_postinst() { |
87 |
+ xdg_pkg_postinst |
88 |
+ echo |
89 |
+ elog "Additional packages are required to open the most common comic archives:" |
90 |
+ elog |
91 |
+ elog " cbr: app-arch/unrar" |
92 |
+ elog " cbz: app-arch/unzip" |
93 |
+ elog |
94 |
+ elog "You can also add support for 7z or LHA archives by installing" |
95 |
+ elog "app-arch/p7zip or app-arch/lha. Install app-text/mupdf for" |
96 |
+ elog "pdf support." |
97 |
+ echo |
98 |
+} |
99 |
|
100 |
diff --git a/media-gfx/mcomix/metadata.xml b/media-gfx/mcomix/metadata.xml |
101 |
index 266193ff5e3..dc6d17f3b83 100644 |
102 |
--- a/media-gfx/mcomix/metadata.xml |
103 |
+++ b/media-gfx/mcomix/metadata.xml |
104 |
@@ -1,11 +1,16 @@ |
105 |
<?xml version="1.0" encoding="UTF-8"?> |
106 |
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
107 |
<pkgmetadata> |
108 |
+ <maintainer type="person"> |
109 |
+ <email>voyageur@g.o</email> |
110 |
+ <name>Bernard Cafarelli</name> |
111 |
+ </maintainer> |
112 |
<maintainer type="project"> |
113 |
<email>graphics@g.o</email> |
114 |
<name>Gentoo Graphics Project</name> |
115 |
</maintainer> |
116 |
<upstream> |
117 |
<remote-id type="sourceforge">mcomix</remote-id> |
118 |
+ <remote-id type="github">multiSnow/mcomix3</remote-id> |
119 |
</upstream> |
120 |
</pkgmetadata> |