diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-02-06 03:18:56 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-02-06 03:18:56 +0000 |
commit | a2f130f3156ea1d203e99a781424790176b9b2b5 (patch) | |
tree | 10fbba06303ed3b478a8a39114e6b6127ef18dbb /app-text/xchm/xchm-1.35.ebuild | |
parent | 519f4aac6d5896fe0204e6429485f95240c7ff58 (diff) |
gentoo auto-resync : 06:02:2023 - 03:18:56
Diffstat (limited to 'app-text/xchm/xchm-1.35.ebuild')
-rw-r--r-- | app-text/xchm/xchm-1.35.ebuild | 48 |
1 files changed, 48 insertions, 0 deletions
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 +} |