git.iko.soy/typeable/nixpkgs
on master help sign in
psi: fix remove psimedia and spellchecker

spellchecker (aspell -> enchant)

commit4087e99886edb800bfd68a2f3ad6c9b4fafb67d9 authorSilvio Frischknecht <github@lupux.ch> dateSun 3 Apr 2016, 14:08 (11 years ago) parent04cfea8
4 files changed+3−182
pkgs/applications/networking/instant-messengers/psi/default.nix+3−15 pkgs/applications/networking/instant-messengers/psi/glib-2.32.patch−54 pkgs/applications/networking/instant-messengers/psi/linux-headers.patch−86 pkgs/applications/networking/instant-messengers/psi/psimedia.nix−27
pkgs/applications/networking/instant-messengers/psi/default.nix+3−15
@@ -1,5 +1,5 @@
1−{ stdenv, fetchurl, aspell, qt4, zlib, sox, libX11, xproto, libSM
2−, libICE, qca2, pkgconfig, liboil, speex, callPackage, which, glib
1+{ stdenv, fetchurl, enchant, qt4, zlib, sox, libX11, xproto, libSM
2+, libICE, qca2, pkgconfig, callPackage, which, glib
33, libXScrnSaver, scrnsaverproto
44}:
55
@@ -12,7 +12,7 @@ stdenv.mkDerivation rec {
1212 };
1313
1414 buildInputs =
15− [ aspell qt4 zlib sox libX11 xproto libSM libICE
15+ [ enchant qt4 zlib sox libX11 xproto libSM libICE
1616 qca2 pkgconfig which glib scrnsaverproto libXScrnSaver
1717 ];
1818
@@ -20,20 +20,8 @@ stdenv.mkDerivation rec {
2020
2121 NIX_LDFLAGS="-lqca";
2222
23− psiMedia = callPackage ./psimedia.nix { };
24−
2523 enableParallelBuilding = true;
2624
27− configureFlags = [
28− "--with-aspell-inc=${aspell}/include"
29− ];
30−
31− postInstall = ''
32− PSI_PLUGINS="$out/lib/psi/plugins"
33− mkdir -p "$PSI_PLUGINS"
34− ln -s "${psiMedia}"/share/psi/plugins/*.so "$PSI_PLUGINS"
35− '';
36−
3725 meta = {
3826 description = "Psi, an XMPP (Jabber) client";
3927 maintainers = [ stdenv.lib.maintainers.raskin ];
pkgs/applications/networking/instant-messengers/psi/glib-2.32.patchdeleted−54
@@ -1,54 +0,0 @@
1−http://sources2.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/net-im/psimedia/files/psimedia-1.0.3-glib2.32.patch?view=log
2−
3−Index: psimedia-1.0.3/gstprovider/gstcustomelements/gstcustomelements.h
4−===================================================================
5−--- psimedia-1.0.3.orig/gstprovider/gstcustomelements/gstcustomelements.h
6−+++ psimedia-1.0.3/gstprovider/gstcustomelements/gstcustomelements.h
7−@@ -21,7 +21,7 @@
8− #ifndef GSTCUSTOMELEMENTS_H
9− #define GSTCUSTOMELEMENTS_H
10−
11−-#include <glib/gthread.h>
12−+#include <glib.h>
13− #include <gst/gst.h>
14− #include <gst/base/gstpushsrc.h>
15− #include <gst/video/video.h>
16−Index: psimedia-1.0.3/gstprovider/gstelements/static/gstelements.h
17−===================================================================
18−--- psimedia-1.0.3.orig/gstprovider/gstelements/static/gstelements.h
19−+++ psimedia-1.0.3/gstprovider/gstelements/static/gstelements.h
20−@@ -21,7 +21,7 @@
21− #ifndef PSI_GSTELEMENTS_H
22− #define PSI_GSTELEMENTS_H
23−
24−-#include <glib/gmacros.h>
25−+#include <glib.h>
26−
27− G_BEGIN_DECLS
28−
29−Index: psimedia-1.0.3/gstprovider/gstthread.h
30−===================================================================
31−--- psimedia-1.0.3.orig/gstprovider/gstthread.h
32−+++ psimedia-1.0.3/gstprovider/gstthread.h
33−@@ -22,7 +22,7 @@
34− #define PSI_GSTTHREAD_H
35−
36− #include <QThread>
37−-#include <glib/gmain.h>
38−+#include <glib.h>
39−
40− namespace PsiMedia {
41−
42−Index: psimedia-1.0.3/gstprovider/rwcontrol.h
43−===================================================================
44−--- psimedia-1.0.3.orig/gstprovider/rwcontrol.h
45−+++ psimedia-1.0.3/gstprovider/rwcontrol.h
46−@@ -28,7 +28,7 @@
47− #include <QMutex>
48− #include <QWaitCondition>
49− #include <QTimer>
50−-#include <glib/gmain.h>
51−+#include <glib.h>
52− #include "psimediaprovider.h"
53− #include "rtpworker.h"
54−
pkgs/applications/networking/instant-messengers/psi/linux-headers.patchdeleted−86
@@ -1,86 +0,0 @@
1−http://pkgs.fedoraproject.org/gitweb/?p=psimedia.git;a=blob_plain;f=psimedia-remove-v4l.patch;hb=HEAD
2−
3−--- a/gstprovider/deviceenum/deviceenum_unix.cpp
4−+++ b/gstprovider/deviceenum/deviceenum_unix.cpp
5−@@ -35,7 +35,7 @@
6− # include <sys/stat.h>
7− # include <dirent.h>
8− # include <sys/ioctl.h>
9−-# include <linux/videodev.h>
10−+# include <linux/videodev2.h>
11− #endif
12−
13− namespace DeviceEnum {
14−@@ -478,72 +478,7 @@
15− // v4l detection scheme adapted from PWLib (used by Ekiga/Gnomemeeting)
16− static QList<Item> get_v4l_items()
17− {
18−-#ifdef Q_OS_LINUX
19−- QList<Item> out;
20−-
21−- QList<V4LName> list = get_v4l_names("/sys/class/video4linux", true);
22−- if(list.isEmpty())
23−- list = get_v4l_names("/proc/video/dev", false);
24−-
25−- // if we can't find anything, then do a raw scan for possibilities
26−- if(list.isEmpty())
27−- {
28−- QStringList possible = scan_for_videodevs("/dev");
29−- foreach(QString str, possible)
30−- {
31−- V4LName v;
32−- v.dev = str;
33−- list += v;
34−- }
35−- }
36−-
37−- for(int n = 0; n < list.count(); ++n)
38−- {
39−- V4LName &v = list[n];
40−-
41−- // if we already have a friendly name then we'll skip the confirm
42−- // in order to save resources. the only real drawback here that
43−- // I can think of is if the device isn't a capture type. but
44−- // what does it mean to have a V4L device that isn't capture??
45−- if(v.friendlyName.isEmpty())
46−- {
47−- int fd = open(QFile::encodeName(v.dev).data(), O_RDONLY | O_NONBLOCK);
48−- if(fd == -1)
49−- continue;
50−-
51−- // get video capabilities and close
52−- struct video_capability caps;
53−- memset(&caps, 0, sizeof(caps));
54−- int ret = ioctl(fd, VIDIOCGCAP, &caps);
55−- close(fd);
56−- if(ret == -1)
57−- continue;
58−-
59−- if(!(caps.type & VID_TYPE_CAPTURE))
60−- continue;
61−-
62−- v.friendlyName = caps.name;
63−- }
64−-
65−- Item i;
66−- i.type = Item::Video;
67−- i.dir = Item::Input;
68−- i.name = v.friendlyName;
69−- i.driver = "v4l";
70−- i.id = v.dev;
71−-
72−- // HACK
73−- if(v.friendlyName == "Labtec Webcam Notebook")
74−- i.explicitCaptureSize = QSize(640, 480);
75−-
76−- out += i;
77−- }
78−-
79−- return out;
80−-#else
81−- // return empty list if non-linux
82− return QList<Item>();
83−-#endif
84− }
85−
86− static QList<Item> get_v4l2_items()
pkgs/applications/networking/instant-messengers/psi/psimedia.nixdeleted−27
@@ -1,27 +0,0 @@
1−{ stdenv, fetchurl, qt4, gstreamer, gst_plugins_base, liboil, speex, which
2−, glib, pkgconfig }:
3−
4−stdenv.mkDerivation rec {
5− name = "psimedia-1.0.3";
6−
7− src = fetchurl {
8− url = "http://delta.affinix.com/download/psimedia/${name}.tar.bz2";
9− sha256 = "0fxjdz8afh75gfx2msysb1gss6zx578l3224jvc9jhm99w1ii781";
10− };
11−
12− patches = [ ./glib-2.32.patch ./linux-headers.patch ];
13−
14− buildInputs = [ qt4 gstreamer gst_plugins_base liboil speex which glib pkgconfig ];
15−
16− configurePhase = ''./configure'';
17−
18− postBuild = ''
19− TARGET="$out/share/psi/plugins"
20− mkdir -p "$TARGET"
21− cp gstprovider/*.so "$TARGET"/
22− '';
23−
24− meta = {
25− description = "Psi Media, a plugin to provide Voice/Video over XMPP";
26− };
27−}