summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarek Szuba <marecki@gentoo.org>2023-02-05 23:57:34 +0100
committerMarek Szuba <marecki@gentoo.org>2023-02-05 23:03:43 +0000
commitcbf9e4e33028c4974ba48ea246c691e5668d7cb2 (patch)
tree742c06defefbba921d1e915c718f823f206b4d66 /app-text
parentapp-admin/ansible-lint: add 6.12.1, drop 6.12.0 (diff)
downloadgentoo-cbf9e4e33028c4974ba48ea246c691e5668d7cb2.tar.gz
gentoo-cbf9e4e33028c4974ba48ea246c691e5668d7cb2.tar.bz2
gentoo-cbf9e4e33028c4974ba48ea246c691e5668d7cb2.zip
app-text/xchm: add 1.35
Signed-off-by: Marek Szuba <marecki@gentoo.org>
Diffstat (limited to 'app-text')
-rw-r--r--app-text/xchm/Manifest1
-rw-r--r--app-text/xchm/xchm-1.35.ebuild48
2 files changed, 49 insertions, 0 deletions
diff --git a/app-text/xchm/Manifest b/app-text/xchm/Manifest
index 6945b692ab3f..7154de8a2910 100644
--- a/app-text/xchm/Manifest
+++ b/app-text/xchm/Manifest
@@ -1 +1,2 @@
DIST xchm-1.33.tar.gz 886169 BLAKE2B 26b6c664307de3ef1bef21d3fd240b5636f5abc8196c5aa1b7cd6b91f12addbbd5a8c54d133de2fd8ce9132ea2677f79f0ef722b1da6c87429cd3df54d208585 SHA512 06f5c191ef9f2c608259261839d6641f202a21150a6622b8162e06e3cc857802390f551dcef47f25d048b3d407511c5a8cc6aabd3003942006847366ebb08989
+DIST xchm-1.35.tar.gz 884353 BLAKE2B ce77f43e462e803e6ceed1cd91e56650cc054245daa5bb18c215eb649cb8ba6a39591265d6c753670a852ff7ac2fe84aa0b7c915b9ade8631de686884d808f1c SHA512 53a334b460c2de51b1f5a6afbca888e376430ab2fb48f2d60c71d34886b19ca5982cf3a4f23c3cb7456781c3b658affa5a64da3ade961accf258096b5fa6df3d
diff --git a/app-text/xchm/xchm-1.35.ebuild b/app-text/xchm/xchm-1.35.ebuild
new file mode 100644
index 000000000000..ed93e6bfae5e
--- /dev/null
+++ b/app-text/xchm/xchm-1.35.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+WX_GTK_VER="3.2-gtk3"
+
+inherit desktop wxwidgets xdg-utils
+
+DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
+HOMEPAGE="https://github.com/rzvncj/xCHM/"
+SRC_URI="https://github.com/rzvncj/xCHM/releases/download/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~riscv ~x86"
+IUSE="nls"
+
+RDEPEND=">=dev-libs/chmlib-0.36
+ x11-libs/wxGTK:${WX_GTK_VER}[X]
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}"
+BDEPEND="nls? ( sys-devel/gettext )"
+
+src_configure() {
+ setup-wxwidgets
+ econf $(use_enable nls)
+}
+
+src_install() {
+ default
+
+ domenu "${FILESDIR}"/xchm.desktop
+ insinto /usr/share/mime/packages
+ doins "${FILESDIR}"/xchm.xml
+}
+
+pkg_postinst() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+}
+
+pkg_postrm() {
+ xdg_desktop_database_update
+ xdg_icon_cache_update
+ xdg_mimeinfo_database_update
+}