recode: 3.7-gitrev -> 3.7.4, new home (#68045)

* recode: pname-ify

* recode: 3.7-* -> 3.7.2, new home

gnu homepage still exists (for now),
but links to the github repo we switch to :).

* recode: use pre-generated tarball to avoid gen, fix

* recode: 3.7.2 -> 3.7.4

https://github.com/rrthomas/recode/blob/v3.7.4/NEWS
(3.7.3 notes as well)
This commit is contained in:
Will Dietz 2019-10-22 03:03:49 -05:00 committed by Frederik Rietdijk
parent 34b3a314ca
commit 762a88d78b

View file

@ -1,34 +1,22 @@
{ stdenv, fetchFromGitHub, python, perl, intltool, flex, autoreconfHook { stdenv, fetchurl, python, perl, intltool, flex, texinfo, libiconv, libintl }:
, texinfo, libiconv, libintl }:
stdenv.mkDerivation { stdenv.mkDerivation rec {
name = "recode-3.7-2fd838565"; pname = "recode";
version = "3.7.4";
src = fetchFromGitHub { # Use official tarball, avoid need to bootstrap/generate build system
owner = "pinard"; src = fetchurl {
repo = "Recode"; url = "https://github.com/rrthomas/${pname}/releases/download/v${version}/${pname}-${version}.tar.gz";
rev = "2fd8385658e5a08700e3b916053f6680ff85fdbd"; sha256 = "0j9rjkgx4r8nah90d2vbi92k33gfmgaqlj72z1ni0vsiccpcgfc8";
sha256 = "06vyjqaraamcc5vka66mlvxj27ihccqc74aymv2wn8nphr2rhh03";
}; };
nativeBuildInputs = [ python perl intltool flex texinfo autoreconfHook libiconv ]; nativeBuildInputs = [ python python.pkgs.cython perl intltool flex texinfo libiconv ];
buildInputs = [ libintl ]; buildInputs = [ libintl ];
preAutoreconf = '' doCheck = true;
# 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" ""
'';
doCheck = false; # fails 10 out of 16 tests
preCheck = ''
checkFlagsArray=(CPPFLAGS="-I../lib" LDFLAGS="-L../src/.libs -Wl,-rpath=../src/.libs")
'';
meta = { meta = {
homepage = https://www.gnu.org/software/recode/; homepage = https://github.com/rrthomas/recode;
description = "Converts files between various character sets and usages"; description = "Converts files between various character sets and usages";
platforms = stdenv.lib.platforms.unix; platforms = stdenv.lib.platforms.unix;
license = stdenv.lib.licenses.gpl2Plus; license = stdenv.lib.licenses.gpl2Plus;