mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
get recode testsuite running.
This commit is contained in:
parent
e61bdcfacd
commit
ed99c87a26
|
@ -1,4 +1,6 @@
|
|||
{stdenv, fetchgit}:
|
||||
# XXX: this may need -liconv on non-glibc systems..
|
||||
|
||||
{stdenv, fetchgit, python, perl}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "recode-3.7-pff85fdbd";
|
||||
|
@ -9,6 +11,14 @@ stdenv.mkDerivation rec {
|
|||
sha256 = "1xhlfmqld6af16l444jli9crj9brym2jihg1n6lkxh2gar68f5l7";
|
||||
};
|
||||
|
||||
buildInputs = [ python perl ];
|
||||
|
||||
doCheck = true;
|
||||
|
||||
preCheck = ''
|
||||
checkFlagsArray=(LDFLAGS="-L../src/.libs -Wl,-rpath=../src/.libs")
|
||||
'';
|
||||
|
||||
meta = {
|
||||
homepage = "http://www.gnu.org/software/recode/";
|
||||
description = "Converts files between various character sets and usages";
|
||||
|
|
|
@ -1,19 +0,0 @@
|
|||
http://bugs.gentoo.org/283029
|
||||
|
||||
--- a/m4/flex.m4
|
||||
+++ b/m4/flex.m4
|
||||
@@ -8,11 +8,11 @@ dnl ad_AC_PROG_FLEX
|
||||
dnl Look for flex or missing, then run AC_PROG_LEX and AC_DECL_YYTEXT
|
||||
AC_DEFUN(ad_AC_PROG_FLEX,
|
||||
[AC_CHECK_PROGS(LEX, flex, missing)
|
||||
-if test "$LEX" = missing; then
|
||||
+AS_IF([test "$LEX" = missing], [dnl
|
||||
LEX="\$(top_srcdir)/$ac_aux_dir/missing flex"
|
||||
LEX_OUTPUT_ROOT=lex.yy
|
||||
AC_SUBST(LEX_OUTPUT_ROOT)dnl
|
||||
-else
|
||||
+], [:
|
||||
AC_PROG_LEX
|
||||
AC_DECL_YYTEXT
|
||||
-fi])
|
||||
+])])
|
|
@ -1,23 +0,0 @@
|
|||
http://bugs.gentoo.org/239372
|
||||
|
||||
patch by Dmitry Karasik
|
||||
|
||||
--- recode-3.6/m4/gettext.m4
|
||||
+++ recode-3.6/m4/gettext.m4
|
||||
@@ -109,12 +109,12 @@
|
||||
else
|
||||
ac_items="$LINGUAS"
|
||||
for ac_item in $ac_items; do
|
||||
- case "$ALL_LINGUAS" in
|
||||
- *$ac_item*)
|
||||
+ for supported_item in $ALL_LINGUAS; do
|
||||
+ if test "$ac_item" = "$supported_item"; then
|
||||
ac_print="$ac_print $ac_item"
|
||||
MOFILES="$MOFILES $ac_item.mo"
|
||||
- ;;
|
||||
- esac
|
||||
+ fi
|
||||
+ done
|
||||
done
|
||||
fi
|
||||
AC_SUBST(MOFILES)
|
Loading…
Reference in a new issue