Gentoo Archives: gentoo-commits

From: Amy Liffey <amynka@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-im/skypeforlinux/
Date: Mon, 17 Apr 2017 13:49:55
Message-Id: 1492436968.414e240545661d4adb66242d3b3f28d0d0e1888f.amynka@gentoo
1 commit: 414e240545661d4adb66242d3b3f28d0d0e1888f
2 Author: Karol GrudziƄski <krlgrudzinski+gentoo <AT> gmail <DOT> com>
3 AuthorDate: Tue Apr 4 21:03:45 2017 +0000
4 Commit: Amy Liffey <amynka <AT> gentoo <DOT> org>
5 CommitDate: Mon Apr 17 13:49:28 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=414e2405
7
8 net-im/skypeforlinux: version bump to 5.1.0.1
9
10 Closes:#4361
11 Package-Manager: Portage-2.3.5, Repoman-2.3.2
12
13 net-im/skypeforlinux/Manifest | 1 +
14 net-im/skypeforlinux/skypeforlinux-5.1.0.1.ebuild | 106 ++++++++++++++++++++++
15 2 files changed, 107 insertions(+)
16
17 diff --git a/net-im/skypeforlinux/Manifest b/net-im/skypeforlinux/Manifest
18 index b3b07c55889..d9678910020 100644
19 --- a/net-im/skypeforlinux/Manifest
20 +++ b/net-im/skypeforlinux/Manifest
21 @@ -1 +1,2 @@
22 DIST skypeforlinux_5.0.0.5-1.x86_64.rpm 67525460 SHA256 afd90e232849e90508f7ce06c765d850e9353f8074443d9f1d99fc0c53789cef SHA512 fe09406d57cc02910078c4ede54986753a671cd7b31fa6733f7c111cecf0cc574b13f08980470a32b9921b77ab1fc2cac24faef5fcd2110e8e579003d6e035f0 WHIRLPOOL 87cf34808494a4b46788e9f8539b5b435a59bfa583456bd8c0c6c17f890e3ff6b44a168d25c588cdaf98431db0b3261f423c021cf9aa85b92bbed772c91b6376
23 +DIST skypeforlinux_5.1.0.1-1.x86_64.rpm 67541387 SHA256 ca05f35ed845e63bccb86256b7bd1de06bc312fd0c07f027995121bc807f6bac SHA512 ea9caf93fb6b115c9bf2972bd36d479f1ed365ed2462d6b0fc312d8566df30dbb7273de26f3f6240042bf3ddd49865c3509bf11b884eae938344456327cf3697 WHIRLPOOL 611272ca0c9f1c76510f7a2ae6411214f203aa9c2855271359d38f2f64c6e7ccdcd827afa45453f0658ae1f10889b5c7716ff5eec29a344035f55ad46b3f3051
24
25 diff --git a/net-im/skypeforlinux/skypeforlinux-5.1.0.1.ebuild b/net-im/skypeforlinux/skypeforlinux-5.1.0.1.ebuild
26 new file mode 100644
27 index 00000000000..c5a2bef1406
28 --- /dev/null
29 +++ b/net-im/skypeforlinux/skypeforlinux-5.1.0.1.ebuild
30 @@ -0,0 +1,106 @@
31 +# Copyright 1999-2017 Gentoo Foundation
32 +# Distributed under the terms of the GNU General Public License v2
33 +
34 +EAPI=6
35 +
36 +inherit eutils pax-utils rpm
37 +
38 +DESCRIPTION="P2P Internet Telephony (VoiceIP) client"
39 +HOMEPAGE="https://www.skype.com/"
40 +SRC_URI="https://repo.skype.com/rpm/stable/${PN}_${PV}-1.x86_64.rpm"
41 +
42 +LICENSE="Skype-TOS no-source-code"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE="pax_kernel"
46 +
47 +S="${WORKDIR}"
48 +QA_PREBUILT=opt/skypeforlinux/skypeforlinux
49 +RESTRICT="mirror bindist strip" #299368
50 +
51 +RDEPEND="dev-libs/atk
52 + dev-libs/expat
53 + dev-libs/glib:2
54 + dev-libs/nspr
55 + dev-libs/nss
56 + gnome-base/gconf:2
57 + gnome-base/libgnome-keyring
58 + media-libs/alsa-lib
59 + media-libs/fontconfig:1.0
60 + media-libs/freetype:2
61 + net-print/cups
62 + sys-apps/dbus
63 + sys-devel/gcc[cxx]
64 + sys-libs/glibc
65 + virtual/ttf-fonts
66 + x11-libs/cairo
67 + x11-libs/gdk-pixbuf:2
68 + x11-libs/gtk+:2
69 + x11-libs/libX11
70 + x11-libs/libXScrnSaver
71 + x11-libs/libXcomposite
72 + x11-libs/libXcursor
73 + x11-libs/libXdamage
74 + x11-libs/libXext
75 + x11-libs/libXfixes
76 + x11-libs/libXi
77 + x11-libs/libXrandr
78 + x11-libs/libXrender
79 + x11-libs/libXtst
80 + x11-libs/pango"
81 +
82 +src_unpack() {
83 + rpm_src_unpack ${A}
84 +}
85 +
86 +src_prepare() {
87 + default
88 + sed -e "s!^SKYPE_PATH=.*!SKYPE_PATH=${EPREFIX}/opt/skypeforlinux/skypeforlinux!" \
89 + -i usr/bin/skypeforlinux || die
90 + sed -e "s!^Exec=.*!Exec=${EPREFIX}/opt/bin/skypeforlinux!" \
91 + -e "s!^Categories=.*!Categories=Network;InstantMessaging;Telephony;!" \
92 + -i usr/share/applications/skypeforlinux.desktop || die
93 +}
94 +
95 +src_install() {
96 + insinto /opt/skypeforlinux/locales
97 + doins usr/share/skypeforlinux/locales/*.pak
98 +
99 + insinto /opt/skypeforlinux/resources/app.asar.unpacked/node_modules/keytar/build/Release
100 + doins usr/share/skypeforlinux/resources/app.asar.unpacked/node_modules/keytar/build/Release/keytar.node
101 +
102 + insinto /opt/skypeforlinux/resources
103 + doins usr/share/skypeforlinux/resources/*.asar
104 +
105 + insinto /opt/skypeforlinux
106 + doins usr/share/skypeforlinux/*.pak
107 + doins usr/share/skypeforlinux/*.bin
108 + doins usr/share/skypeforlinux/*.dat
109 + doins usr/share/skypeforlinux/version
110 + exeinto /opt/skypeforlinux
111 + doexe usr/share/skypeforlinux/*.so
112 + doexe usr/share/skypeforlinux/skypeforlinux
113 +
114 + into /opt
115 + dobin usr/bin/skypeforlinux
116 +
117 + dodoc -r usr/share/doc/skypeforlinux/.
118 +
119 + doicon usr/share/pixmaps/skypeforlinux.png
120 +
121 + local res
122 + for res in 16 32 256 512; do
123 + newicon -s ${res} usr/share/icons/hicolor/${res}x${res}/apps/skypeforlinux.png skypeforlinux.png
124 + done
125 +
126 + domenu usr/share/applications/skypeforlinux.desktop
127 +
128 + if use pax_kernel; then
129 + pax-mark -Cm "${ED%/}"/opt/skypeforlinux/skypeforlinux
130 + eqawarn "You have set USE=pax_kernel meaning that you intend to run"
131 + eqawarn "${PN} under a PaX enabled kernel. To do so, we must modify"
132 + eqawarn "the ${PN} binary itself and this *may* lead to breakage! If"
133 + eqawarn "you suspect that ${PN} is being broken by this modification,"
134 + eqawarn "please open a bug."
135 + fi
136 +}