at v206 1.3 kB view raw
1{ stdenv, fetchFromGitHub, python, perl, autoconf, automake, libtool, intltool, flex, 2texinfo, libiconv }: 3 4stdenv.mkDerivation rec { 5 name = "recode-3.7-2fd838565"; 6 7 src = fetchFromGitHub { 8 owner = "pinard"; 9 repo = "Recode"; 10 rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd"; 11 sha256 = "06vyjqaraamcc5vka66mlvxj27ihccqc74aymv2wn8nphr2rhh03"; 12 }; 13 14 nativeBuildInputs = [ python perl autoconf automake libtool intltool flex texinfo 15 libiconv ]; 16 17 preConfigure = '' 18 # fix build with new automake, https://bugs.gentoo.org/show_bug.cgi?id=419455 19 #rm acinclude.m4 20 substituteInPlace Makefile.am --replace "ACLOCAL = ./aclocal.sh @ACLOCAL@" "" 21 sed -i '/^AM_C_PROTOTYPES/d' configure.ac 22 substituteInPlace src/Makefile.am --replace "ansi2knr" "" 23 24 autoreconf -fi 25 '' 26 + stdenv.lib.optionalString stdenv.isDarwin '' 27 export LDFLAGS=-lintl 28 ''; 29 30 #doCheck = true; # doesn't work yet 31 32 preCheck = '' 33 checkFlagsArray=(CPPFLAGS="-I../lib" LDFLAGS="-L../src/.libs -Wl,-rpath=../src/.libs") 34 ''; 35 36 meta = { 37 homepage = "http://www.gnu.org/software/recode/"; 38 description = "Converts files between various character sets and usages"; 39 platforms = stdenv.lib.platforms.unix; 40 license = stdenv.lib.licenses.gpl2Plus; 41 maintainers = with stdenv.lib.maintainers; [ jcumming ]; 42 }; 43}