2018-10-14 01:29:39 +02:00
|
|
|
# Copyright 1999-2018 Gentoo Authors
|
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
2018-10-22 08:33:37 +02:00
|
|
|
inherit cmake-utils gnome2-utils
|
2018-10-14 01:29:39 +02:00
|
|
|
|
|
|
|
DESCRIPTION="whyblocked reminds you why you blocked someone."
|
|
|
|
HOMEPAGE="https://schlomp.space/tastytea/whyblocked"
|
2018-11-03 22:47:36 +01:00
|
|
|
SRC_URI="
|
|
|
|
https://schlomp.space/tastytea/whyblocked/archive/${PV}.tar.gz -> ${P}.tar.gz
|
|
|
|
https://schlomp.space/tastytea/xdgcfg/archive/0.2.2.tar.gz
|
|
|
|
"
|
2018-10-14 01:29:39 +02:00
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="~amd64"
|
2018-10-18 00:55:46 +02:00
|
|
|
IUSE="qt5 nls"
|
2018-11-03 22:47:36 +01:00
|
|
|
RDEPEND="
|
|
|
|
>=dev-db/vsqlite++-0.3.13-r1
|
2018-10-14 01:29:39 +02:00
|
|
|
>=dev-libs/libxdg-basedir-1.2.0-r1
|
2018-10-18 21:50:41 +02:00
|
|
|
>=dev-qt/qtcore-5.9.6
|
2018-10-18 00:55:46 +02:00
|
|
|
qt5? ( >=dev-qt/qtwidgets-5.9.6-r1 )
|
2018-11-03 22:47:36 +01:00
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
>=dev-util/cmake-3.9.6
|
2018-11-17 22:04:07 +01:00
|
|
|
nls? ( >=dev-qt/linguist-tools-5.9.6 )
|
2018-11-03 22:47:36 +01:00
|
|
|
${RDEPEND}
|
|
|
|
"
|
2018-10-14 01:29:39 +02:00
|
|
|
|
|
|
|
src_unpack() {
|
|
|
|
default_src_unpack
|
|
|
|
mv ${PN} ${P}
|
2018-11-03 22:47:36 +01:00
|
|
|
mv xdgcfg ${P}
|
2018-10-14 01:29:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=()
|
|
|
|
if ! use qt5; then
|
2018-10-18 00:55:46 +02:00
|
|
|
mycmakeargs+=(-DWITHOUT_GUI=YES)
|
2018-10-14 01:29:39 +02:00
|
|
|
fi
|
2018-10-23 08:17:16 +02:00
|
|
|
if ! use nls; then
|
|
|
|
mycmakeargs+=(-DWITHOUT_TRANSLATIONS=YES)
|
|
|
|
fi
|
2018-10-14 01:29:39 +02:00
|
|
|
cmake-utils_src_configure
|
|
|
|
}
|
2018-10-22 08:33:37 +02:00
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postrm() {
|
|
|
|
gnome2_icon_cache_update
|
|
|
|
}
|