2009-04-12 19:34:20 +00:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2013-05-24 20:14:49 +00:00
|
|
|
version = a.lib.attrByPath ["version"] "0.15.3" a;
|
2009-04-12 19:34:20 +00:00
|
|
|
buildInputs = with a; [
|
|
|
|
python pyGtkGlade gtk perl intltool dbus gettext
|
|
|
|
pkgconfig makeWrapper libglade pyopenssl libXScrnSaver
|
|
|
|
libXt xproto libXext xextproto libX11 gtkspell aspell
|
|
|
|
scrnsaverproto pycrypto pythonDBus pythonSexy
|
2012-09-23 17:39:26 +00:00
|
|
|
docutils pyasn1 farstream gst_plugins_bad gstreamer
|
|
|
|
gst_ffmpeg gst_python
|
2009-04-12 19:34:20 +00:00
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2012-09-13 12:39:38 +00:00
|
|
|
url = "http://www.gajim.org/downloads/0.15/gajim-${version}.tar.gz";
|
2013-05-24 20:14:49 +00:00
|
|
|
sha256 = "139yl7v1i6g9q66fdmzw0x7hhp7c4x44n4l8hl9g6m9zig5v3s28";
|
2009-04-12 19:34:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-19 23:25:58 +00:00
|
|
|
preConfigure = a.fullDepEntry (''
|
2009-04-12 19:34:20 +00:00
|
|
|
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$(toPythonPath ${a.pyGtkGlade})/gtk-2.0"
|
|
|
|
export PYTHONPATH="$PYTHONPATH''${PYTHONPATH:+:}$(toPythonPath ${a.pygobject})/gtk-2.0"
|
|
|
|
sed -e '/-L[$]x_libraries/d' -i configure
|
2012-09-13 15:24:25 +00:00
|
|
|
sed -e 's@tmpfd.close()@os.close(tmpfd)@' -i src/common/latex.py
|
2009-04-12 19:34:20 +00:00
|
|
|
'') ["addInputs" "doUnpack"];
|
|
|
|
|
2010-05-31 21:10:06 +00:00
|
|
|
fixScriptNames = a.fullDepEntry (''
|
|
|
|
mkdir "$out"/bin-wrapped
|
|
|
|
for i in "$out"/bin/.*-wrapped; do
|
|
|
|
name="$i"
|
|
|
|
name="''${name%-wrapped}"
|
|
|
|
name="''${name##*/.}"
|
|
|
|
mv "$i" "$out/bin-wrapped/$name"
|
|
|
|
sed -e 's^'"$i"'^'"$out/bin-wrapped/$name"'^' -i "$out/bin/$name"
|
2012-09-13 15:24:25 +00:00
|
|
|
sed -e "2aexport LD_LIBRARY_PATH=\"\$LD_LIBRARY_PATH\''${LD_LIBRARY_PATH:+:}${a.gtkspell}/lib:${a.gtkspell}/lib64\"" -i "$out/bin/gajim"
|
2012-09-13 14:53:09 +00:00
|
|
|
sed -e "2aexport NIX_LDFLAGS=\"\$NIX_LDFLAGS -L${a.gtkspell}/lib -L${a.gtkspell}/lib64\"" -i "$out/bin/gajim"
|
2012-09-23 17:39:26 +00:00
|
|
|
sed -e "2aexport GST_PLUGIN_PATH=\"\$GST_PLUGIN_PATH''${GST_PLUGIN_PATH:+:}$(echo ${a.gst_plugins_bad}/lib/gstreamer-*):$(echo ${a.gst_ffmpeg}/lib/gstreamer-*):$(echo ${a.farstream}/lib/gstreamer-*)\"" -i "$out/bin/gajim"
|
2010-05-31 21:10:06 +00:00
|
|
|
done
|
|
|
|
'') ["wrapBinContentsPython"];
|
|
|
|
|
2009-04-12 19:34:20 +00:00
|
|
|
/* doConfigure should be removed if not needed */
|
2012-09-13 14:02:41 +00:00
|
|
|
phaseNames = ["preConfigure" (a.doDump "1") "doConfigure" "doMakeInstall"
|
2012-09-13 15:24:25 +00:00
|
|
|
"wrapBinContentsPython" "fixScriptNames"];
|
2009-04-12 19:34:20 +00:00
|
|
|
|
|
|
|
name = "gajim-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Jabber client with meta-contacts";
|
2009-08-04 07:49:16 +00:00
|
|
|
maintainers = [a.lib.maintainers.raskin];
|
2009-04-12 19:34:20 +00:00
|
|
|
};
|
|
|
|
}
|