Permalink
Browse files

rion's psimedia-1.0.3_p20111024 fix with portage glib patch

  • Loading branch information...
1 parent 389fbe7 commit 28b476fccbdb9bd08ce7b643b09db7d51214d2ab @v-fox committed Jun 17, 2012
View
@@ -0,0 +1,3 @@
+AUX psimedia-1.0.3-glib2.32.patch 1629 RMD160 506a455fd7f1c927a5329601111d47be729d53b0 SHA1 daf9ca0db45f6ef518ae8eaef26299524474d087 SHA256 001745f468fd061c3d5fd6ab30a448fbf5aef6346324ff244f5239d0d009f83b
+DIST psimedia-1.0.3_p20111024.tar.xz 207600 RMD160 aeab2f87eb8f8dc17164ecfcff2539e2e45b3f87 SHA1 767f28d4859569f83f6148eea707eec96770fefd SHA256 854abee25ddec9309aca2cb276619d96ed11cd4a7fa9c2e4262679a915783934
+EBUILD psimedia-1.0.3_p20111024.ebuild 1940 RMD160 27a60a44ce424a96102cf7af1679ede1fa5aa372 SHA1 fb2b8180ecd097a05952025450dd92d03ae66a2e SHA256 5d02ffb696aff761771298a54a0c1da452e282c7b7916fb31c3ae766b6f909ae
@@ -0,0 +1,52 @@
+Index: psimedia-1.0.3/gstprovider/gstcustomelements/gstcustomelements.h
+===================================================================
+--- psimedia-1.0.3.orig/gstprovider/gstcustomelements/gstcustomelements.h
++++ psimedia-1.0.3/gstprovider/gstcustomelements/gstcustomelements.h
+@@ -21,7 +21,7 @@
+ #ifndef GSTCUSTOMELEMENTS_H
+ #define GSTCUSTOMELEMENTS_H
+
+-#include <glib/gthread.h>
++#include <glib.h>
+ #include <gst/gst.h>
+ #include <gst/base/gstpushsrc.h>
+ #include <gst/video/video.h>
+Index: psimedia-1.0.3/gstprovider/gstelements/static/gstelements.h
+===================================================================
+--- psimedia-1.0.3.orig/gstprovider/gstelements/static/gstelements.h
++++ psimedia-1.0.3/gstprovider/gstelements/static/gstelements.h
+@@ -21,7 +21,7 @@
+ #ifndef PSI_GSTELEMENTS_H
+ #define PSI_GSTELEMENTS_H
+
+-#include <glib/gmacros.h>
++#include <glib.h>
+
+ G_BEGIN_DECLS
+
+Index: psimedia-1.0.3/gstprovider/gstthread.h
+===================================================================
+--- psimedia-1.0.3.orig/gstprovider/gstthread.h
++++ psimedia-1.0.3/gstprovider/gstthread.h
+@@ -22,7 +22,7 @@
+ #define PSI_GSTTHREAD_H
+
+ #include <QThread>
+-#include <glib/gmain.h>
++#include <glib.h>
+
+ namespace PsiMedia {
+
+Index: psimedia-1.0.3/gstprovider/rwcontrol.h
+===================================================================
+--- psimedia-1.0.3.orig/gstprovider/rwcontrol.h
++++ psimedia-1.0.3/gstprovider/rwcontrol.h
+@@ -28,7 +28,7 @@
+ #include <QMutex>
+ #include <QWaitCondition>
+ #include <QTimer>
+-#include <glib/gmain.h>
++#include <glib.h>
+ #include "psimediaprovider.h"
+ #include "rtpworker.h"
+
@@ -0,0 +1,86 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit qt4-r2 multilib eutils
+
+DESCRIPTION="Psi plugin for voice/video calls"
+HOMEPAGE="http://delta.affinix.com/psimedia/"
+SRC_URI="http://rion-overlay.googlecode.com/files/${P}.tar.xz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="demo extras"
+
+COMMON_DEPEND="
+ >=dev-libs/glib-2.20.0
+ >=media-libs/gstreamer-0.10.22
+ >=media-libs/gst-plugins-base-0.10.22
+ media-libs/gst-plugins-good
+ >=dev-libs/liboil-0.3
+ >=x11-libs/qt-gui-4.4:4
+ >=media-libs/speex-1.2_rc1
+"
+RDEPEND="${COMMON_DEPEND}
+ media-plugins/gst-plugins-speex
+ >=media-plugins/gst-plugins-vorbis-0.10.22
+ >=media-plugins/gst-plugins-theora-0.10.22
+ >=media-plugins/gst-plugins-alsa-0.10.22
+ >=media-plugins/gst-plugins-ogg-0.10.22
+ media-plugins/gst-plugins-v4l2
+ media-plugins/gst-plugins-jpeg
+ !<net-im/psi-0.13_rc1
+ extras? ( >=net-im/psi-0.15_pre20110125[extras] )
+"
+DEPEND="${COMMON_DEPEND}
+ sys-devel/qconf
+ dev-util/pkgconfig
+ app-arch/xz-utils
+"
+
+src_prepare() {
+ sed -e '/^TEMPLATE/a CONFIG += ordered' -i psimedia.pro || die
+ # Don't build demo if we don't need that.
+ if use !demo; then
+ sed -e '/^SUBDIRS[[:space:]]*+=[[:space:]]*demo[[:space:]]*$/d;' \
+ -i psimedia.pro || die
+ fi
+
+ epatch "${FILESDIR}"/psimedia-1.0.3-glib2.32.patch
+}
+
+src_configure() {
+ qconf
+ # qconf generated configure script...
+ ./configure --no-separate-debug-info || die
+
+ eqmake4
+}
+
+src_install() {
+ if use extras; then
+ pname="psi-plus"
+ else
+ pname="psi"
+ fi
+ insinto /usr/$(get_libdir)/${pname}/plugins
+ doins gstprovider/libgstprovider.so
+
+ if use demo; then
+ exeinto /usr/$(get_libdir)/${PN}
+ newexe demo/demo ${PN}
+
+ # Create /usr/bin/psimedia
+ cat <<-EOF > "demo/${PN}"
+ #!/bin/bash
+
+ export PSI_MEDIA_PLUGIN=/usr/$(get_libdir)/${pname}/plugins/libgstprovider.so
+ /usr/$(get_libdir)/${PN}/${PN}
+ EOF
+
+ dobin demo/${PN}
+ fi
+}

0 comments on commit 28b476f

Please sign in to comment.