diff options
author | 2012-06-14 20:06:41 +0000 | |
---|---|---|
committer | 2012-06-14 20:06:41 +0000 | |
commit | 55bb5c42f7cfb4d2c11933594e35232261e1cfae (patch) | |
tree | 8f59a86a5d49b2bf08e84db8275c460059811871 /net-im/skype | |
parent | app-emulation/spice: Readd gold patch (diff) | |
download | gentoo-2-55bb5c42f7cfb4d2c11933594e35232261e1cfae.tar.gz gentoo-2-55bb5c42f7cfb4d2c11933594e35232261e1cfae.tar.bz2 gentoo-2-55bb5c42f7cfb4d2c11933594e35232261e1cfae.zip |
Fix portage's stupid symlink behavior
(Portage version: 2.2.0_alpha110/cvs/Linux x86_64)
Diffstat (limited to 'net-im/skype')
-rw-r--r-- | net-im/skype/ChangeLog | 8 | ||||
-rw-r--r-- | net-im/skype/skype-4.0.0.7-r1.ebuild | 99 |
2 files changed, 106 insertions, 1 deletions
diff --git a/net-im/skype/ChangeLog b/net-im/skype/ChangeLog index 01f38ce87f1b..433f420092fe 100644 --- a/net-im/skype/ChangeLog +++ b/net-im/skype/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-im/skype # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-im/skype/ChangeLog,v 1.129 2012/06/14 17:35:16 ssuominen Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-im/skype/ChangeLog,v 1.130 2012/06/14 20:06:41 ssuominen Exp $ + +*skype-4.0.0.7-r1 (14 Jun 2012) + + 14 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> +skype-4.0.0.7-r1.ebuild: + Punt /usr/share/skype in pkg_preinst() because Portage is keeping the symlink + to /opt/skype on upgrade from 2.x series. Thanks to "pesa" for noticing. 14 Jun 2012; Samuli Suominen <ssuominen@gentoo.org> skype-4.0.0.7.ebuild: Remove unused inherit qt4-r2. Thanks to "pesa" for noticing. diff --git a/net-im/skype/skype-4.0.0.7-r1.ebuild b/net-im/skype/skype-4.0.0.7-r1.ebuild new file mode 100644 index 000000000000..62469c9537b0 --- /dev/null +++ b/net-im/skype/skype-4.0.0.7-r1.ebuild @@ -0,0 +1,99 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-im/skype/skype-4.0.0.7-r1.ebuild,v 1.1 2012/06/14 20:06:41 ssuominen Exp $ + +EAPI=4 +inherit eutils gnome2-utils pax-utils unpacker + +DESCRIPTION="An P2P Internet Telephony (VoiceIP) client" +HOMEPAGE="http://www.skype.com/" +SKYPE_URI="http://download.${PN}.com/linux" +SRC_URI="amd64? ( ${SKYPE_URI}/${PN}-debian_${PV}-1_amd64.deb ) + x86? ( ${SKYPE_URI}/${PN}-debian_${PV}-1_i386.deb )" + +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=20120127 + +RDEPEND="virtual/ttf-fonts + amd64? ( + >=app-emulation/emul-linux-x86-qtlibs-${EMUL_X86_VER} + >=app-emulation/emul-linux-x86-soundlibs-${EMUL_X86_VER} + >=app-emulation/emul-linux-x86-xlibs-${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] + )" + +S=${WORKDIR} + +src_compile() { + local langdir=usr/share/${PN}/lang + type -P lrelease >/dev/null && lrelease ${langdir}/*.ts + rm -f ${langdir}/*.ts +} + +src_install() { + into /opt + dobin usr/bin/${PN} + fowners root:audio /opt/bin/${PN} + + insinto /etc/dbus-1/system.d + doins etc/dbus-1/system.d/${PN}.conf + + insinto /usr/share + doins -r usr/share/${PN} + + dodoc usr/share/doc/${PN}/README + + doicon -s 48 usr/share/icons/${PN}.png + 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 + + # Temporary workaround until Portage is fixed for upgrade path from 2.x + # series: + # "One or more symlinks to directories have been preserved in order to + # ensure that files installed via these symlinks remain accessible." + rm -rf "${EROOT}"/usr/share/${PN} +} + +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 +} |