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.
gentoo-overlay/app-doc/zeal/zeal-0.6.1.ebuild

56 lines
1.1 KiB

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit cmake xdg-utils
DESCRIPTION="Offline documentation browser inspired by Dash"
HOMEPAGE="https://zealdocs.org/"
SRC_URI="https://github.com/zealdocs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="vanilla"
DEPEND="
app-arch/libarchive
dev-qt/qtconcurrent:5
dev-qt/qtgui:5
dev-qt/qtnetwork:5
dev-qt/qtsql:5[sqlite]
dev-qt/qtwebkit:5
dev-qt/qtwidgets:5
dev-qt/qtx11extras:5
kde-frameworks/extra-cmake-modules:5
>=x11-libs/xcb-util-keysyms-0.3.9
"
RDEPEND="
${DEPEND}
x11-themes/hicolor-icon-theme
"
PATCHES=(
"${FILESDIR}/0001-libs-enforce-static-linking-of-internal-libs.patch"
"${FILESDIR}/${P}-qt-5.15.patch"
)
src_prepare() {
if ! use vanilla; then
PATCHES+=( "${FILESDIR}/0002-settings-disable-checking-for-updates-by-default.patch" )
fi
cmake_src_prepare
}
pkg_postinst() {
xdg_icon_cache_update
xdg_desktop_database_update
}
pkg_postrm() {
xdg_icon_cache_update
xdg_desktop_database_update
}