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.
tde-packaging-gentoo/trinity-base/kontact/kontact-14.1.1.ebuild

42 lines
1.1 KiB

# Copyright 1999-2023 Gentoo Authors
# Copyright 2020-2023 The Trinity Desktop Project
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
TRINITY_MODULE_NAME="tdepim"
TRINITY_MODULE_TYPE="core"
TSM_EXTRACT_ALSO="libtdepim/ libtdenetwork/ plugins/ korganizer/ kaddressbook/
kmail/ knotes/ knode/ akregator/ karm/ libemailfunctions/ libkpimidentities/
libkholidays/"
inherit trinity-meta-2
DESCRIPTION="Trinity personal information manager"
if [[ ${PV} != *9999* ]] ; then
KEYWORDS="~amd64 ~arm64 ~x86"
fi
IUSE="kmail"
DEPEND="
~trinity-base/libtdepim-${PV}
~trinity-base/libkpimidentities-${PV}
~trinity-base/libkholidays-${PV}
~trinity-base/knotes-${PV}
~trinity-base/korganizer-${PV}
kmail? ( ~trinity-base/kmail-${PV} )
"
RDEPEND="${DEPEND}"
src_prepare() {
if use kmail ; then
cp "${TDEDIR}/include/kmail"/*.h "${S}/kmail" || die
else
sed -i '/kmail/d' kontact/plugins/CMakeLists.txt || die
sed -i '/specialdates/d' kontact/plugins/CMakeLists.txt || die
fi
# Removing an unnecessary dependency
sed -i '/DEPENDENCIES kmail_settings_base/d' "${S}/${PN}/plugins/kmail/CMakeLists.txt" || die
trinity-meta-2_src_prepare
}