From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 0A731138334 for ; Sat, 6 Apr 2019 08:49:50 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 152A6E08FE; Sat, 6 Apr 2019 08:49:49 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id E05D0E08FE for ; Sat, 6 Apr 2019 08:49:48 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1AADE335C8C for ; Sat, 6 Apr 2019 08:49:47 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6F1BD584 for ; Sat, 6 Apr 2019 08:49:45 +0000 (UTC) From: "Jeroen Roovers" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jeroen Roovers" Message-ID: <1554540583.8ba3f9b925a7f38e9aefcb22833c7a68a26261f6.jer@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/xchm/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/xchm/xchm-9999.ebuild X-VCS-Directories: app-text/xchm/ X-VCS-Committer: jer X-VCS-Committer-Name: Jeroen Roovers X-VCS-Revision: 8ba3f9b925a7f38e9aefcb22833c7a68a26261f6 X-VCS-Branch: master Date: Sat, 6 Apr 2019 08:49:45 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 2a5c6f41-dcbc-4245-8979-224ac7add7b9 X-Archives-Hash: 132ad4e962816ed13efdb905d9464b74 commit: 8ba3f9b925a7f38e9aefcb22833c7a68a26261f6 Author: Jeroen Roovers gentoo org> AuthorDate: Sat Apr 6 08:49:01 2019 +0000 Commit: Jeroen Roovers gentoo org> CommitDate: Sat Apr 6 08:49:43 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8ba3f9b9 app-text/xchm: Add live ebuild Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Jeroen Roovers gentoo.org> app-text/xchm/xchm-9999.ebuild | 58 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+) diff --git a/app-text/xchm/xchm-9999.ebuild b/app-text/xchm/xchm-9999.ebuild new file mode 100644 index 00000000000..ff28fc53413 --- /dev/null +++ b/app-text/xchm/xchm-9999.ebuild @@ -0,0 +1,58 @@ +# 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 autotools git-r3 wxwidgets xdg-utils + +DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files" +HOMEPAGE="https://github.com/rzvncj/xCHM/" +EGIT_REPO_URI="${HOMEPAGE}" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="" +IUSE="nls" + +DEPEND=" + >=dev-libs/chmlib-0.36 + x11-libs/wxGTK:${WX_GTK_VER}[X] +" +RDEPEND=" + ${DEPEND} +" + +src_prepare() { + setup-wxwidgets + default + eautoreconf +} + +src_configure() { + econf $(use_enable nls) +} + +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 +}