# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ MEDIAVER="0.2" XMMSPLUGVER="0.4" ENCRYPTPLUGVER="0.2" DESCRIPTION="Enhanced version of the Gyach Yahoo! client with webcam and voice support" #SRC_URI="xmms? ( mirror://sourceforge/phpaint/gyachE-XMMS-Plugin-0.4-i586.tar.bz2 ) # encrypt? ( mirror://sourceforge/phpaint/gyachE-Encryption-Plugins-0.2-i586.tar.bz2 ) # webcam? ( mirror://sourceforge/phpaint/gyachE-Webcam-Utilities-0.3-i586.tar.bz2 ) # mirror://sourceforge/phpaint/gyach-enhanced_pyvoice-binary-${PV}-i586.tar.bz2 # mirror://sourceforge/phpaint/gyachE-Media-Package-0.1.tar.bz2" SRC_URI="mirror://sourceforge/phpaint/gyach-enhanced_pyvoice-source-${PV}.tar.bz2 mirror://sourceforge/phpaint/gyachE-Media-Package-${MEDIAVER}.tar.bz2 xmms? ( mirror://sourceforge/phpaint/gyachE-XMMS-Plugin-${XMMSPLUGVER}-source.tar.bz2 ) encrypt? (mirror://sourceforge/phpaint/gyachE-Encryption-Plugins-${ENCRYPTPLUGVER}-source.tar.bz2)" HOMEPAGE="http://phpaint.sourceforge.net/pyvoicechat/" LICENSE="GPL-2" KEYWORDS="-* ~x86 ~amd64" SLOT="0" IUSE="xmms encrypt webcam ccvt" S=${WORKDIR} DEPEND="virtual/libc =x11-libs/gtk+-2* media-libs/jasper gnome-extra/libgtkhtml >=dev-python/pygtk-2.0.0 encrypt? (app-crypt/gpgme) ccvt? (media-libs/libccvt)" inherit eutils distutils src_unpack() { unpack gyach-enhanced_pyvoice-source-${PV}.tar.bz2 cd ${S} patch -p1 < ${FILESDIR}/pyvoice-gyach_all_${PV}.patch if use xmms; then einfo "TODO: Compile and install XMMS plugin" unpack gyachE-XMMS-Plugin-${XMMSPLUGVER}-source.tar.bz2 else einfo "The xmms use flag is off, xmms plugin will not be installed." einfo "(actually, it wouldn't be installed anyway...)" fi if use encrypt; then einfo "TODO: Compile and install encrypt plugin" unpack gyachE-Encryption-Plugins-${ENCRYPTPLUGVER}-source.tar.bz2 else einfo "The encrypt use flag is off, encryption plugin will not be" einfo "installed (actually, it wouldn't be installed anyway....)" fi } src_compile() { cd ${WORKDIR}/gyach aclocal libtoolize rm acconfig.h autoheader automake -a autoconf econf emake # build pytsp cd ${WORKDIR} distutils_src_compile } src_install() { cd ${WORKDIR}/gyach einstall # the files are stored in /usr/local/share/ in the archive but we want the # files in /usr/share. # Note that: # tar-1.14 uses --strip-path # tar-1.14.90+ uses --strip-components # SHAREDDIR=/usr/share/gyache tar -C "${D}${SHAREDDIR}" --strip-components=4 -jxf ${DISTDIR}/gyachE-Media-Package-${MEDIAVER}.tar.bz2 cd ${WORKDIR} dodir /usr/lib/win32 insinto /usr/lib/win32 einfo "Installing TrueSpeech Codec" doins pytsp/codec/tssoft32.acm ${WIN32DIR}/ doins pytsp/codec/tsd32.dll ${WIN32DIR}/ einfo "Installing Py! Voice Chat for GYach Enhanced" dodir ${SHAREDDIR}/pyvoice/pixmaps dodir ${SHAREDDIR}/pyvoice/doc dodir ${SHAREDDIR}/pyvoice/locale/es/LC_MESSAGES dodir ${SHAREDDIR}/pyvoice/locale/fr/LC_MESSAGES # install the pyvoice python modules. distutils_src_install # those should actually be installed into libexec, but then would the # callbacks.c need to be patched. # # replace: # snprintf(callbackbuf,300, "%s/pyvoice/pyvoiceui.py &",PACKAGE_DATA_DIR); # # with: # snprintf(callbackbuf, 300, EXPANDED_LIBEXECDIR "/pyvoiceui.py"); # # I discovered this too late and I need some sleep... # the setup.py don't work really anyway. # insinto /usr/libexec # insopts -m0755 insinto ${SHAREDDIR}/pyvoice insopts -m0755 doins pyvoice/pyvoice.py doins pyvoice/pyvoiceui.py doins pyvoice/pyvoiceui-Gtk1.py }