2013-03-06 09:07:54 +00:00
|
|
|
# XXX: this may need -liconv on non-glibc systems..
|
|
|
|
|
|
|
|
{stdenv, fetchgit, python, perl}:
|
2010-10-20 14:05:49 +01:00
|
|
|
|
2013-03-05 22:30:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "recode-3.7-pff85fdbd";
|
2010-10-20 14:05:49 +01:00
|
|
|
|
2013-03-05 22:30:46 +00:00
|
|
|
src = fetchgit {
|
|
|
|
url = https://github.com/pinard/Recode.git;
|
|
|
|
rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd";
|
|
|
|
sha256 = "1xhlfmqld6af16l444jli9crj9brym2jihg1n6lkxh2gar68f5l7";
|
2010-10-20 14:05:49 +01:00
|
|
|
};
|
|
|
|
|
2013-03-06 09:07:54 +00:00
|
|
|
buildInputs = [ python perl ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
preCheck = ''
|
2013-03-06 18:12:21 +00:00
|
|
|
checkFlagsArray=(CPPFLAGS="-I../lib" LDFLAGS="-L../src/.libs -Wl,-rpath=../src/.libs")
|
2013-03-06 09:07:54 +00:00
|
|
|
'';
|
|
|
|
|
2010-10-20 14:05:49 +01:00
|
|
|
meta = {
|
|
|
|
homepage = "http://www.gnu.org/software/recode/";
|
|
|
|
description = "Converts files between various character sets and usages";
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
2013-03-05 22:30:46 +00:00
|
|
|
license = stdenv.lib.licenses.gpl2Plus;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ jcumming ];
|
2010-10-20 14:05:49 +01:00
|
|
|
};
|
|
|
|
}
|