Gentoo Archives: gentoo-commits

From: Jeroen Roovers <jer@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xchm/
Date: Wed, 13 Mar 2019 09:31:54
Message-Id: 1552469506.6a9757f443e923dad8fcfcb0576f27579c22e554.jer@gentoo
1 commit: 6a9757f443e923dad8fcfcb0576f27579c22e554
2 Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
3 AuthorDate: Wed Mar 13 09:31:34 2019 +0000
4 Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
5 CommitDate: Wed Mar 13 09:31:46 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6a9757f4
7
8 app-text/xchm: Version 1.26
9
10 Package-Manager: Portage-2.3.62, Repoman-2.3.12
11 Signed-off-by: Jeroen Roovers <jer <AT> gentoo.org>
12
13 app-text/xchm/Manifest | 1 +
14 app-text/xchm/xchm-1.26.ebuild | 52 ++++++++++++++++++++++++++++++++++++++++++
15 2 files changed, 53 insertions(+)
16
17 diff --git a/app-text/xchm/Manifest b/app-text/xchm/Manifest
18 index d6f9065ab75..2ab69245d75 100644
19 --- a/app-text/xchm/Manifest
20 +++ b/app-text/xchm/Manifest
21 @@ -1 +1,2 @@
22 DIST xchm-1.23.tar.gz 474274 BLAKE2B de73c04e68b876edefb1d45d9e982bcce6fd3afa06f8704d05fa5cae710d9724ed20ca50be9022570832da9954ba2af141a66e5b3ab02554441c84bac1d6ffed SHA512 c0df4362ff6db8136b20f62a76e7e93185375f6ef9eeeb1001e27ead9806d486332573ba8c3ca1863a70ce6b1d3bcc6d3af48d42add719312774dccfd7d18c90
23 +DIST xchm-1.26.tar.gz 785338 BLAKE2B b5aedff3de1a3c79205f27b833e339fa24ac08710ab2c97199fdd10f5674ee7d4a4689e275d9f6df4b6eb34c60cf2d36c5938924c4c0d73e37c2a464a1c63695 SHA512 8ed0281a2b2969f83d474b89e828545096b4ad9ece451cff2bdb602079751f6f6ca2c8f3c8cd79740ab0b4e5b2c3a3f8ce4e6f4985dc158b5d76007b7bc549a3
24
25 diff --git a/app-text/xchm/xchm-1.26.ebuild b/app-text/xchm/xchm-1.26.ebuild
26 new file mode 100644
27 index 00000000000..a2c546cdaf3
28 --- /dev/null
29 +++ b/app-text/xchm/xchm-1.26.ebuild
30 @@ -0,0 +1,52 @@
31 +# Copyright 1999-2019 Gentoo Authors
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +WX_GTK_VER="3.0-gtk3"
36 +
37 +inherit wxwidgets xdg-utils
38 +
39 +DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
40 +HOMEPAGE="https://github.com/rzvncj/xCHM/"
41 +SRC_URI="${HOMEPAGE}releases/download/${PV}/${P}.tar.gz"
42 +
43 +LICENSE="GPL-2"
44 +SLOT="0"
45 +KEYWORDS="~amd64 ~ppc ~x86"
46 +
47 +DEPEND="
48 + >=dev-libs/chmlib-0.36
49 + x11-libs/wxGTK:${WX_GTK_VER}[X]
50 +"
51 +RDEPEND="
52 + ${DEPEND}
53 +"
54 +
55 +src_prepare() {
56 + setup-wxwidgets
57 + default
58 +}
59 +
60 +src_install() {
61 + emake DESTDIR="${D}" install
62 +
63 + dodoc AUTHORS README ChangeLog
64 +
65 + cp "${D}"/usr/share/pixmaps/xchm-32.xpm "${D}"/usr/share/pixmaps/xchm.xpm
66 + rm -f "${D}"/usr/share/pixmaps/xchm-*.xpm
67 + rm -f "${D}"/usr/share/pixmaps/xchmdoc*.xpm
68 +
69 + domenu "${FILESDIR}"/xchm.desktop
70 + insinto /usr/share/mime/packages
71 + doins "${FILESDIR}"/xchm.xml
72 +}
73 +
74 +pkg_postinst() {
75 + xdg_desktop_database_update
76 + xdg_mimeinfo_database_update
77 +}
78 +
79 +pkg_postrm() {
80 + xdg_desktop_database_update
81 + xdg_mimeinfo_database_update
82 +}