# $Id$ PNAME="pidgin" PVER="2.6.6" PBUILD="r1" PCATEGORIE="net-im" STATE="unstable" DESCRIPTION="Pigin is a multi-protocol instant messaging client for Linux." HOMEPAGE="http://www.pidgin.im/" DEPEND=">= x11-libs/gtk2+-2.18 >= dev-libs/glib2-2.22 >= dev-libs/nspr-4.8 >= dev-libs/nss-3.12 >= app-text/gtkspell-2.0.16 >= x11-libs/startup-notification-0.10 >= dev-lang/perl-5.10 >= dev-lang/tcl-8.5 >= dev-lang/tk-8.5 >= sys-apps/dbus-1.3 >= dev-libs/dbus-glib-0.82 >= dev-libs/cyrus-sasl-2.1 >= media-libs/gstreamer-0.10.25 >= media-libs/gst-plugins-base-0.10.25 >= media-libs/gst-plugins-good-0.10.16 >= dev-db/sqlite-3.6 >= x11-libs/libXScrnSaver-1 >= net-libs/meanwhile-1 >= net-dns/avahi-0.6.25 >= net-dns/libidn-1.15 >= net-libs/libgadu-1.8.2 >= sys-libs/ncurses-5.7" # Todo: farsight2 support for voice/video -> --disable-vv atm SDEPEND=">= sys-dev/gettext-0.17" SRCFILE="${PNAME}-${PVER}.tar.bz2" SRCDIR="${BUILDDIR}/${PNAME}-${PVER}" PIDGIN_ENC_PVER="3.0" PIDGIN_ENC_FILE="${PNAME}-encryption-${PIDGIN_ENC_PVER}.tar.gz" PIDGIN_ENC_DIR="${BUILDDIR}/${PNAME}-encryption-${PIDGIN_ENC_PVER}" sminclude mtools SRC_URI=( sourceforge://${PNAME}/${SRCFILE} sourceforge://pidgin-encrypt/${PIDGIN_ENC_FILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}/${PIDGIN_ENC_FILE} mirror://${PNAME}/pidgin-2.0.2-prefs.xml ) UP2DATE="updatecmd ${HOMEPAGE}/download/source/ | lasttarball" src_prepare() { munpack ${SRCFILE} || die munpack ${PIDGIN_ENC_FILE} || die } src_compile() { cd ${SRCDIR} # pidgin mconfigure \ --enable-nss \ --enable-perl \ --enable-tcl \ --enable-tk \ --enable-dbus \ --enable-gstreamer \ --enable-cyrus-sasl \ --enable-meanwhile \ --enable-avahi \ --enable-consoleui \ --enable-cap \ --enable-idn \ --with-gadu-includes=. \ --with-gadu-libs=. \ --disable-mono \ --disable-gevolution \ --disable-nm \ --disable-vv \ || die mmake || die # pidgin-encryption cd ${PIDGIN_ENC_DIR} PKG_CONFIG_PATH=${SRCDIR}/pidgin:${SRCDIR}/libpurple:${PKG_CONFIG_PATH} \ mconfigure || die mmake || die } src_install() { # pidgin cd ${SRCDIR} # needed directories minstalldir /etc/purple || die minstalldir /usr/include/pidgin/src || die mmake DESTDIR=${BINDIR} install || die # install default preferences minstallfile -s pidgin-2.0.2-prefs.xml /etc/purple/prefs.xml || die # install includes minstallfile config.h /usr/include/pidgin || die cd ${SRCDIR}/src tar cf - *.h | (cd ${BINDIR}/usr/include/pidgin/src ; tar xvf -) cd ${SRCDIR} minstalldocs ABOUT-NLS NEWS AUTHORS PROGRAMMING_NOTES COPYING \ README* COPYRIGHT ChangeLog* HACKING \ doc/CREDITS doc/FAQ || die # pidgin-encryption cd ${PIDGIN_ENC_DIR} # needed directories minstalldir /usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die mmake DESTDIR=${BINDIR} install || die # docs local i for i in CHANGELOG INSTALL NOTES README TODO VERSION WISHLIST do minstallfile ${i} /usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die ${i} done gzip -r9 ${BINDIR}/usr/share/doc/${PNAME}-encryption-${PIDGIN_ENC_PVER} || die }