summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeroen Roovers <jer@gentoo.org>2019-03-13 10:31:34 +0100
committerJeroen Roovers <jer@gentoo.org>2019-03-13 10:31:46 +0100
commit6a9757f443e923dad8fcfcb0576f27579c22e554 (patch)
tree5cef98804d326fa5dce6a7b87c81e527404ec40d /app-text/xchm
parentnet-fs/mc: Version bump (diff)
downloadgentoo-6a9757f443e923dad8fcfcb0576f27579c22e554.tar.gz
gentoo-6a9757f443e923dad8fcfcb0576f27579c22e554.tar.bz2
gentoo-6a9757f443e923dad8fcfcb0576f27579c22e554.zip
app-text/xchm: Version 1.26
Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Jeroen Roovers <jer@gentoo.org>
Diffstat (limited to 'app-text/xchm')
-rw-r--r--app-text/xchm/Manifest1
-rw-r--r--app-text/xchm/xchm-1.26.ebuild52
2 files changed, 53 insertions, 0 deletions
diff --git a/app-text/xchm/Manifest b/app-text/xchm/Manifest
index d6f9065ab755..2ab69245d75a 100644
--- a/app-text/xchm/Manifest
+++ b/app-text/xchm/Manifest
@@ -1 +1,2 @@
DIST xchm-1.23.tar.gz 474274 BLAKE2B de73c04e68b876edefb1d45d9e982bcce6fd3afa06f8704d05fa5cae710d9724ed20ca50be9022570832da9954ba2af141a66e5b3ab02554441c84bac1d6ffed SHA512 c0df4362ff6db8136b20f62a76e7e93185375f6ef9eeeb1001e27ead9806d486332573ba8c3ca1863a70ce6b1d3bcc6d3af48d42add719312774dccfd7d18c90
+DIST xchm-1.26.tar.gz 785338 BLAKE2B b5aedff3de1a3c79205f27b833e339fa24ac08710ab2c97199fdd10f5674ee7d4a4689e275d9f6df4b6eb34c60cf2d36c5938924c4c0d73e37c2a464a1c63695 SHA512 8ed0281a2b2969f83d474b89e828545096b4ad9ece451cff2bdb602079751f6f6ca2c8f3c8cd79740ab0b4e5b2c3a3f8ce4e6f4985dc158b5d76007b7bc549a3
diff --git a/app-text/xchm/xchm-1.26.ebuild b/app-text/xchm/xchm-1.26.ebuild
new file mode 100644
index 000000000000..a2c546cdaf3c
--- /dev/null
+++ b/app-text/xchm/xchm-1.26.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+WX_GTK_VER="3.0-gtk3"
+
+inherit wxwidgets xdg-utils
+
+DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
+HOMEPAGE="https://github.com/rzvncj/xCHM/"
+SRC_URI="${HOMEPAGE}releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+DEPEND="
+ >=dev-libs/chmlib-0.36
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+"
+RDEPEND="
+ ${DEPEND}
+"
+
+src_prepare() {
+ setup-wxwidgets
+ default
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ dodoc AUTHORS README ChangeLog
+
+ cp "${D}"/usr/share/pixmaps/xchm-32.xpm "${D}"/usr/share/pixmaps/xchm.xpm
+ rm -f "${D}"/usr/share/pixmaps/xchm-*.xpm
+ rm -f "${D}"/usr/share/pixmaps/xchmdoc*.xpm
+
+ domenu "${FILESDIR}"/xchm.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/xchm.xml
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_mimeinfo_database_update
+}