Mercurial > hg > portage
diff net-im/skype/skype-4.1.0.20.ebuild @ 340:9c4b58c14668
ebuild for Skype 4.1.0.20
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 20 Nov 2012 08:44:20 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/net-im/skype/skype-4.1.0.20.ebuild Tue Nov 20 08:44:20 2012 +0100 @@ -0,0 +1,101 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header $ + +EAPI=4 +inherit eutils gnome2-utils pax-utils + +DESCRIPTION="An P2P Internet Telephony (VoiceIP) client" +HOMEPAGE="http://www.skype.com/" +SKYPE_URI="http://download.${PN}.com/linux" +SRC_URI="${SKYPE_URI}/${P}.tar.bz2" + +LICENSE="${P}-copyright ${P}-third-party_attributions.txt" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="pax_kernel" + +QA_PREBUILT=opt/bin/${PN} +RESTRICT="mirror strip" #299368 + +EMUL_X86_VER=20120520 + +RDEPEND="virtual/ttf-fonts + amd64? ( + >=app-emulation/emul-linux-x86-baselibs-${EMUL_X86_VER} + >=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER} + >=app-emulation/emul-linux-x86-xlibs-${EMUL_X86_VER} + >=app-emulation/emul-linux-x86-qtlibs-${EMUL_X86_VER} + ) + x86? ( + media-libs/alsa-lib + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXScrnSaver + x11-libs/libXv + x11-libs/qt-core:4 + x11-libs/qt-dbus:4 + x11-libs/qt-gui:4[accessibility,dbus] + )" + +src_unpack() { + unpack ${A} + [[ -d ${S} ]] || { mv skype* "${S}" || die; } +} + +src_compile() { + type -P lrelease >/dev/null && lrelease lang/*.ts + rm -f lang/*.ts +} + +src_install() { + into /opt + dobin ${PN} + fowners root:audio /opt/bin/${PN} + + insinto /etc/dbus-1/system.d + doins ${PN}.conf + + insinto /usr/share/skype + doins -r avatars lang sounds + + dodoc README + + local res + for res in 16 32 48; do + newicon -s ${res} icons/SkypeBlue_${res}x${res}.png ${PN}.png + done + + make_desktop_entry ${PN} 'Skype VoIP' ${PN} 'Network;InstantMessaging;Telephony' + + if use pax_kernel; then + pax-mark Cm "${ED}"/opt/bin/${PN} || die + eqawarn "You have set USE=pax_kernel meaning that you intend to run" + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify" + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If" + eqawarn "you suspect that ${PN} is being broken by this modification," + eqawarn "please open a bug." + fi +} + +pkg_preinst() { + gnome2_icon_savelist + + rm -rf "${EROOT}"/usr/share/${PN} #421165 +} + +pkg_postinst() { + gnome2_icon_cache_update + + # http://bugs.gentoo.org/360815 + elog "For webcam support, see \"LD_PRELOAD\" section of \"README.lib\" document provided by" + elog "media-libs/libv4l package and \"README\" document of this package." + if use amd64; then + elog "You can install app-emulation/emul-linux-x86-medialibs package for the 32bit" + elog "libraries from the media-libs/libv4l package." + fi +} + +pkg_postrm() { + gnome2_icon_cache_update +}