diff options
author | Christoph Junghans <ottxor@gentoo.org> | 2016-08-21 15:04:04 -0600 |
---|---|---|
committer | Christoph Junghans <ottxor@gentoo.org> | 2016-08-21 15:04:22 -0600 |
commit | dd3f3f9c6cb37d8e6b8e11277e25bd8805fd778b (patch) | |
tree | 6b65396a3cf3d13aecea238d24e9822d921fec02 /www-plugins/google-talkplugin/google-talkplugin-5.41.3.0.ebuild | |
parent | dev-tex/cpp2latex: revision bump to EAPI 6. (diff) | |
download | gentoo-dd3f3f9c6cb37d8e6b8e11277e25bd8805fd778b.tar.gz gentoo-dd3f3f9c6cb37d8e6b8e11277e25bd8805fd778b.tar.bz2 gentoo-dd3f3f9c6cb37d8e6b8e11277e25bd8805fd778b.zip |
www-plugins/google-talkplugin: version bump
Package-Manager: portage-2.2.28
Diffstat (limited to 'www-plugins/google-talkplugin/google-talkplugin-5.41.3.0.ebuild')
-rw-r--r-- | www-plugins/google-talkplugin/google-talkplugin-5.41.3.0.ebuild | 127 |
1 files changed, 127 insertions, 0 deletions
diff --git a/www-plugins/google-talkplugin/google-talkplugin-5.41.3.0.ebuild b/www-plugins/google-talkplugin/google-talkplugin-5.41.3.0.ebuild new file mode 100644 index 000000000000..1a84d7c3a9aa --- /dev/null +++ b/www-plugins/google-talkplugin/google-talkplugin-5.41.3.0.ebuild @@ -0,0 +1,127 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +inherit eutils multilib nsplugins unpacker + +if [ "${PV}" != "9999" ]; then + DEB_PATCH="1" + #https://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-i386/Packages + MY_URL="https://dl.google.com/linux/talkplugin/deb/pool/main/${P:0:1}/${PN}" + MY_PKG="${PN}_${PV}-${DEB_PATCH}_i386.deb" + SRC_URI="x86? ( ${MY_URL}/${MY_PKG} ) + amd64? ( ${MY_URL}/${MY_PKG/i386/amd64} )" + KEYWORDS="-* ~amd64 ~x86" +else + inherit cvs #hack to make it part of @live-rebuild + MY_URL="https://dl.google.com/linux/direct" + MY_PKG="${PN}_current_i386.deb" + SRC_URI="" +fi + +DESCRIPTION="Video chat browser plug-in for Google Talk" + +HOMEPAGE="https://www.google.com/chat/video" +IUSE="libnotify selinux" +SLOT="0" + +#GoogleTalkPlugin binary contains openssl and celt +LICENSE="Google-TOS openssl BSD" + +OBSOLETE="no" +[[ $OBSOLETE = yes ]] && RESTRICT="fetch strip" || RESTRICT="strip mirror" + +RDEPEND="|| ( media-sound/pulseaudio media-libs/alsa-lib ) + dev-libs/expat + dev-libs/glib:2 + sys-libs/glibc + x11-libs/cairo + x11-libs/gdk-pixbuf + x11-libs/gtk+:2 + x11-libs/libX11 + x11-libs/libXcomposite + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libXrender + x11-libs/pango + sys-apps/lsb-release + selinux? ( sec-policy/selinux-googletalk ) + libnotify? ( x11-libs/libnotify )" + +DEPEND="" + +INSTALL_BASE="opt/google/talkplugin" + +QA_PREBUILT="${INSTALL_BASE}/*" + +S="${WORKDIR}" + +LANGS="ar cs en et fr hu lt ms pl ru sv tl vi bg da fa gu id ja lv nl +sk ta tr bn de es fi hi is kn ml no sl te uk ca el fil hr it ko mr or +ro sr th ur" + +for X in ${LANGS} ; do + IUSE="${IUSE} linguas_${X}" +done + +# nofetch means upstream bumped and thus needs version bump +pkg_nofetch() { + if [[ ${OBSOLETE} = yes ]]; then + elog "This version is no longer available from Google and the license prevents mirroring." + elog "This ebuild is intended for users who already downloaded it previously and have problems" + elog "with ${PV}+. If you can get the distfile from e.g. another computer of yours, or search" + use amd64 && MY_PKG="${MY_PKG/i386/amd64}" + elog "it with google: https://www.google.com/search?q=intitle:%22index+of%22+${MY_PKG}" + elog "and copy the file ${MY_PKG} to ${DISTDIR}." + else + einfo "This version is no longer available from Google." + einfo "Note that Gentoo cannot mirror the distfiles due to license reasons, so we have to follow the bump." + einfo "Please file a version bump bug on https://bugs.gentoo.org (search existing bugs for ${PN} first!)." + fi +} + +src_unpack() { + local pkg="${A:=${MY_PKG}}" + if [ "${PV}" = "9999" ]; then + use amd64 && pkg="${pkg/i386/amd64}" + einfo "Fetching ${pkg}" + wget "${MY_URL}/${pkg}" || die + fi + unpacker ${pkg} +} + +src_install() { + local plugindir i l + local ppapi_plugindirs=( /opt/google/chrome{,-beta,-unstable}/pepper + /usr/$(get_libdir)/chromium-browser/pepper ) + + unpacker usr/share/doc/google-talkplugin/changelog.Debian.gz + dodoc changelog.Debian + + exeinto "/${INSTALL_BASE}" + doexe "${INSTALL_BASE}"/GoogleTalkPlugin + for i in "${INSTALL_BASE}"/lib*.so; do + doexe "${i}" + [[ ${i##*/} = libnp* ]] && inst_plugin "/${i}" + if [[ ${i##*/} = libpp* ]] ; then + for plugindir in "${ppapi_plugindirs[@]}"; do + dosym "/${i}" "${plugindir}/${i##*/}" + done + fi + done + + #install screen-sharing stuff - bug #397463 + insinto "/${INSTALL_BASE}" + doins "${INSTALL_BASE}"/windowpicker.glade + doins "${INSTALL_BASE}"/remoting24x24.png + doins -r "${INSTALL_BASE}"/data + + strip-linguas ${LANGS} + for l in ${LINGUAS}; do + insinto "/${INSTALL_BASE}"/locale/$l/LC_MESSAGES/ + doins "${INSTALL_BASE}"/locale/$l/LC_MESSAGES/windowpicker.mo + done +} |