--- basket-1.0.3.1.ebuild 2008-09-13 +++ basket-1.0.3.1-r1.ebuild 2009-01-20 @@ -18,3 +18,19 @@ RDEPEND="${DEPEND}" need-kde 3.3 + +src_install() { + kde_src_install + + local dir="/usr/share/services/kontact" + + # http://basket.kde.org/news.php#the-2008-02-28 + insinto ${dir} + # 6 and 7 work for up to 3.5.10 + for version in 6 7; do + einfo "Creating additional Kontact plug-in file for version ${version}" + newins kontact_plugin/basket.desktop basket_v${version}.desktop + dosed "s:^X-KDE-KontactPluginVersion=5:X-KDE-KontactPluginVersion=${version}:" \ + "${dir}/basket_v${version}.desktop" + done +}