app-text/xchm: Version 1.26
authorJeroen Roovers <jer@gentoo.org>
Wed, 13 Mar 2019 09:31:34 +0000 (10:31 +0100)
committerJeroen Roovers <jer@gentoo.org>
Wed, 13 Mar 2019 09:31:46 +0000 (10:31 +0100)
Package-Manager: Portage-2.3.62, Repoman-2.3.12
Signed-off-by: Jeroen Roovers <jer@gentoo.org>
app-text/xchm/Manifest
app-text/xchm/xchm-1.26.ebuild [new file with mode: 0644]

index d6f9065ab755a219228a519ffbc388c2041394bb..2ab69245d75a6c57afca31999165d9e523dd0c3a 100644 (file)
@@ -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 (file)
index 0000000..a2c546c
--- /dev/null
@@ -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
+}