From 72c02e975820758344adad125f27307084e61baa Mon Sep 17 00:00:00 2001 From: Torsten Kurbad Date: Tue, 13 Nov 2012 16:10:34 +0100 Subject: [PATCH] Try to create a .desktop entry --- .../homer-conferencing-0.24.1.ebuild | 12 +++++++++--- .../homer-conferencing-9999.ebuild | 12 +++++++++--- 2 files changed, 18 insertions(+), 6 deletions(-) diff --git a/net-voip/homer-conferencing/homer-conferencing-0.24.1.ebuild b/net-voip/homer-conferencing/homer-conferencing-0.24.1.ebuild index fcac8a5..ef8e4e4 100644 --- a/net-voip/homer-conferencing/homer-conferencing-0.24.1.ebuild +++ b/net-voip/homer-conferencing/homer-conferencing-0.24.1.ebuild @@ -4,12 +4,13 @@ EAPI=4 -inherit multilib +inherit eutils multilib DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP spftphone with advanced audio and video support." HOMEPAGE="http://www.homer-conferencing.com" MY_PN="Homer-Conferencing" +BINARY="Homer" if [[ ${PV} == *9999* ]]; then inherit git-2 @@ -43,7 +44,7 @@ src_compile() { cd "${S}"/HomerBuild INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ - INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ + INSTALL_DATADIR="${D}"/tmp \ emake all \ || die "make failed" } @@ -52,7 +53,12 @@ src_install() { cd "${S}"/HomerBuild INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ - INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ + INSTALL_DATADIR="${D}"/tmp \ emake install \ || die "emake install failed" + + # Create .desktop entry + newicon "${D}"/tmp/${BINARY}.png ${PN}.png + rm -rf "${D}"/tmp + make_desktop_entry ${BINARY} ${MY_PN} ${PN}.png AudioVideo,Video,Network } diff --git a/net-voip/homer-conferencing/homer-conferencing-9999.ebuild b/net-voip/homer-conferencing/homer-conferencing-9999.ebuild index fcac8a5..ef8e4e4 100644 --- a/net-voip/homer-conferencing/homer-conferencing-9999.ebuild +++ b/net-voip/homer-conferencing/homer-conferencing-9999.ebuild @@ -4,12 +4,13 @@ EAPI=4 -inherit multilib +inherit eutils multilib DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP spftphone with advanced audio and video support." HOMEPAGE="http://www.homer-conferencing.com" MY_PN="Homer-Conferencing" +BINARY="Homer" if [[ ${PV} == *9999* ]]; then inherit git-2 @@ -43,7 +44,7 @@ src_compile() { cd "${S}"/HomerBuild INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ - INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ + INSTALL_DATADIR="${D}"/tmp \ emake all \ || die "make failed" } @@ -52,7 +53,12 @@ src_install() { cd "${S}"/HomerBuild INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ - INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ + INSTALL_DATADIR="${D}"/tmp \ emake install \ || die "emake install failed" + + # Create .desktop entry + newicon "${D}"/tmp/${BINARY}.png ${PN}.png + rm -rf "${D}"/tmp + make_desktop_entry ${BINARY} ${MY_PN} ${PN}.png AudioVideo,Video,Network }