xmlrpc-c: update old svn -> latest stable (v1.25.25)

Also:
 - install the "xmlrpc" tool, similar to the Debian/Ubuntu package
 - add meta.* attributes
This commit is contained in:
Bjørn Forsman 2013-08-26 22:42:46 +02:00
parent 3a2506c4b4
commit 86f39c218f

View file

@ -1,16 +1,27 @@
{ stdenv, fetchsvn, curl }:
{ stdenv, fetchurl, curl }:
let rev = "2262"; in
stdenv.mkDerivation {
name = "xmlrpc-c-r${rev}";
stdenv.mkDerivation rec {
name = "xmlrpc-c-1.25.25";
src = fetchurl {
url = "mirror://sourceforge/xmlrpc-c/${name}.tgz";
sha256 = "1sk33q4c6liza920rp4w803cfq0a79saq7fg1yjsp8hks7q011ml";
};
buildInputs = [ curl ];
preInstall = "export datarootdir=$out/share";
# Build and install the "xmlrpc" tool (like the Debian package)
postInstall = ''
(cd tools/xmlrpc && make && make install)
'';
src = fetchsvn {
url = http://xmlrpc-c.svn.sourceforge.net/svnroot/xmlrpc-c/advanced;
rev = "2262";
sha256 = "1grwnczp5dq3w20rbz8bgpwl6jmw0w7cm7nbinlasf3ap5sc5ahb";
meta = with stdenv.lib; {
description = "A lightweight RPC library based on XML and HTTP";
homepage = http://xmlrpc-c.sourceforge.net/;
# <xmlrpc-c>/doc/COPYING also lists "Expat license",
# "ABYSS Web Server License" and "Python 1.5.2 License"
license = licenses.bsd3;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}