2018-03-14 19:15:06 +00:00
|
|
|
{ stdenv, fetchFromGitHub, python, perl, intltool, flex, autoreconfHook
|
|
|
|
, texinfo, libiconv, libintl }:
|
2010-10-20 14:05:49 +01:00
|
|
|
|
2013-03-05 22:30:46 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2014-05-08 14:26:42 +01:00
|
|
|
name = "recode-3.7-2fd838565";
|
2010-10-20 14:05:49 +01:00
|
|
|
|
2014-05-08 14:49:39 +01:00
|
|
|
src = fetchFromGitHub {
|
2014-05-08 14:26:42 +01:00
|
|
|
owner = "pinard";
|
|
|
|
repo = "Recode";
|
2013-03-05 22:30:46 +00:00
|
|
|
rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd";
|
2014-05-08 14:26:42 +01:00
|
|
|
sha256 = "06vyjqaraamcc5vka66mlvxj27ihccqc74aymv2wn8nphr2rhh03";
|
2010-10-20 14:05:49 +01:00
|
|
|
};
|
|
|
|
|
2018-03-26 05:36:14 +01:00
|
|
|
nativeBuildInputs = [ python perl intltool flex texinfo autoreconfHook libiconv ];
|
|
|
|
buildInputs = [ libintl ];
|
2013-03-06 09:07:54 +00:00
|
|
|
|
2016-01-17 23:04:40 +00:00
|
|
|
preAutoreconf = ''
|
2013-03-09 10:31:16 +00:00
|
|
|
# fix build with new automake, https://bugs.gentoo.org/show_bug.cgi?id=419455
|
|
|
|
substituteInPlace Makefile.am --replace "ACLOCAL = ./aclocal.sh @ACLOCAL@" ""
|
|
|
|
sed -i '/^AM_C_PROTOTYPES/d' configure.ac
|
|
|
|
substituteInPlace src/Makefile.am --replace "ansi2knr" ""
|
|
|
|
'';
|
|
|
|
|
2018-08-10 12:11:25 +01:00
|
|
|
doCheck = false; # fails 10 out of 16 tests
|
2013-03-06 09:07:54 +00:00
|
|
|
|
|
|
|
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 = {
|
2018-12-01 18:22:13 +00:00
|
|
|
homepage = https://www.gnu.org/software/recode/;
|
2010-10-20 14:05:49 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|