From 0c6bd2311d971d9581d5d57d084581857023b565 Mon Sep 17 00:00:00 2001 From: Laszlo Valko Date: Wed, 9 Aug 2023 23:38:06 +0200 Subject: [PATCH] Added old package app-text/xchm-1.33. --- app-text/xchm/Manifest | 5 ++++ app-text/xchm/files/xchm.desktop | 11 ++++++++ app-text/xchm/files/xchm.xml | 7 +++++ app-text/xchm/metadata.xml | 11 ++++++++ app-text/xchm/xchm-1.33.ebuild | 48 ++++++++++++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 app-text/xchm/Manifest create mode 100644 app-text/xchm/files/xchm.desktop create mode 100644 app-text/xchm/files/xchm.xml create mode 100644 app-text/xchm/metadata.xml create mode 100644 app-text/xchm/xchm-1.33.ebuild diff --git a/app-text/xchm/Manifest b/app-text/xchm/Manifest new file mode 100644 index 0000000..716a7d1 --- /dev/null +++ b/app-text/xchm/Manifest @@ -0,0 +1,5 @@ +AUX xchm.desktop 251 BLAKE2B 69b8a13fbf6129aedb89f558541728bdce055a585387d1cec49c08f86b6a5d972287b63fe2ba719b83bcab9270e07c1c0d50ccaeff36bc8cd291fa7602a67863 SHA512 c17e6e3957d4c0720e43dd64b169daf221e26652fd6487d2838a4c4aa86cd9640e651d55e6bc28dd4c4cc7b37624baf83df55061583f65eeecc592bd2c9a5e54 +AUX xchm.xml 257 BLAKE2B 0b32e654afe5af057c219830f61989e2266d55c726b90cc73795ab260034e162d16af2ecce463d74feb136b5b7bfd6e8544a56d883c349bf3158f750aba05212 SHA512 c2dc02da01dce9be31c92d95c28d8ada8c9532499d4f5d8875b41a42bd1f070f6f938e7f4cafdb8d42b13298d81eb03c3347e19c70b395f872888fac5a658533 +DIST xchm-1.33.tar.gz 886169 BLAKE2B 26b6c664307de3ef1bef21d3fd240b5636f5abc8196c5aa1b7cd6b91f12addbbd5a8c54d133de2fd8ce9132ea2677f79f0ef722b1da6c87429cd3df54d208585 SHA512 06f5c191ef9f2c608259261839d6641f202a21150a6622b8162e06e3cc857802390f551dcef47f25d048b3d407511c5a8cc6aabd3003942006847366ebb08989 +EBUILD xchm-1.33.ebuild 970 BLAKE2B 0fa84e34510016d5639c076a214c235c888d46254822fdafdafe707b2325b10f5ae6f50af2767b9ae591e60ff374bd2d72e4c4b192689a4a6f71173b5465c6d1 SHA512 0d66aef4ee322afc1eae8d49c9b35261cb0d98b0fa462a6ce897cdc0cfc7522fe5f743411fdd2823160262da1429a92908ff6704c79bb6fc564fc70d6087cb6e +MISC metadata.xml 322 BLAKE2B 66ab995c1a7252d656f8f7b74dd6ae09fd6d83912b16bdff6300ac24eb0271d2d74964147b9c72c7fdc03df42d17d2341b694e07b64cfe793b760a9b8e2cef99 SHA512 1ecb1f165786fcc62a09f792b5316b9434059a0741bd9066493a7875f800ac0402c3b3e835a46491f614fea25806d6220940b38009cc937bef90abbcd46134f9 diff --git a/app-text/xchm/files/xchm.desktop b/app-text/xchm/files/xchm.desktop new file mode 100644 index 0000000..a884213 --- /dev/null +++ b/app-text/xchm/files/xchm.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Type=Application +Version=1.0 +Name=xCHM +Comment=Compiled HTML Help (CHM) file viewer +Comment[fr]=Visionneuse de fichiers Compiled HTML Help (CHM) +Icon=xchm +TryExec=xchm +Exec=xchm %f +MimeType=application/x-chm; +Categories=Office;Viewer; diff --git a/app-text/xchm/files/xchm.xml b/app-text/xchm/files/xchm.xml new file mode 100644 index 0000000..08cb9ca --- /dev/null +++ b/app-text/xchm/files/xchm.xml @@ -0,0 +1,7 @@ + + + + Compiled HTML Help Format + + + diff --git a/app-text/xchm/metadata.xml b/app-text/xchm/metadata.xml new file mode 100644 index 0000000..40a9feb --- /dev/null +++ b/app-text/xchm/metadata.xml @@ -0,0 +1,11 @@ + + + + + marecki@gentoo.org + Marek Szuba + + + rzvncj/xCHM + + diff --git a/app-text/xchm/xchm-1.33.ebuild b/app-text/xchm/xchm-1.33.ebuild new file mode 100644 index 0000000..bf62411 --- /dev/null +++ b/app-text/xchm/xchm-1.33.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +WX_GTK_VER="3.0-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 +}