# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-im/skype/skype-0.91.0.121212121212121212121212.ebuild,v 1.4 2004/09/05 23:00:16 mr_bones_ Exp $ inherit eutils AVATARV="1.0" RESTRICT="nomirror" DESCRIPTION="${PN} is a P2P-VoiceIP client." HOMEPAGE="http://www.${PN}.com/" SRC_URI=" http://homepages.internet.lu/brunop/skype-avatars-${AVATARV}.tgz qt? ( http://download.skype.com/linux/${PN}-${PV}.tar.bz2 )" !qt? ( http://download.skype.com/linux/${PN}_staticQT-${PV}.tar.bz2 )" LICENSE="skype-eula" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="qt arts esd" DEPEND="amd64? ( app-emulation/emul-linux-x86-glibc app-emulation/emul-linux-x86-xlibs app-emulation/emul-linux-x86-compat app-emulation/emul-linux-x86-baselibs qt? ( app-emulation/emul-linux-x86-qtlibs ) ) x86? ( qt? ( >=x11-libs/qt-3.2 ) >=sys-libs/glibc-2.2.5 )" S="${WORKDIR}/${PN}-${PV}" src_unpack() { if use !qt; then unpack ${PN}_staticQT-${PV}.tar.bz2 cd ${WORKDIR} mv ${PN}_staticQT-${PV} ${PN}-${SVER} cd ${S} else unpack ${PN}-${PV}.tar.bz2 cd ${WORKDIR} cd ${S} fi } src_install() { ## Install the wrapper script if ( use arts || use esd ); then mv skype skype.bin cp ${FILESDIR}/sDaemonWrapper skype fi dodir /opt/skype exeopts -m0755 exeinto /opt/skype doexe skype ( use arts || use esd ) && doexe skype.bin #Skype wants the waves in /usr/share/skype/sound # See: http://forum.skype.com/bb/viewtopic.php?p=52755#52755 insinto /usr/share/skype/sound doins sound/*.wav insinto /usr/share/skype/lang doins lang/*.qm insinto /opt/skype make_desktop_entry skype "Skype VoIP" ../icons/hicolor/48x48/apps/skype.png for SIZE in 16 32 48 do mkdir ${S}/icons/${SIZE} cp ${S}/icons/${PN}_${SIZE}_32.png ${S}/icons/${SIZE}/${PN}.png dodir /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps insinto /usr/share/icons/hicolor/${SIZE}x${SIZE}/apps doins ${S}/icons/${SIZE}/${PN}.png done ( use arts || use esd ) && fowners root:audio /opt/skype/skype.bin fowners root:audio /opt/skype/skype dodir /usr/bin/ dosym /opt/skype/skype /usr/bin/skype # Install the Documentation dodoc README LICENSE } pkg_postinst() { einfo "Have a look at ${PORTDIR}/licenses/${LICENSE} before running this software" einfo "If you have sound problems please visit: " einfo "http://forum.skype.com/bb/viewtopic.php?t=4489" if ( use arts ); then ewarn "Dont forget to configure your arts to work in Full-Duplex mode" ewarn "Open controlcenter, go to \"Sound & Multimedia\"->\"Sound System\"" ewarn "On the \"Hardware\" tab, check the box next to \"Full duplex\"." fi }