2009-04-12 21:34:20 +02:00
|
|
|
a :
|
|
|
|
let
|
|
|
|
fetchurl = a.fetchurl;
|
|
|
|
|
2010-05-28 08:04:31 +02:00
|
|
|
version = a.lib.attrByPath ["version"] "0.13.4" a;
|
2009-04-12 21:34:20 +02: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
|
|
|
|
docutils
|
|
|
|
];
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = fetchurl {
|
2010-05-28 11:20:56 +02:00
|
|
|
url = "http://www.gajim.org/downloads/0.13/gajim-${version}.tar.gz";
|
2010-05-28 08:04:31 +02:00
|
|
|
sha256 = "0w7ddimwbapz51k76agqac5lwaqrsacl01zgq3jngrkgpfjlvxym";
|
2009-04-12 21:34:20 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
inherit buildInputs;
|
|
|
|
configureFlags = [];
|
|
|
|
|
2009-05-20 01:25:58 +02:00
|
|
|
preConfigure = a.fullDepEntry (''
|
2009-04-12 21:34:20 +02: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
|
|
|
|
'') ["addInputs" "doUnpack"];
|
|
|
|
|
2010-05-31 23:10:06 +02: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"
|
|
|
|
done
|
|
|
|
'') ["wrapBinContentsPython"];
|
|
|
|
|
2009-04-12 21:34:20 +02:00
|
|
|
/* doConfigure should be removed if not needed */
|
2010-05-31 23:10:06 +02:00
|
|
|
phaseNames = ["preConfigure" (a.doDump "1") "doConfigure" "doMakeInstall" "wrapBinContentsPython" "fixScriptNames"];
|
2009-04-12 21:34:20 +02:00
|
|
|
|
|
|
|
name = "gajim-" + version;
|
|
|
|
meta = {
|
|
|
|
description = "Jabber client with meta-contacts";
|
2009-08-04 09:49:16 +02:00
|
|
|
maintainers = [a.lib.maintainers.raskin];
|
2009-04-12 21:34:20 +02:00
|
|
|
};
|
|
|
|
}
|