mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
google-talkplugin: moved to the www-plugins category, new version 1.5.1.0 added
This commit is contained in:
parent
8cc958fd51
commit
3096ccf42f
2 changed files with 209 additions and 0 deletions
3
www-plugins/google-talkplugin/Manifest
Normal file
3
www-plugins/google-talkplugin/Manifest
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
DIST google-talkplugin_1.5.1.0-1_amd64.deb 6916244 RMD160 b7815ed259c25d51adbe89edce9468e16fd15ca7 SHA1 ccbcd9dea50739cdc2fcb7bc34f089382f04f54f SHA256 ce6f492e84e17904dcc5e2b00d0288d40b7806ece1ae10bf014091d250bda76b
|
||||
DIST google-talkplugin_1.5.1.0-1_i386.deb 5902772 RMD160 16e84270b81db8e3843019fd1736d4f5c4b92dea SHA1 e1dff37f0e0957abaa0c27550b885b1accc4b76b SHA256 39ab0d9e4d3d80d4c7f5f888d9aa3b1f0d306a8a702c5c5abed3c92b0c221d2d
|
||||
EBUILD google-talkplugin-1.5.1.0.ebuild 5598 RMD160 c02cdfda005d50cdcbf76ab5d657bd81d2d53c56 SHA1 6db6ca7c63d248ecda62d011ee2879d10c5f5546 SHA256 636892a5b74e3bfd9ebdcde475a2482e6ce7748f06e53fb0a74b815f3aa7bcf6
|
||||
206
www-plugins/google-talkplugin/google-talkplugin-1.5.1.0.ebuild
Normal file
206
www-plugins/google-talkplugin/google-talkplugin-1.5.1.0.ebuild
Normal file
|
|
@ -0,0 +1,206 @@
|
|||
# Copyright 1999-2010 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
# $Header: $
|
||||
|
||||
EAPI=3
|
||||
|
||||
inherit multilib nsplugins
|
||||
|
||||
if [ "${PV}" != "9999" ]; then
|
||||
#infos from
|
||||
#http://dl.google.com/linux/talkplugin/deb/dists/stable/main/binary-i386/Packages
|
||||
MY_URL="http://dl.google.com/linux/talkplugin/deb/pool/main/${P:0:1}/${PN}"
|
||||
DEB_PATCH="1"
|
||||
MY_32B_PKG="${PN}_${PV}-${DEB_PATCH}_i386.deb"
|
||||
MY_64B_PKG="${PN}_${PV}-${DEB_PATCH}_amd64.deb"
|
||||
else
|
||||
MY_URL="http://dl.google.com/linux/direct"
|
||||
MY_32B_PKG="${PN}_current_i386.deb"
|
||||
MY_64B_PKG="${PN}_current_amd64.deb"
|
||||
fi
|
||||
|
||||
DESCRIPTION="Video chat browser plug-in for Google Talk"
|
||||
SRC_URI="x86? ( ${MY_URL}/${MY_32B_PKG} )
|
||||
amd64? (
|
||||
multilib? (
|
||||
32bit? ( ${MY_URL}/${MY_32B_PKG} )
|
||||
64bit? ( ${MY_URL}/${MY_64B_PKG} )
|
||||
)
|
||||
!multilib? ( ${MY_URL}/${MY_64B_PKG} )
|
||||
)"
|
||||
|
||||
HOMEPAGE="http://www.google.com/chat/video"
|
||||
IUSE="multilib nspluginwrapper +system-libCg 32bit 64bit"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="-* ~amd64 ~x86"
|
||||
LICENSE="UNKNOWN"
|
||||
RESTRICT="strip mirror"
|
||||
|
||||
#to get these run:
|
||||
#for i in $(scanelf -n /opt/google/talkplugin/* | awk '/^ET/{gsub(/,/,"\n",$2);print $2}' | sort -u)
|
||||
#do
|
||||
# find /lib /usr/lib -maxdepth 1 -name $i -exec qfile -S {} \;
|
||||
#done | awk '{print $1}' | sort -u
|
||||
#also see debian control file
|
||||
NATIVE_DEPS="|| ( media-sound/pulseaudio media-libs/alsa-lib )
|
||||
dev-libs/glib:2
|
||||
dev-libs/openssl:0.9.8
|
||||
media-libs/fontconfig
|
||||
media-libs/freetype:2
|
||||
media-libs/glew
|
||||
media-libs/libpng:0
|
||||
media-libs/libpng:1.2
|
||||
>=sys-libs/glibc-2.4
|
||||
x11-libs/gtk+:2
|
||||
x11-libs/libX11
|
||||
x11-libs/libXfixes
|
||||
x11-libs/libXt
|
||||
system-libCg? ( media-gfx/nvidia-cg-toolkit )
|
||||
sys-apps/lsb-release"
|
||||
|
||||
DEPEND="amd64? ( nspluginwrapper? ( www-plugins/nspluginwrapper ) )"
|
||||
|
||||
EMUL_DEPS=">=app-emulation/emul-linux-x86-baselibs-20100220
|
||||
app-emulation/emul-linux-x86-gtklibs
|
||||
app-emulation/emul-linux-x86-soundlibs
|
||||
app-emulation/emul-linux-x86-xlibs"
|
||||
|
||||
RDEPEND="x86? ( ${NATIVE_DEPS} )
|
||||
amd64? (
|
||||
multilib? (
|
||||
64bit? ( ${NATIVE_DEPS} )
|
||||
32bit? ( ${EMUL_DEPS} )
|
||||
)
|
||||
!multilib? ( ${NATIVE_DEPS} )
|
||||
)"
|
||||
|
||||
INSTALL_BASE="opt/google/talkplugin"
|
||||
|
||||
[ "${ARCH}" = "amd64" ] && SO_SUFFIX="64" || SO_SUFFIX=""
|
||||
|
||||
QA_TEXTRELS="${INSTALL_BASE}/libnpgtpo3dautoplugin.so
|
||||
${INSTALL_BASE}/libnpgoogletalk${SO_SUFFIX}.so"
|
||||
|
||||
QA_TEXTRELS_amd64="${INSTALL_BASE}32/libnpgtpo3dautoplugin.so
|
||||
${INSTALL_BASE}32/libnpgoogletalk.so"
|
||||
|
||||
rm_nswrapper_plugin() {
|
||||
#remove all wrapped plugins
|
||||
local i plugin
|
||||
if use amd64 && has_version 'www-plugins/nspluginwrapper'; then
|
||||
for i in libnpgtpo3dautoplugin.so libnpgoogletalk.so; do
|
||||
plugin=$(nspluginwrapper -l | grep -e "^/.*$i")
|
||||
if [[ -f ${plugin} ]]; then
|
||||
einfo "Removing 32-bit plugin wrapper: ${plugin}"
|
||||
nspluginwrapper -r "${plugin}"
|
||||
fi
|
||||
done
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_setup() {
|
||||
if use x86; then
|
||||
export MY_INSTALL_TYPE="native"
|
||||
elif use amd64; then
|
||||
if use multilib; then
|
||||
if use 32bit && use 64bit; then
|
||||
export MY_INSTALL_TYPE="both"
|
||||
elif use 64bit; then
|
||||
export MY_INSTALL_TYPE="native"
|
||||
elif use 32bit; then
|
||||
export MY_INSTALL_TYPE="cross"
|
||||
else
|
||||
eerror "You must select at least one library USE flag (32bit or 64bit)"
|
||||
die "No library version selected [-32bit -64bit]"
|
||||
fi
|
||||
else
|
||||
export MY_INSTALL_TYPE="native"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
src_unpack() {
|
||||
if [ "${MY_INSTALL_TYPE}" = "native" ]; then
|
||||
unpack ${A} ./data.tar.gz ./usr/share/doc/google-talkplugin/changelog.Debian.gz
|
||||
else # cross or both
|
||||
mkdir 32bit
|
||||
cd 32bit
|
||||
unpack "${MY_32B_PKG}" ./data.tar.gz ./usr/share/doc/google-talkplugin/changelog.Debian.gz
|
||||
cd ..
|
||||
fi
|
||||
|
||||
if [ "${MY_INSTALL_TYPE}" = "both" ]; then
|
||||
unpack "${MY_64B_PKG}" ./data.tar.gz ./usr/share/doc/google-talkplugin/changelog.Debian.gz
|
||||
fi
|
||||
}
|
||||
|
||||
src_install() {
|
||||
if [ "${MY_INSTALL_TYPE}" != "cross" ]; then #native or both
|
||||
dodoc ./usr/share/doc/google-talkplugin/changelog.Debian
|
||||
|
||||
cd "./${INSTALL_BASE}"
|
||||
exeinto "${EROOT}${INSTALL_BASE}"
|
||||
doexe GoogleTalkPlugin libnpgtpo3dautoplugin.so libnpgoogletalk"${SO_SUFFIX}".so
|
||||
inst_plugin "${EROOT}${INSTALL_BASE}"/libnpgtpo3dautoplugin.so
|
||||
inst_plugin "${EROOT}${INSTALL_BASE}"/libnpgoogletalk"${SO_SUFFIX}".so
|
||||
|
||||
#install bundled libCg
|
||||
if ! use system-libCg; then
|
||||
cd lib
|
||||
exeinto "${EROOT}${INSTALL_BASE}/lib"
|
||||
doexe *.so
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ "${MY_INSTALL_TYPE}" != "native" ]; then #cross or both
|
||||
oldabi="${ABI}"
|
||||
ABI="x86"
|
||||
|
||||
cd 32bit
|
||||
|
||||
cd "./${INSTALL_BASE}"
|
||||
exeinto "${EROOT}${INSTALL_BASE}32"
|
||||
doexe GoogleTalkPlugin libnpgtpo3dautoplugin.so libnpgoogletalk.so
|
||||
inst_plugin "${EROOT}${INSTALL_BASE}"32/libnpgtpo3dautoplugin.so
|
||||
inst_plugin "${EROOT}${INSTALL_BASE}"32/libnpgoogletalk.so
|
||||
|
||||
#install bundled libCg
|
||||
if ! use system-libCg; then
|
||||
cd lib
|
||||
exeinto "${EROOT}${INSTALL_BASE}"32/lib
|
||||
doexe *.so
|
||||
fi
|
||||
ABI="${oldabi}"
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_prerm() {
|
||||
rm_nswrapper_plugin
|
||||
}
|
||||
|
||||
pkg_postinst() {
|
||||
local i
|
||||
if use amd64; then
|
||||
if [ "${MY_INSTALL_TYPE}" = "cross" ]; then
|
||||
if has_version 'www-plugins/nspluginwrapper'; then
|
||||
#install 32bit plugins for 64bit browsers
|
||||
oldabi="${ABI}"
|
||||
ABI="x86"
|
||||
einfo "nspluginwrapper detected: Installing plugin wrapper"
|
||||
for i in libnpgtpo3dautoplugin.so libnpgoogletalk.so; do
|
||||
nspluginwrapper -i "${EROOT}/usr/$(get_libdir)/${PLUGINS_DIR}/${i}"
|
||||
done
|
||||
ABI="${oldabi}"
|
||||
else
|
||||
einfo "To use the 32-bit plugins in a native 64-bit firefox,"
|
||||
einfo "you must install www-plugins/nspluginwrapper and run"
|
||||
for i in libnpgtpo3dautoplugin.so libnpgoogletalk.so; do
|
||||
einfo "nspluginwrapper -i '${EROOT}/usr/$(get_libdir)/${PLUGINS_DIR}/${i}'"
|
||||
done
|
||||
fi
|
||||
else #both or native
|
||||
rm_nswrapper_plugin
|
||||
fi
|
||||
fi
|
||||
}
|
||||
Loading…
Reference in a new issue