2019-01-01 09:50:52 +01:00
|
|
|
# Copyright 1999-2019 Gentoo Authors
|
2018-10-14 01:29:39 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
|
|
|
EAPI=6
|
2019-01-12 22:56:55 +01:00
|
|
|
|
2018-10-22 08:33:37 +02:00
|
|
|
inherit cmake-utils gnome2-utils
|
2018-10-14 01:29:39 +02:00
|
|
|
|
2019-01-12 22:56:55 +01:00
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
fi
|
|
|
|
|
2019-01-01 09:50:52 +01:00
|
|
|
XDGCFG_PV="0.2.3"
|
2018-10-14 01:29:39 +02:00
|
|
|
DESCRIPTION="whyblocked reminds you why you blocked someone."
|
|
|
|
HOMEPAGE="https://schlomp.space/tastytea/whyblocked"
|
2019-01-12 22:56:55 +01:00
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
EGIT_REPO_URI="https://schlomp.space/tastytea/whyblocked.git"
|
|
|
|
else
|
|
|
|
SRC_URI="
|
|
|
|
https://schlomp.space/tastytea/whyblocked/archive/${PV}.tar.gz -> ${P}.tar.gz
|
2019-01-21 00:37:30 +01:00
|
|
|
https://schlomp.space/tastytea/xdgcfg/archive/${XDGCFG_PV}.tar.gz -> xdgcfg-${XDGCFG_PV}.tar.gz
|
|
|
|
"
|
2019-01-12 22:56:55 +01:00
|
|
|
fi
|
|
|
|
|
2018-10-14 01:29:39 +02:00
|
|
|
LICENSE="GPL-3"
|
|
|
|
SLOT="0"
|
2019-01-12 22:56:55 +01:00
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
KEYWORDS=""
|
|
|
|
else
|
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
IUSE="nls"
|
|
|
|
|
2019-01-21 00:37:30 +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
|
2019-01-12 22:56:55 +01:00
|
|
|
>=dev-qt/qtwidgets-5.9.6-r1
|
2018-11-03 22:47:36 +01:00
|
|
|
"
|
2019-01-21 00:37:30 +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 )
|
2019-01-21 00:37:30 +01:00
|
|
|
app-text/asciidoc
|
2018-11-03 22:47:36 +01:00
|
|
|
${RDEPEND}
|
|
|
|
"
|
2018-10-14 01:29:39 +02:00
|
|
|
|
2019-01-12 22:56:55 +01:00
|
|
|
if [[ "${PV}" != "9999" ]]; then
|
|
|
|
S="${WORKDIR}/${PN}"
|
|
|
|
fi
|
|
|
|
|
2018-10-14 01:29:39 +02:00
|
|
|
src_unpack() {
|
2019-01-12 22:56:55 +01:00
|
|
|
if [[ "${PV}" == "9999" ]]; then
|
|
|
|
git-r3_src_unpack
|
|
|
|
else
|
|
|
|
default_src_unpack
|
|
|
|
mv xdgcfg ${PN}
|
|
|
|
fi
|
2018-10-14 01:29:39 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
src_configure() {
|
|
|
|
local mycmakeargs=()
|
2018-10-23 08:17:16 +02:00
|
|
|
if ! use nls; then
|
2019-01-21 00:37:30 +01:00
|
|
|
mycmakeargs+=(-DWITH_TRANSLATIONS=NO)
|
2018-10-23 08:17:16 +02:00
|
|
|
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
|
|
|
|
}
|