Try to create a .desktop entry

This commit is contained in:
Torsten Kurbad 2012-11-13 16:10:34 +01:00
parent 41b706f589
commit 72c02e9758
2 changed files with 18 additions and 6 deletions

View File

@ -4,12 +4,13 @@
EAPI=4 EAPI=4
inherit multilib inherit eutils multilib
DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP spftphone with advanced audio and video support." DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP spftphone with advanced audio and video support."
HOMEPAGE="http://www.homer-conferencing.com" HOMEPAGE="http://www.homer-conferencing.com"
MY_PN="Homer-Conferencing" MY_PN="Homer-Conferencing"
BINARY="Homer"
if [[ ${PV} == *9999* ]]; then if [[ ${PV} == *9999* ]]; then
inherit git-2 inherit git-2
@ -43,7 +44,7 @@ src_compile() {
cd "${S}"/HomerBuild cd "${S}"/HomerBuild
INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_PREFIX="${D}"/usr/bin \
INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \
INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ INSTALL_DATADIR="${D}"/tmp \
emake all \ emake all \
|| die "make failed" || die "make failed"
} }
@ -52,7 +53,12 @@ src_install() {
cd "${S}"/HomerBuild cd "${S}"/HomerBuild
INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_PREFIX="${D}"/usr/bin \
INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \
INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ INSTALL_DATADIR="${D}"/tmp \
emake install \ emake install \
|| die "emake install failed" || 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
} }

View File

@ -4,12 +4,13 @@
EAPI=4 EAPI=4
inherit multilib inherit eutils multilib
DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP spftphone with advanced audio and video support." DESCRIPTION="Homer Conferencing (short: Homer) is a free SIP spftphone with advanced audio and video support."
HOMEPAGE="http://www.homer-conferencing.com" HOMEPAGE="http://www.homer-conferencing.com"
MY_PN="Homer-Conferencing" MY_PN="Homer-Conferencing"
BINARY="Homer"
if [[ ${PV} == *9999* ]]; then if [[ ${PV} == *9999* ]]; then
inherit git-2 inherit git-2
@ -43,7 +44,7 @@ src_compile() {
cd "${S}"/HomerBuild cd "${S}"/HomerBuild
INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_PREFIX="${D}"/usr/bin \
INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \
INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ INSTALL_DATADIR="${D}"/tmp \
emake all \ emake all \
|| die "make failed" || die "make failed"
} }
@ -52,7 +53,12 @@ src_install() {
cd "${S}"/HomerBuild cd "${S}"/HomerBuild
INSTALL_PREFIX="${D}"/usr/bin \ INSTALL_PREFIX="${D}"/usr/bin \
INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \ INSTALL_LIBDIR="${D}"/usr/$(get_libdir) \
INSTALL_DATADIR="${D}"/usr/share/homer-conferencing \ INSTALL_DATADIR="${D}"/tmp \
emake install \ emake install \
|| die "emake install failed" || 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
} }