You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.2 KiB
60 lines
1.2 KiB
6 years ago
|
# Copyright 1999-2019 Gentoo Authors
|
||
9 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
6 years ago
|
EAPI=6
|
||
9 years ago
|
WX_GTK_VER="3.0-gtk3"
|
||
6 years ago
|
inherit autotools wxwidgets xdg-utils
|
||
9 years ago
|
|
||
|
DESCRIPTION="Utility for viewing Compiled HTML Help (CHM) files"
|
||
6 years ago
|
HOMEPAGE="https://github.com/rzvncj/xCHM/"
|
||
|
SRC_URI="${HOMEPAGE}releases/download/${PV}/${P}.tar.gz"
|
||
9 years ago
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~ppc ~x86"
|
||
6 years ago
|
IUSE="nls"
|
||
9 years ago
|
|
||
6 years ago
|
RDEPEND="
|
||
6 years ago
|
>=dev-libs/chmlib-0.36
|
||
|
x11-libs/wxGTK:${WX_GTK_VER}[X]
|
||
6 years ago
|
nls? ( virtual/libintl )
|
||
6 years ago
|
"
|
||
6 years ago
|
DEPEND="
|
||
|
${RDEPEND}
|
||
|
nls? ( sys-devel/gettext )
|
||
6 years ago
|
"
|
||
9 years ago
|
|
||
|
src_prepare() {
|
||
|
setup-wxwidgets
|
||
|
default
|
||
6 years ago
|
eautoreconf # Still needed on the next release?
|
||
|
}
|
||
|
|
||
|
src_configure() {
|
||
|
econf $(use_enable nls)
|
||
9 years ago
|
}
|
||
|
|
||
|
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() {
|
||
7 years ago
|
xdg_desktop_database_update
|
||
|
xdg_mimeinfo_database_update
|
||
9 years ago
|
}
|
||
|
|
||
|
pkg_postrm() {
|
||
7 years ago
|
xdg_desktop_database_update
|
||
|
xdg_mimeinfo_database_update
|
||
9 years ago
|
}
|